Jump to content

ErinC

Active Members
  • Posts

    27
  • Joined

  • Last visited

Everything posted by ErinC

  1. The Whale Client Components are used in the old Whale IAG server 3.6 and the Microsoft IAG server 3.7. Sometimes the client does not cleanly uninstall. I wrote the attached script to remove a default installation. This has been tested ok on Windows XP. The uninstaller runs silently and has no user input or onscreen feedback. It was crafted to be deployed using Microsoft SCCM or similar. The script is fully commented and was loosely based on the following blogpage from Faisal Hussain, an IAG expert from Microsoft UK http://blogs.technet.com/b/fsl/archive/2009/06/11/iag-client-components-uninstallation-failure-from-desktop.aspx I should also say you would be best recommended to backup your registry before running this script! I accept no responsibility for any registry damage caused. For info, we used this script to remove the old 3.7 client and then installed the UAG 4.x client components after a reboot. Whale_Uninstaller.au3
  2. Wow, that was quick KaFu ... thanks a lot, it looks like you've nearly changed it to be exactly what I was thinking of. I should be able to modify it to be precisely what I want. Thanks again, I knew there would be an uber-coder lurking about here that was just itching to help newbcoders like me!
  3. Hi all, I work in a technical support team and wrote a "PCInfo" utility that we copied to all PCs for our Helpdesk to use. The script is attached. It basically reports Logged on user, pc name, domain name, ip address1, ipaddress2, ipaddress3, windows version, user profile in use, version of ms office installed, screen resolution, refresh rate and McAfee VirusScan DAT date. When users call up for support, they are asked to run the utility on the PC and they have the option to email the information to the servicedesk. It works great and I'm very happy with it. BUT, now I'd like to add the feature to have a drop down menu for the user to choose from a list of email addresses and I'm not sure how to tackle it. I've searched the forums for similar code but just get lost quickly. I bet this is a quick one for some of the uber-coders round here ... please don't tear my code to bits, it WORKS ok ? Thanks in advance, Erin PCInfo.au3
  4. Thank you BinaryVision you've saved me a good bit of time!
  5. Hi again Chris, and thank you for spending your time on this. I am using the code; #include <file.au3> Dim $aIPList If Not _FileReadToArray("IPList.txt",$aIPList) Then MsgBox(4096,"Error", " Error reading log to Array error:" & @error) Exit EndIf For $x = 1 to $aIPList[0] FileWriteLine ("PingLogFile.txt", $aIPList[$x] & "," & Ping($aIPList[$x])) Next The contents of my IPList.txt is; ARCTDUCZC4070RD CRELDGC00006 CRELDGC00010 CRELDGC00022 CRLIKN9Z0Z4G LIBEWRCZC4070RB LIBEWCZC4070RLW LIEWJX7ZJ00KPN LIEWJYHZN3JX GELIDULJK1J LIBGTDMLJK1L CRKL36RLN1J CRKL5P8MN1J LIBLKCZC4070RD2 CSLI32608VV and after running the script, I get the following in the PingLogFile.txt; LIEWJX7ZJ00KPN,0 LIEWJYHZN3JX,0 ARCTDUCZC4070RD,0 GELIDULJK1J,0 CRELDGC00006,0 LIBGTDMLJK1L,0 CRELDGC00010,0 CRKL36RLN1J,0 CRELDGC00022,0 CRKL5P8MN1J,0 LIBLKCZC4070RD2,0 CSLI32608VV,1 CRLIKN9Z0Z4G,0 LIBEWRCZC4070RB,0 LIBEWCZC4070RLW,0 LIEWJX7ZJ00KPN,0 LIEWJYHZN3JX,0 GELIDULJK1J,0 LIBGTDMLJK1L,0 CRKL36RLN1J,0 CRKL5P8MN1J,0 LIBLKCZC4070RD2,0 CSLI32608VV,1 So from what your example I can see that it is actually working ok after all but it doesn't seem to be giving reliable results when I compare the results of manually pinging the machine names
  6. Hi, no I'm not using the beta version. I had made a sillly mistake though .. had somehow missed out the # at the start of the line. The script runs now but still doesn't do what I require ... I need to ping machine names not ip addresses .. and the log file isn't right in it's format or info .. I don't understand the code
  7. Thanks for your replies, however I cannot find the ping example in the help. Also, when I run the script you posted Chris, it just comes up with an error on the line include <file.au3> (error: Unknown function name) The file.au3 file is in C:\Program Files\AutoIt3\Include .. ?
  8. Hi All, I've been looking around the internet for a tool that will allow me to copy and paste in a list of PC Names and ping them all but I can't find one. Can anyone suggest how I might create a script program to achieve this aim ? Basically I want to be able to ping a lot of PCs at once and receive information on if they respond or not, nothing more complicated than that. Thanks for your time in advance.
  9. aha ! I switched the @CRLF and $Line in the $contents= line and all is well Thanks again Xenogis !
  10. Hey, thanks for taking the time to look at this .. That code you posted seems to work ok but it leaves a blank line at the beginning of the file .. any way of getting rid of that ?
  11. Hi, I am trying to edit a line of a text file, but can't quite get it working properly. I need to edit a file called C:\Radiusv5\Rcs\Pow32gui\hostconn.txt It reads as follows; and I want to change the addreply2 = 1 to be addreply2 = ps_live Please help
  12. Wow ! What a quick reply ! And what's more, it's perfect !! THANK YOU SOOOO MUCH ! I was messing about with strings for ages and not getting very far .. you're a lifesaver thanks again Marc .. you da' man !
  13. Hi everyone, Hopefully someone can suggest an easy way for me to achieve my goal here .. here goes; I have a text file full characters and want to be able to extract some particular ones and add them together to create a total. The text file (results.txt produced by the muon1 distributed client) shows some numbers in brackets every second line. It's these numbers I want to add up. here is a section of the text file; tantalumrodr=000;tantalumrodz=430;d10l=001;d11l=000;d12l=000;d13l=000;d14l=000;d15l=012;d16l=008;d17 l=000;d18l=000;d19l=000;d1l=000;d20l=000;d21l=000;d22l=000;d23l=000;d24l=000;d2l=000;d3l=000;d4l=025 ;d5l=272;d6l=028;d7l=013;d8l=163;d9l=016;ld1=000;ld10=000;ld11=000;ld12=000;ld13=001;ld14=000;ld15=0 01;ld16=000;ld17=000;ld18=000;ld19=000;ld2=000;ld20=000;ld21=000;ld22=000;ld23=000;ld24=000;ld25=000 ;ld26=000;ld27=000;ld28=000;ld29=000;ld3=000;ld30=000;ld31=000;ld32=000;ld33=000;ld34=002;ld35=002;l d36=000;ld37=000;ld38=000;ld39=000;ld4=001;ld40=000;ld41=000;ld42=000;ld43=000;ld44=003;ld45=000;ld4 6=000;ld47=000;ld48=000;ld49=000;ld5=000;ld50=000;ld51=000;ld52=000;ld53=000;ld54=000;ld55=000;ld56= 000;ld57=000;ld58=000;ld59=000;ld6=000;ld60=000;ld61=000;ld62=000;ld63=000;ld64=000;ld65=000;ld66=00 0;ld67=000;ld68=000;ld69=000;ld7=000;ld70=000;ld71=000;ld72=000;ld73=000;ld74=000;ld75=000;ld76=000; ld77=000;ld78=000;ld79=000;ld8=002;ld80=000;ld81=000;ld82=000;ld83=000;ld84=000;ld85=000;ld86=000;ld 87=000;ld88=000;ld89=000;ld9=000;ld90=000;ls10f=913;ls10l=889;ls11f=911;ls11l=895;ls12f=919;ls12l=89 4;ls13f=914;ls13l=890;ls14f=891;ls14l=909;ls15f=898;ls15l=907;ls16f=909;ls16l=911;ls17f=903;ls17l=93 6;ls18f=897;ls18l=899;ls19f=913;ls19l=864;ls1f=837;ls1l=888;ls20f=916;ls20l=871;ls21f=914;ls21l=921; ls22f=906;ls22l=908;ls23f=902;ls23l=920;ls24f=917;ls24l=911;ls25f=919;ls25l=901;ls26f=906;ls26l=901; ls27f=907;ls27l=895;ls28f=925;ls28l=907;ls29f=904;ls29l=893;ls2f=886;ls2l=907;ls30f=894;ls30l=899;ls 31f=915;ls31l=917;ls32f=935;ls32l=967;ls33f=931;ls33l=901;ls34f=902;ls34l=920;ls35f=898;ls35l=903;ls 36f=902;ls36l=907;ls37f=920;ls37l=903;ls38f=898;ls38l=912;ls39f=904;ls39l=906;ls3f=902;ls3l=929;ls40 f=887;ls40l=926;ls41f=923;ls41l=908;ls42f=906;ls42l=908;ls43f=904;ls43l=917;ls44f=899;ls44l=983;ls45 f=897;ls45l=987;ls46f=895;ls46l=924;ls47f=902;ls47l=910;ls48f=913;ls48l=924;ls49f=895;ls49l=921;ls4f =907;ls4l=952;ls50f=886;ls50l=899;ls51f=901;ls51l=922;ls52f=897;ls52l=899;ls53f=904;ls53l=886;ls54f= 900;ls54l=896;ls55f=894;ls55l=921;ls56f=907;ls56l=934;ls57f=904;ls57l=894;ls58f=894;ls58l=935;ls59f= 917;ls59l=942;ls5f=902;ls5l=899;ls60f=906;ls60l=919;ls61f=915;ls61l=957;ls62f=931;ls62l=993;ls63f=99 1;ls63l=998;ls64f=996;ls64l=998;ls65f=997;ls65l=998;ls66f=997;ls66l=998;ls67f=999;ls67l=998;ls68f=99 8;ls68l=998;ls69f=994;ls69l=998;ls6f=903;ls6l=895;ls70f=984;ls70l=998;ls71f=996;ls71l=982;ls72f=999; ls72l=997;ls73f=997;ls73l=998;ls74f=998;ls74l=902;ls75f=998;ls75l=989;ls76f=995;ls76l=997;ls77f=975; ls77l=997;ls78f=996;ls78l=996;ls79f=998;ls79l=996;ls7f=911;ls7l=934;ls80f=997;ls80l=998;ls81f=998;ls 81l=997;ls82f=998;ls82l=998;ls83f=999;ls83l=998;ls84f=999;ls84l=997;ls85f=998;ls85l=991;ls86f=994;ls 86l=930;ls87f=960;ls87l=992;ls88f=993;ls88l=998;ls89f=998;ls89l=963;ls8f=903;ls8l=977;ls90f=991;ls90 l=973;ls9f=907;ls9l=906;rf10p=343;rf10v=736;rf11p=263;rf11v=684;rf12p=242;rf12v=739;rf13p=374;rf13v= 947;rf14p=364;rf14v=682;rf15p=397;rf15v=720;rf16p=433;rf16v=695;rf17p=418;rf17v=647;rf18p=437;rf18v= 652;rf19p=418;rf19v=674;rf1p=321;rf1v=728;rf20p=406;rf20v=680;rf21p=375;rf21v=721;rf22p=354;rf22v=94 0;rf23p=375;rf23v=702;rf24p=363;rf24v=746;rf25p=393;rf25v=745;rf26p=394;rf26v=666;rf27p=366;rf27v=69 2;rf28p=363;rf28v=760;rf29p=389;rf29v=720;rf2p=333;rf2v=904;rf30p=381;rf30v=687;rf31p=382;rf31v=729; rf32p=298;rf32v=735;rf33p=344;rf33v=939;rf34p=343;rf34v=751;rf35p=317;rf35v=713;rf36p=336;rf36v=663; rf37p=360;rf37v=705;rf38p=457;rf38v=651;rf39p=397;rf39v=610;rf3p=381;rf3v=393;rf40p=404;rf40v=122;rf 41p=396;rf41v=650;rf42p=385;rf42v=694;rf43p=394;rf43v=789;rf44p=410;rf44v=971;rf45p=399;rf45v=968;rf 46p=398;rf46v=692;rf47p=394;rf47v=777;rf48p=381;rf48v=752;rf49p=414;rf49v=690;rf4p=390;rf4v=669;rf50 p=405;rf50v=672;rf51p=412;rf51v=608;rf52p=431;rf52v=613;rf53p=420;rf53v=725;rf54p=480;rf54v=744;rf55 p=447;rf55v=728;rf56p=414;rf56v=754;rf57p=353;rf57v=760;rf58p=319;rf58v=671;rf59p=060;rf59v=664;rf5p =359;rf5v=642;rf60p=324;rf60v=681;rf61p=300;rf61v=660;rf62p=194;rf62v=875;rf63p=543;rf63v=842;rf64p= 861;rf64v=868;rf65p=436;rf65v=024;rf66p=644;rf66v=022;rf67p=902;rf67v=030;rf68p=603;rf68v=111;rf69p= 151;rf69v=232;rf6p=375;rf6v=996;rf70p=851;rf70v=254;rf71p=748;rf71v=864;rf72p=552;rf72v=779;rf73p=80 5;rf73v=241;rf74p=375;rf74v=598;rf75p=564;rf75v=517;rf76p=149;rf76v=606;rf77p=675;rf77v=825;rf78p=39 1;rf78v=790;rf79p=894;rf79v=149;rf7p=345;rf7v=780;rf80p=316;rf80v=698;rf81p=382;rf81v=645;rf82p=356; rf82v=374;rf83p=702;rf83v=762;rf84p=865;rf84v=494;rf85p=362;rf85v=586;rf86p=933;rf86v=776;rf87p=517; rf87v=741;rf88p=922;rf88v=600;rf89p=423;rf89v=370;rf8p=306;rf8v=969;rf90p=486;rf90v=620;rf9p=308;rf9 v=929;s10f=901;s10l=899;s10r=995;s11f=933;s11l=912;s11r=990;s12f=899;s12l=906;s12r=914;s13f=899;s13l =889;s13r=975;s14f=894;s14l=898;s14r=912;s15f=896;s15l=908;s15r=972;s16f=900;s16l=912;s16r=903;s17f= 906;s17l=893;s17r=892;s18f=903;s18l=900;s18r=918;s19f=920;s19l=907;s19r=893;s1f=989;s1l=769;s20f=912 ;s20l=912;s20r=909;s21f=898;s21l=897;s21r=889;s22f=927;s22l=908;s22r=934;s23f=891;s23l=902;s23r=935; s24f=797;s24l=906;s24r=577;s25f=891;s25l=885;s25r=731;s2f=961;s2l=972;s2r=909;s3f=909;s3l=741;s3r=89 3;s4f=901;s4l=859;s4r=921;s5f=905;s5l=983;s5r=898;s6f=904;s6l=914;s6r=901;s7f=884;s7l=902;s7r=920;s8 f=888;s8l=912;s8r=901;s9f=899;s9l=906;s9r=981;#gen=2; 1.369925 (549.5 Mpts) [v4.41f] {1F53065CEC3A3F3322731FB7} <ChicaneLinacB90> tantalumrodr=000;tantalumrodz=430;d10l=001;d11l=000;d12l=000;d13l=000;d14l=000;d15l=011;d16l=006;d17 l=000;d18l=000;d19l=000;d1l=000;d20l=000;d21l=000;d22l=000;d23l=000;d24l=000;d2l=000;d3l=000;d4l=026 ;d5l=266;d6l=027;d7l=010;d8l=162;d9l=016;ld1=000;ld10=000;ld11=000;ld12=000;ld13=000;ld14=000;ld15=0 00;ld16=000;ld17=000;ld18=000;ld19=000;ld2=000;ld20=000;ld21=000;ld22=000;ld23=000;ld24=000;ld25=000 ;ld26=000;ld27=000;ld28=000;ld29=000;ld3=000;ld30=000;ld31=000;ld32=000;ld33=000;ld34=001;ld35=000;l d36=000;ld37=000;ld38=000;ld39=000;ld4=000;ld40=000;ld41=000;ld42=000;ld43=000;ld44=001;ld45=000;ld4 6=000;ld47=000;ld48=000;ld49=000;ld5=000;ld50=000;ld51=000;ld52=000;ld53=000;ld54=000;ld55=000;ld56= 000;ld57=000;ld58=000;ld59=000;ld6=000;ld60=000;ld61=000;ld62=000;ld63=000;ld64=000;ld65=000;ld66=00 0;ld67=000;ld68=000;ld69=000;ld7=000;ld70=000;ld71=000;ld72=000;ld73=000;ld74=000;ld75=000;ld76=000; ld77=000;ld78=000;ld79=000;ld8=002;ld80=000;ld81=000;ld82=000;ld83=000;ld84=000;ld85=000;ld86=000;ld 87=000;ld88=000;ld89=000;ld9=000;ld90=000;ls10f=913;ls10l=888;ls11f=911;ls11l=895;ls12f=919;ls12l=89 3;ls13f=913;ls13l=889;ls14f=891;ls14l=909;ls15f=897;ls15l=906;ls16f=908;ls16l=910;ls17f=902;ls17l=93 5;ls18f=897;ls18l=899;ls19f=912;ls19l=864;ls1f=836;ls1l=887;ls20f=915;ls20l=870;ls21f=914;ls21l=920; ls22f=906;ls22l=906;ls23f=902;ls23l=919;ls24f=916;ls24l=910;ls25f=918;ls25l=900;ls26f=906;ls26l=900; ls27f=906;ls27l=895;ls28f=924;ls28l=905;ls29f=904;ls29l=892;ls2f=886;ls2l=906;ls30f=894;ls30l=898;ls 31f=914;ls31l=917;ls32f=935;ls32l=967;ls33f=931;ls33l=903;ls34f=901;ls34l=920;ls35f=897;ls35l=902;ls 36f=901;ls36l=906;ls37f=919;ls37l=903;ls38f=898;ls38l=912;ls39f=904;ls39l=905;ls3f=902;ls3l=929;ls40 f=884;ls40l=925;ls41f=922;ls41l=907;ls42f=905;ls42l=907;ls43f=904;ls43l=917;ls44f=899;ls44l=983;ls45 f=895;ls45l=986;ls46f=895;ls46l=923;ls47f=901;ls47l=909;ls48f=913;ls48l=923;ls49f=893;ls49l=921;ls4f =906;ls4l=951;ls50f=885;ls50l=899;ls51f=901;ls51l=921;ls52f=897;ls52l=898;ls53f=903;ls53l=886;ls54f= 900;ls54l=896;ls55f=894;ls55l=921;ls56f=906;ls56l=933;ls57f=904;ls57l=894;ls58f=894;ls58l=934;ls59f= 916;ls59l=941;ls5f=900;ls5l=898;ls60f=905;ls60l=918;ls61f=915;ls61l=956;ls62f=932;ls62l=992;ls63f=98 9;ls63l=997;ls64f=994;ls64l=996;ls65f=996;ls65l=997;ls66f=997;ls66l=998;ls67f=998;ls67l=997;ls68f=99 7;ls68l=997;ls69f=994;ls69l=998;ls6f=902;ls6l=895;ls70f=984;ls70l=998;ls71f=996;ls71l=982;ls72f=997; ls72l=997;ls73f=997;ls73l=997;ls74f=997;ls74l=901;ls75f=997;ls75l=989;ls76f=995;ls76l=997;ls77f=974; ls77l=997;ls78f=995;ls78l=996;ls79f=998;ls79l=995;ls7f=909;ls7l=933;ls80f=997;ls80l=998;ls81f=997;ls 81l=997;ls82f=997;ls82l=996;ls83f=997;ls83l=998;ls84f=997;ls84l=996;ls85f=997;ls85l=990;ls86f=994;ls 86l=929;ls87f=960;ls87l=991;ls88f=992;ls88l=998;ls89f=997;ls89l=962;ls8f=902;ls8l=978;ls90f=989;ls90 l=973;ls9f=907;ls9l=906;rf10p=342;rf10v=736;rf11p=263;rf11v=684;rf12p=223;rf12v=735;rf13p=373;rf13v= 944;rf14p=364;rf14v=694;rf15p=397;rf15v=722;rf16p=432;rf16v=695;rf17p=417;rf17v=646;rf18p=437;rf18v= 651;rf19p=418;rf19v=674;rf1p=320;rf1v=732;rf20p=405;rf20v=680;rf21p=374;rf21v=721;rf22p=353;rf22v=93 7;rf23p=374;rf23v=702;rf24p=362;rf24v=745;rf25p=393;rf25v=745;rf26p=393;rf26v=666;rf27p=365;rf27v=69 2;rf28p=363;rf28v=759;rf29p=389;rf29v=719;rf2p=332;rf2v=903;rf30p=380;rf30v=687;rf31p=382;rf31v=729; rf32p=298;rf32v=735;rf33p=344;rf33v=938;rf34p=342;rf34v=751;rf35p=317;rf35v=712;rf36p=335;rf36v=663; rf37p=360;rf37v=704;rf38p=458;rf38v=650;rf39p=398;rf39v=609;rf3p=380;rf3v=392;rf40p=404;rf40v=122;rf 41p=396;rf41v=649;rf42p=384;rf42v=694;rf43p=393;rf43v=790;rf44p=410;rf44v=972;rf45p=398;rf45v=968;rf 46p=397;rf46v=691;rf47p=392;rf47v=776;rf48p=380;rf48v=751;rf49p=413;rf49v=689;rf4p=389;rf4v=669;rf50 p=404;rf50v=674;rf51p=411;rf51v=608;rf52p=430;rf52v=612;rf53p=420;rf53v=724;rf54p=480;rf54v=743;rf55 p=447;rf55v=727;rf56p=413;rf56v=754;rf57p=352;rf57v=760;rf58p=319;rf58v=670;rf59p=059;rf59v=663;rf5p =357;rf5v=641;rf60p=321;rf60v=681;rf61p=300;rf61v=660;rf62p=196;rf62v=875;rf63p=542;rf63v=841;rf64p= 861;rf64v=846;rf65p=435;rf65v=024;rf66p=644;rf66v=022;rf67p=902;rf67v=029;rf68p=601;rf68v=109;rf69p= 151;rf69v=231;rf6p=375;rf6v=996;rf70p=846;rf70v=253;rf71p=747;rf71v=863;rf72p=564;rf72v=775;rf73p=80 4;rf73v=240;rf74p=379;rf74v=593;rf75p=549;rf75v=517;rf76p=176;rf76v=605;rf77p=675;rf77v=827;rf78p=39 0;rf78v=801;rf79p=893;rf79v=149;rf7p=345;rf7v=784;rf80p=320;rf80v=701;rf81p=380;rf81v=644;rf82p=346; rf82v=373;rf83p=702;rf83v=756;rf84p=864;rf84v=493;rf85p=367;rf85v=585;rf86p=938;rf86v=779;rf87p=516; rf87v=740;rf88p=928;rf88v=599;rf89p=414;rf89v=370;rf8p=305;rf8v=969;rf90p=489;rf90v=630;rf9p=307;rf9 v=929;s10f=900;s10l=899;s10r=995;s11f=932;s11l=910;s11r=990;s12f=899;s12l=905;s12r=914;s13f=899;s13l =888;s13r=974;s14f=894;s14l=898;s14r=912;s15f=896;s15l=907;s15r=973;s16f=899;s16l=911;s16r=903;s17f= 906;s17l=892;s17r=891;s18f=902;s18l=899;s18r=918;s19f=919;s19l=905;s19r=893;s1f=989;s1l=767;s20f=912 ;s20l=910;s20r=909;s21f=897;s21l=897;s21r=888;s22f=926;s22l=907;s22r=933;s23f=891;s23l=901;s23r=934; s24f=795;s24l=905;s24r=577;s25f=889;s25l=885;s25r=729;s2f=960;s2l=985;s2r=909;s3f=909;s3l=743;s3r=89 3;s4f=901;s4l=859;s4r=920;s5f=905;s5l=983;s5r=898;s6f=904;s6l=914;s6r=900;s7f=884;s7l=902;s7r=919;s8 f=887;s8l=911;s8r=900;s9f=898;s9l=906;s9r=980;#gen=5; 1.368446 (551.3 Mpts) [v4.41f] {CC08CEB82010CF1CC44145A7} <ChicaneLinacB90> You can see the 549.5 Mpts and 551.3 Mpts values that I want to add up. The above code example was just a section, but it could go on and on ... This results.txt could easily hold hundreds of lines, so this would be really nice to get working The one constant thing about the results I want to extract is that they are always held in the brackets and the text from "tantalumrodr" above to ";#gen=2;" is all on one line.
  14. Thank you for your post DaveF .. much appreciated. I have still not resolved this yet, mainly because of time constraints at work ... there's always something else more pressing ! I'll get there eventually. My apologies for not replying here for the benefit of the other people who were so good to give their time to contribute to this thread. I WILL persevere !
  15. done. thanks pekster
  16. Hi again, I have taken emmanuels advice and created another script to check for the presence of the client app. This script.exe then calls the second script.exe if no client is found .. the second script includes the required files and is 756 KB .. so, not tooo bad Going to test tomorrow .. I am hopeful so keep your fingers crossed ! edit: what's going on with the times here ?? It's half twelve am here .. not 3:30 PM
  17. Of course ! But this is getting a lot more convoluted for what should be a simple thing !! I'd much rather get my original script that I posted at the top fixed. thanks for the suggestion emmanuel
  18. Yes, I understand what you are saying JdeB, and it will be interesting to see how much compression is achieved, but the very nature of the app I am installing means that it will (it has to) run every time any user logs on. The installer first checks to see if it is already installed, if so, it simply exits. If not, then it installs. This way, only the install.exe is transferred over the network (if the client is already installed) By integrating all the install files into the file that gets copied over the network, this will result in increased network traffic. And in a network like the one I am working with (a few thousand users), that's significant. Unfortunately, I didn't originally setup the install files in the network share, and I can't currently tell which files are completely required ! aaargh nothings ever easy is it ?! esp on a Friday afternoon
  19. That's great JdeB, So, just to clarify ... I should add an extra FileInstall ... command for every file that the Install.exe needs ? (so they are all integrated into the AutoIt .exe) This would presumably mean that the compiled file I end up with will be relatively large .. which may pose a problem for some of my network users that are on slower links to the domain (isdn for instance) I will have to test this. I'll probably not have time to test it properly until Monday/Tuesday now .. I'll be sure to post back though. Thanks again for your time and effort
  20. Thanks for the prompt reply JdeB ! But wouldn't the Fileinstall command come after the RunAsSet command ? Another thought I just had is that there are other files in the network folder that will be needed when installing .. how/will this work ?
  21. Hello, and thanks for your reply emmanuel. Yes, I have tried it, but I am getting errors from the users when they logon. I got rid of the message and the lock mouse/kbd and changed the script to read roughly as follows; RunAsSet("ScriptAdmin", "DOM1", "password") Run("\\APPS\SHARE\INSTALL.EXE", "", @SW_HIDE) RunAsSet() exit Now, when users log on, I am seeing an AutoIt Error at Line0: Error: Unable to execute the external program. The directory name is invalid. But once they are logged on, they can click Start->Run and type the above path to the exe file and it works ok. !? Someone please help .. I need to get this working pronto !
  22. Hi there, After a bit of advice; Basically, I want to run a program through a login script to install some software with Admin rights. I am working with a domain environment. ok, Lets say the domain is called DOM1 and I have created a domain administrator account for running scripts called ScriptAdmin with the password password The program to run is called INSTALL.EXE and is located on a PC called APPS in a network folder shared as SHARE Would I be right to say I could then use the following commands ? RunAsSet("ScriptAdmin", "DOM1", "password") RunWait("\\APPS\SHARE\INSTALL.EXE", "", @SW_HIDE) Then, also ... could I add the next command to lock keyboard and mouse input whilst it is installing .. so as to take away the ability to stop the app installing. ? MsgBox(1, "Installer Title", "Please wait while a program is installed. Keyboard and Mouse Input will be disabled temporarily. This box will timeout in 5 seconds", 5) BlockInput(1) ;script here BlockInput(0) Thanks for your time
  23. I follow your thinking Helge, but I think I'll leave it as it is. If it causes any problems then I will look into adding the winwait command later. edit: Stroke the above. I've added winwait and all is working A-OK thank you very much for your help ! Erin Carter, Dumfries, Scotland.
  24. Thanks again for your help, I've managed to create something that seems to work fine, though I need to test it more before I implement it on the Domain. I used the following code; Run,runas /env /user:DG\\ScriptAdmin "\\\\tools\\inst\\install.exe" WinGetActiveTitle, myvar sleep, 3000 winactivate, %myvar% Send,pass123 Send,{ENTER} End: Exit I'm not sure that I needed the winwait command, so used the sleep command instead ... This seems to work good !
  25. ah, no probs ! Do you think it will be better to use V3 then ? JdeB's method using the winwait command looks like it may work, but I don't understand what the text name is.
×
×
  • Create New...