I am writing a new major update to our product. In my installer, I start by looking for the configuration settings of the previous version, and then I want to delete the previous version.
I found several tutorials telling me how to make MSI suitable for such updates.
However, the previous one was not MSI.
This was not in line with best practices.
However, the registry HKLM \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Uninstall {GUID} indicates UninstallString.
Using RegistrySearch, I can easily find the command below, which I store in UNINSTALL_CMD.
RunDll32 C:\PROGRA~1\COMMON~1\INSTAL~1\PROFES~1\RunTime\10\01\Intel32\Ctor.dll,LaunchSetup "C:\Program Files\InstallShield Installation Information\{GUID}\setup.exe" -l0x9 -removeonly 4:
I can not get the CustomAction freeze needed for the actual uninstall.
<CustomAction Id="ca.UninstPrev" Property="UNINSTALL_CMD" ExeCommand="" />
MSI Logs say:
Information 1721. There is a problem with this Windows Installer package. The program required to complete this installation failed to start. Contact your support staff or package provider. Action: ca.UninstallPrevious, location: RunDll32 C: \ PROGRA ~ 1 \ COMMON ~ 1 \ INSTAL ~ 1 \ PROFES ~ 1 \ RunTime \ 10 \ 01 \ Intel32 \ Ctor.dll, LaunchSetup "C: \ Program Files \ InstallShield Installation Information {GUID} \ setup.exe "-l0x9 -removeonly, command:
Does anyone see what I'm doing wrong here?
respectfully
Leif
source share