Hi All, We need to install a MMC (Microsoft Management Console) snap-in on target machine.. We have several products... So a if MMC is installed by some other product on a machine we should not try to install it again...
I have wrote the below custom action to install the MMC <CustomAction Id="InstallMMCSnapIn" Directory='DllFolder' Impersonate='yes' ExeCommand='"[WindowsFolder]Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe" /LogToConsole=false MMCSnapIn.dll' Return='check'> </CustomAction> <CustomAction Id="UnInstallMMCSnapIn" Directory='DllFolder' Impersonate='yes' ExeCommand='"[WindowsFolder]Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe" /LogToConsole=false /u MMCSnapIn.dll' Return='check'> </CustomAction> <InstallExecuteSequence > <Custom Action ="InstallMMCSnapIn" After="InstallFinalize"><![CDATA[ NOT Installed ]]></Custom> <Custom Action ="UnInstallMMCSnapIn" Before="RemoveFiles"><![CDATA[Installed]]></Custom> </InstallExecuteSequence> A component has been added to with all the required files, same GUID and set SharedDllRefCount="yes". So , the files are installing once once when several products are installed.. and when a last existing product is installed the files are getting removed ... So, How can I apply the same logic to installing MMC snap in.... i.e Custom action InstallMMCSnapIn should run only when a first product is installed...and Custom Action UnInstallMMCSnapIn should run only when a last product is u installed from a machine.... Thanks in advance Ranganatha -- Regards/Ranga ------------------------------------------------------------------------------ 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