Hi I'm trying to uninstall an old app that was made with suxxx NSIS installer and need to upgrade it to MSI. What could be the best way? I tried to make a registry search and set the UNINSTALLNSIS property.
I ran MSI with debug mode and see the property has been set: MSI (c) (78:40) [15:40:42:577]: PROPERTY CHANGE: Adding UNINSTALLNSIS property. Its value is 'C:\Program Files (x86)\MyApp\uninstall.exe'. But the Condition Message I have added for debugging does not popup. I tried "UNINSTALLNSIS" and "UNINSTALLNSIS AND NOT Installed" both no success. This should only be evaluated on install as a side note. <Property Id="UNINSTALLNSIS"> <RegistrySearch Id="UNINSTALLNSIS_REGSEARCH" Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MyApp" Name="UninstallString" Type="raw" /> </Property> <Condition Message="Previous version of MyApp installed.">UNINSTALLNSIS AND NOT Installed</Condition> Here is the full example about what I planed to do: <Property Id="UNINSTALLNSIS"> <RegistrySearch Id="UNINSTALLNSIS_REGSEARCH" Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MyApp" Name="UninstallString" Type="raw" /> </Property> <Property Id="QtExecCmdLine" Value="UNINSTALLNSIS /S"/> <CustomAction Id="QtMyAppUninstallWithNSIS" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="immediate" Return="check"/> <InstallExecuteSequence> <Custom Action="QtMyAppUninstallWithNSIS" After="InstallInitialize"/> </InstallExecuteSequence> I also need to run RemoveFolderEx somewhere directly after the silent uninstall custom action as these NSIS uninstall is *very* buggy... many stale files in there. Any chance to get this RemoveFolderEx executed only if the app is removed with NSIS silent setup so I do not need to run RemoveFolderEx On="install"? A newbie example would be of great help. This has been tested on WiX 3.6.1922. Regards Marc ------------------------------------------------------------------------------ Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users