I am trying MsiGetFeatureState is called after MsiDoAction in CustomAction.
MsiDoAction( hInstall, "CostInitialize" );
MsiDoAction( hInstall, "FileCost" );
MsiDoAction( hInstall, "CostFinalize" );
:
MsiGetFeatureState( hInstall, "FEATUREA", ... );
Is the problem in this method?
> -----Original Message-----
> From: Rob Mensching [mailto:[email protected]]
> Sent: Friday, February 04, 2011 1:50 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] How to Get Feature State In the Custom Action
>
> The Feature state isn't set before CostInitialize.
>
> On Thu, Feb 3, 2011 at 3:48 AM,
> <[email protected]> wrote:
>
> > Hi!
> >
> > I want use MsiGetFeatureState in CustomAction, and the
> CustomAction
> > is scheduled before "CostInitialize".
> >
> >
> > in Wix:
> > <CustomAction Id="SetPropertyByFeatureState"
> > DllEntry="SetPropertyByFeatureState" BinaryKey="XDLL" />
> > <InstallExecuteSequence>
> > <Custom Action="SetPropertyByFeatureState" />
> > </InstallExecuteSequence>
> > --------------------------------
> >
> > in C++ CustomAction:
> > --------------------------------
> > UINT _stdcall SetPropertyByFeatureState( MSIHANDLE hInstall ) {
> > INSTALLSTATE installed;
> > INSTALLSTATE action;
> >
> >
> > // Get Feature State
> > ::MsiGetFeatureState( hInstall, "FEATUREA",
> &installed, &action );
> >
> >
> > :
> > // Set Property by installed.
> > if( installed == ::INSTALLSTATE_LOCAL ) {
> > MsiSetProperty( hInstall, "XXXXX", "1" );
> > }
> >
> > :
> > }
> >
> > How to get Feature state in the CustomAction and before
> CostInitialize ?
> >
> >
> >
> >
> --------------------------------------------------------------
> ----------------
> > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> > Finally, a world-class log management solution at an even better
> > price-free!
> > Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> > February 28th, so secure your free ArcSight Logger TODAY!
> > http://p.sf.net/sfu/arcsight-sfd2d
> > _______________________________________________
> > WiX-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
>
>
> --
> virtually, Rob Mensching - http://RobMensching.com LLC
> --------------------------------------------------------------
> ----------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even
> better price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users