aiuse Posted October 23, 2013 Share Posted October 23, 2013 We have an old software needs to be removed from more than 40 machines combined with Win7 x64 and x86. The Uninstall String from the registry for x86 is "C:Program FilesInstallShield Installation Information{6XXXXXXB-F887-XXXX-AC7B-4XXXXX9EAD7B}setup.exe" -runfromtemp -l0x0409 -removeonly and for x64 is "C:Program Files (x86)InstallShield Installation Information{6XXXXXXB-F887-XXXX-AC7B-4XXXXX9EAD7B}setup.exe" -runfromtemp -l0x0409 -removeonly Can this be done with AutoIT so I can just run the script remotely? Thanks in advance Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted October 23, 2013 Moderators Share Posted October 23, 2013 Yes, you can use the @OSArch macro to determine which command line to run. As far as running it on remote machines, I would Google PSExec; it is probably your best bet, unless you have a management suite like Altiris or SCCM. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
aiuse Posted October 23, 2013 Author Share Posted October 23, 2013 I am not familiar with PSExec. We have SCCM. I found some topics on this site for x86 and x64 using @OSArch but I don't know how to have that line run using AutoIT. If I run that "C:Program FilesInstallShi..." from Windows Sart > Run box, it works. How to automate it using AutoIT? thanks! Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted October 23, 2013 Moderators Share Posted October 23, 2013 With SCCM it is a snap, just do something like this: If @OSArch = "X64" Then ;uninstall command for 64bit Else ;uninstall command for 32bit EndIf Then create a package to deliver it to the machines. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
aiuse Posted October 23, 2013 Author Share Posted October 23, 2013 Thanks Link to comment Share on other sites More sharing options...
aiuse Posted October 24, 2013 Author Share Posted October 24, 2013 For some reasons, I can run this script locally to remove the software but it is not working remotely pushing from sccm. I already have #RequireAdmin at the top. Anything else I need to do? Thanks Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted October 24, 2013 Moderators Share Posted October 24, 2013 Yes, add some error checking, so you can see where in the script it is failing. Something like this should get you started: If @OSArch = "X64" Then FileWriteLine($logfile, "OS is 64bit, beginning Install") ;uninstall command for 64bit If @error Then FileWriteLine($logfile, "64bit install failed") Else FileWriteLine($logfile, "OS is 32bit, beginning Install") ;uninstall command for 32bit If @error Then FileWriteLine($logfile, "32bit install failed") EndIf "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
aiuse Posted October 24, 2013 Author Share Posted October 24, 2013 The manual installation locally worked for both version but it fails when push from sccm. I will try. Thanks 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