Have you tried something like this: <InstallExecuteSequence> <Custom Action="CA2.uninstall.SetProperty" After="MsiUnpublishAssemblies">INSTALLED</Custom> </InstallExecuteSequence>
This should execute the action only if the product is installed. ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nitin Chaudhari Sent: Thursday, March 22, 2007 9:37 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] wix, C# installer class, uninstall I am using a C# installer class, during installation, I am able to call my C# install function, however I am not able hook uninstall in wix to call my C# uninstall function. In Wix, I am using the following XML to hook uninstall... but the MSI log shows that this custom action is being invoked during installation itself. <Custom Action="CA2.uninstall.SetProperty" After="MsiUnpublishAssemblies">1</Custom> <Custom Action="CA2.uninstall" After="CA2.uninstall.SetProperty">1</Custom> How can I ensure that my custom action is executed only on uninstall? Thanks, Nitin ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users