What is your OS? Generally speaking custom actions that affect the state of the machine should generally be "deferred" actions instead of "immediate" actions, as those are part of the generated "installation" script and have access to elevated privileges and can participate in rollback protections.
-----Original Message----- From: Polazhenko Sergey [mailto:s_polazhe...@tut.by] Sent: Wednesday, September 30, 2009 7:50 AM To: 'General discussion for Windows Installer XML toolset.' Subject: [WiX-users] do not executing custom actions on uninstall Hi, all. Can you help with a strange trouble. I have few custom actions (calls for c++ functions in external dll), all custom actions works fine on install, but neither on uninstall, thanks. I have problems with custom actions: RemoveIISExtension and UnRegDocSource. I tried running it before RemoveFiles and also after InstallInitialize. Also I tried condition: <![CDATA[Installed AND REMOVE = "ALL"]]> Thanks. <InstallExecuteSequence> <Custom Action="RemoveIISExtension" Before="RemoveFiles"> <![CDATA[Installed AND REMOVE = "ALL" AND (&SIFilterServer=3)]]> </Custom> <Custom Action="UnRegDocSource" Before="RemoveFiles"> <![CDATA[Installed AND REMOVE = "ALL" AND ((&SIFilterDocSource=3) OR (&SIFilterClientConsole=3))]]> </Custom> <Custom Action="InstallAndConfigureIIS" After="InstallFinalize"> <![CDATA[NOT Installed AND (&SIFilterServer=3)]]> </Custom> <Custom Action="CheckForSdk" After="InstallAndConfigureIIS"> <![CDATA[NOT Installed AND ((&SIFilterDocSource=3) OR (&SIFilterClientConsole=3))]]> </Custom> <Custom Action="RegDocSource" After="CheckForSdk"> <![CDATA[NOT Installed AND ((&SIFilterDocSource=3) OR (&SIFilterClientConsole=3))]]> </Custom> <Custom Action="NotifyAboutServerConsole" After="RegDocSource"> <![CDATA[NOT Installed AND (&SIFilterServer=3)]]> </Custom> </InstallExecuteSequence> <Binary Id="ServerCA" SourceFile="..\ServerCA\bin\Release\ServerCA.dll" /> <CustomAction Id="RemoveIISExtension" BinaryKey="ServerCA" DllEntry="RemoveIISExtenstion" Execute="immediate" Return="check" HideTarget="no" /> <CustomAction Id="UnRegDocSource" BinaryKey="ServerCA" DllEntry="UnregDocumentSource" Execute="immediate" Return="check" HideTarget="no" /> <CustomAction Id="InstallAndConfigureIIS" BinaryKey="ServerCA" DllEntry="InstallAndConfigureIIS" Execute="immediate" Return="check" HideTarget="no" /> <CustomAction Id="NotifyAboutServerConsole" BinaryKey="ServerCA" DllEntry="NotifyAboutServerConsole" Execute="immediate" Return="check" HideTarget="no" /> <CustomAction Id="CheckForSdk" BinaryKey="ServerCA" DllEntry="CheckForSdk" Execute="immediate" Return="check" HideTarget="no" /> <CustomAction Id="RegDocSource" BinaryKey="ServerCA" DllEntry="RegDocumentSource" Execute="immediate" Return="check" HideTarget="no" /> ______________________ WBR, Polazhenko Sergey ---------------------------------------------------------------------------- -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users