Jump to content

Removing the old app


aiuse
 Share

Recommended Posts

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

  • Moderators

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

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

  • Moderators

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

  • Moderators

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...