I have installer with chained msi.
If i do uninstall, it doesn't remove the registry key of the chaind msi. i tried to solve it with many ways but i didn't succeed.
I'm writing my ways hoping someone will find where it went wrong:
I wrote a batch file:
REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{product code} /f
This batch file remove the registry key when i run it stand alone, but if i put it via the installshield as a custom action it failed.
By custom action:
LaunchAppAndWait("C:\Windows\System32\cmd.exe ", "/C REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{product code} /f", WAIT);
By custom action that tun the batch file
LaunchAppAndWait("C:\Windows\System32\cmd.exe ", "/C \"C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\remove registryKey.bat\"", WAIT);
MsiExec.exe /x{GUID} - failed because it cannot run two installation in parallel
I really need your help!!! I have been trying to solve it a long time ago without success.
Thanks in advance!!!