0
votes

all/ There is app, installer for app is created by InstallShield (not msi project) I need uninstall app and wait until uninstaller terminated.

I read registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{MyAppGuid}, UninstallString and try start uninstaller

in my case UninstallString = "C:\Program Files\InstallShield Installation Information{9F2A3D76-7785-492F-89E5-3F0FE2D205DC}\setup.exe" -runfromtemp -l0x0419 -removeonly

but in cmd.exe "start /wait {UninstallerString}" don't wait until uninstaller terminated. I think uninstaller run same temp exe and terminated immediately. but then how can I resolve ny problem? Any idea??

1
what are you trying to say? you mean you need to uninstall first and proceed with the installation? can you please be clear. - anand
hm, sorry for my Engish.I need to start uninstall and wait until uninstaller is done - Jack128
you want to initiate uninstall during installation? have you tried LaunchAppAndWait ? - anand

1 Answers

1
votes

Installshield added a /clone_wait switch at some point which solves your problem, as seen here:

This parameter indicates that the original setup should wait for the cloned setup process to complete before exiting.

Your uninstall string will look like this:

UninstallString = "C:\Program Files\...\setup.exe" -runfromtemp -l0x0419 -removeonly /clone_wait

-clone_wait will probably work too but I've tested and used it with /clone_wait.