Sign in to follow this  
Followers 0
aiuse

Removing the old app

8 posts in this topic

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

Share this post


Link to post
Share on other sites



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.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

The manual installation locally worked for both version but it fails when push from sccm. I will try. Thanks

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0