Page 1 of 1
Uninstalling from WiX installer
Posted: Tue Mar 15, 2011 2:57 am
by Erik
I have an installation package built in IA8 that needs to be uninstalled from another installer built in WiX. However, this is not working too well for me. Windows installer has a stage in the standard installation procedure called RemoveExistingProducts which attempts to uninstall but it doesn't work. Neither does running "msiexec /x <productcode>". If I check the logs it says it finishes properly but the uninstall doesn't actually take place.
Does anyone have a solution to this problem?
Re: Uninstalling from WiX installer
Posted: Tue Mar 15, 2011 4:04 am
by giaviv
Dear Erik,
Perhaps try running setup.exe /uninstall instead of msiexec?
Re: Uninstalling from WiX installer
Posted: Tue Mar 15, 2011 7:25 am
by Erik
giaviv wrote:Dear Erik,
Perhaps try running setup.exe /uninstall instead of msiexec?
Hello giaviv, thanks for your suggestion but that's not possible from the WiX script. That stuff is handled by windows installer and there is no way to customize the call. I'm just assuming it works the same way as when running msiexec /x but I guess that's not relevant.
Thanks,
Erik
Re: Uninstalling from WiX installer
Posted: Tue Mar 15, 2011 12:03 pm
by giaviv
Dear Erik,
I am not too sure why it is not working. Are you able to uninstall manually?
Re: Uninstalling from WiX installer
Posted: Wed Mar 16, 2011 1:18 am
by Erik
giaviv wrote:Dear Erik,
I am not too sure why it is not working. Are you able to uninstall manually?
I am able to uninstall through the following methods:
-Choose uninstall from add/remove programs in the control panel
-Run my setup.exe with the REMOVE=TRUE and MODIFY=FALSE flags
-Run msiexec /i {PRODUCTCODE} REMOVE=TRUE MODIFY=FALSE
I am not able to uninstall through the following methods:
-Run msiexec /x {PRODUCTCODE}
-Through the RemoveExistingProducts stage in windows installer
Re: Uninstalling from WiX installer
Posted: Wed Mar 16, 2011 2:32 pm
by giaviv
Dear Erik,
I am not familiar with RemoveExistingProducts, but calling msiexec /x {PRODUCTCODE} for an InstallAware generated installation works fine.
Furthermore, calling the UninstallString of an InstallAware setup also works for me..
Re: Uninstalling from WiX installer
Posted: Wed Mar 16, 2011 2:32 pm
by giaviv
Dear Erik,
I am not familiar with RemoveExistingProducts, but calling msiexec /x {PRODUCTCODE} for an InstallAware generated installation works fine.
Furthermore, calling the UninstallString of an InstallAware setup also works for me..