smartmanwin Posted April 19, 2009 Share Posted April 19, 2009 Hi I wonder if someone can help me with this one. I have done most of the part already just few things I want to have clear idea about. Also this is the first time I am using such a great tool. Below is a working script that I am using to uninstall a software from the users computer. I want to apply this uninstallation through SMS silently with no user interaction. Most of the users have only power rignts but the sms uses the system account to install software I hope it can work using the autoit compiled script. Please let me know how to hide the the windows so it can be seamless. Right now it is working when I run it on my computer but I can see the mouse moving and clicking the buttons. I just want it silent and seamless to the users when it is advertised to the users computers. Please let me know if there are limitations in using SMS. Many thanks, Opt("WinWaitDelay",100) Opt("WinTitleMatchMode",4) Opt("WinDetectHiddenText",1) Opt("MouseCoordMode",0) Run('C:\V8_5\Setup\Setup.exe') WinWait("NetScreen-Remote Setup","Welcome to the NetSc") If Not WinActive("NetScreen-Remote Setup","Welcome to the NetSc") Then WinActivate("NetScreen-Remote Setup","Welcome to the NetSc") WinWaitActive("NetScreen-Remote Setup","Welcome to the NetSc") MouseMove(346,362) MouseDown("left") MouseUp("left") WinWait("Confirm Uninstall","Do you want to compl") If Not WinActive("Confirm Uninstall","Do you want to compl") Then WinActivate("Confirm Uninstall","Do you want to compl") WinWaitActive("Confirm Uninstall","Do you want to compl") MouseMove(201,78) MouseDown("left") MouseUp("left") WinWait("Uninstall IPSec Security Policy","Would you like to de") If Not WinActive("Uninstall IPSec Security Policy","Would you like to de") Then WinActivate("Uninstall IPSec Security Policy","Would you like to de") WinWaitActive("Uninstall IPSec Security Policy","Would you like to de") MouseMove(190,98) MouseDown("left") MouseUp("left") WinWait("NetScreen-Remote Setup","NetScreen-Remote Set") If Not WinActive("NetScreen-Remote Setup","NetScreen-Remote Set") Then WinActivate("NetScreen-Remote Setup","NetScreen-Remote Set") WinWaitActive("NetScreen-Remote Setup","NetScreen-Remote Set") MouseMove(441,365) MouseDown("left") MouseUp("left") WinWait("NetScreen-Remote Setup","Yes, I want to resta") If Not WinActive("NetScreen-Remote Setup","Yes, I want to resta") Then WinActivate("NetScreen-Remote Setup","Yes, I want to resta") WinWaitActive("NetScreen-Remote Setup","Yes, I want to resta") MouseMove(283,18) MouseDown("left") MouseMove(426,21) MouseUp("left") MouseMove(344,356) MouseDown("left") MouseUp("left")uninstall508.au3 Link to comment Share on other sites More sharing options...
Legacy99 Posted April 19, 2009 Share Posted April 19, 2009 (edited) If it were me I'd be looking in the registry for an uninstall switch on the installer for that software. Start here HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall. Try it with a /quiet or /S switch if you find it. Juniper must have documentation on how to remove it through command line. Edited April 19, 2009 by Legacy99 Link to comment Share on other sites More sharing options...
smartmanwin Posted April 19, 2009 Author Share Posted April 19, 2009 (edited) Juniper does not have any thing on silent uninstallation but mostly is manualy uninstall. I have really exshauted all my efforts on a the command line switch. The unistall string on the registry is RunDll32 C:\PROGRA~1\COMMON~1\INSTAL~1\engine\6\INTEL3~1\Ctor.dll,LaunchSetup "C:\Program Files\Juniper\NetScreen-Remote\Setup\Setup.exe" -l0x9 I have also tried also creating the answer file using this command setup.exe /s /f1"C:\myanswerfile.iss" /s swtch is working silently with the answer file.iss that I created but the issue is right when the uninstall is done the computer restarts itself with no warning. Even though I made sure the bootoption=0. Here is the answer file if you check it yourself. [installShield Silent] Version=v6.00.000 File=Response File [File Transfer] OverwrittenReadOnly=NoToAll [{2F931B84-0CEE-11D1-AA7D-0080AD1AC47A}-DlgOrder] Dlg0={2F931B84-0CEE-11D1-AA7D-0080AD1AC47A}-SdWelcomeMaint-0 Count=4 Dlg1={2F931B84-0CEE-11D1-AA7D-0080AD1AC47A}-SprintfBox-0 Dlg2={2F931B84-0CEE-11D1-AA7D-0080AD1AC47A}-AskYesNo-0 Dlg3={2F931B84-0CEE-11D1-AA7D-0080AD1AC47A}-SdFinishReboot-0 [{2F931B84-0CEE-11D1-AA7D-0080AD1AC47A}-SdWelcomeMaint-0] Result=303 [{2F931B84-0CEE-11D1-AA7D-0080AD1AC47A}-SprintfBox-0] Result=1 [Application] Name=NetScreen-Remote Version=10.3.5.6 Company=Juniper Lang=0009 [{2F931B84-0CEE-11D1-AA7D-0080AD1AC47A}-AskYesNo-0] Result=1 [{2F931B84-0CEE-11D1-AA7D-0080AD1AC47A}-SdFinishReboot-0] Result=1 BootOption=0 Please let me know if you have any other suggestions. Edited April 19, 2009 by smartmanwin Link to comment Share on other sites More sharing options...
smartmanwin Posted April 20, 2009 Author Share Posted April 20, 2009 Please ignore my posting as I have already found the perfect the solution. Thanks Link to comment Share on other sites More sharing options...
Juvigy Posted April 20, 2009 Share Posted April 20, 2009 I am curious what was the perfect solution? Link to comment Share on other sites More sharing options...
Rishav Posted April 20, 2009 Share Posted April 20, 2009 i had a good solution too. get myuninstall and find the registry entry. then run MsiExec.exe /x /qn <Package name> Link to comment Share on other sites More sharing options...
smartmanwin Posted April 21, 2009 Author Share Posted April 21, 2009 i had a good solution too. get myuninstall and find the registry entry.then run MsiExec.exe /x /qn <Package name>Sorry this is a legacy program with no built in windows installer as far as I know. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now