Thanks Brant Gurganus. Can you provide some examples ... I am using WIX 3.0...
Thanks Ranganatha On Tue, Sep 29, 2009 at 5:36 PM, Brant Gurganus <br...@gurganus.name> wrote: > In your installer, you should have it create the registry settings for > the snap-in instead of calling InstallUtil. Wix 2.0 has a schema > extension to do this. Then, you put the MMC in its own component that > is shared by both products. The Windows Installer will automatically > do reference counting on the component and will only install it when > it doesn't exist and will remove it when no more products are > installed that use it. > > Brant Gurganus > http://gurganus.name/brant > > > > On Tue, Sep 29, 2009 at 7:49 AM, Ranganatha H C <ranganatha...@gmail.com> > wrote: > > 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 > > > > > ------------------------------------------------------------------------------ > 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 > -- 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