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