Uninstall application automatically
Hey all,
Working on upgrading a program (Performance Impact Workstation 1.01 by Knowledgepoint) to a new version.
The upgrade instructions state that the program needs to be uninstalled prior to installing the new version, computer rebooted, etc..
I'm trying to automate the uninstallation of the old version using Zenworks.
Going into the registry, I have found the UninstallString in HKLM\Software\Windows\CurrentVersion\Uninstall
The string is:
"RunDll32 C:\PROGRA~1\COMMON~1\INSTAL~1\PROFES~1\RunTime\0701\Intel32\Ctor.dll,LaunchSetup "C:\Program Files\InstallShield Installation Information\{045765C8-9D64-440E-B07C-AA00F250C7B2}\setup.exe" -l0x9 "
However, when I run that command, I'm prompted with a screen asking if I want to Modify, Repair, or Remove the installation. This is the part that I need to automatically "remove" and not ask any questions.
I've tried "msiexec.exe /x{045765C8-9D64-440E-B07C-AA00F250C7B2} /qb" , but I'm assuming since the application wasnt installed with an msi, that is the reason I'm getting a "action is only valid for products that have been installed" error message.
Question is, is there a way I can automate the uninstallation process?
Thanks in advance
Working on upgrading a program (Performance Impact Workstation 1.01 by Knowledgepoint) to a new version.
The upgrade instructions state that the program needs to be uninstalled prior to installing the new version, computer rebooted, etc..
I'm trying to automate the uninstallation of the old version using Zenworks.
Going into the registry, I have found the UninstallString in HKLM\Software\Windows\CurrentVersion\Uninstall
The string is:
"RunDll32 C:\PROGRA~1\COMMON~1\INSTAL~1\PROFES~1\RunTime\0701\Intel32\Ctor.dll,LaunchSetup "C:\Program Files\InstallShield Installation Information\{045765C8-9D64-440E-B07C-AA00F250C7B2}\setup.exe" -l0x9 "
However, when I run that command, I'm prompted with a screen asking if I want to Modify, Repair, or Remove the installation. This is the part that I need to automatically "remove" and not ask any questions.
I've tried "msiexec.exe /x{045765C8-9D64-440E-B07C-AA00F250C7B2} /qb" , but I'm assuming since the application wasnt installed with an msi, that is the reason I'm getting a "action is only valid for products that have been installed" error message.
Question is, is there a way I can automate the uninstallation process?
Thanks in advance
0 Comments
[ + ] Show comments
Answers (4)
Please log in to answer
Posted by:
AngelD
16 years ago
Try creating an answer file for the uninstall.
Have a look at InstallShield Setup Parameters.
Have a look at InstallShield Setup Parameters.
Posted by:
joebrug
16 years ago
hi AngelD,
Thanks for the link.
I gave it a quick read and didnt see a way to set up an answer file for an UNinstall, but did for an Install. Did I miss something?
Anyway, I ran
"C:\Program Files\InstallShield Installation Information\{045765C8-9D64-440E-B07C-AA00F250C7B2}\setup.exe" with an /uninst switch and it prompts me with "This will remove Performance Impact Workstation - do you wish to proceed?"
So, the switch is kind of working, but I dont want to see that prompt either. Also tried throwing a /s on the end, but that didnt help.
Please let me know if I'm missing something.
Thanks for the link.
I gave it a quick read and didnt see a way to set up an answer file for an UNinstall, but did for an Install. Did I miss something?
Anyway, I ran
"C:\Program Files\InstallShield Installation Information\{045765C8-9D64-440E-B07C-AA00F250C7B2}\setup.exe" with an /uninst switch and it prompts me with "This will remove Performance Impact Workstation - do you wish to proceed?"
So, the switch is kind of working, but I dont want to see that prompt either. Also tried throwing a /s on the end, but that didnt help.
Please let me know if I'm missing something.
Posted by:
Francoisracine
16 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.