FEature 1 and Feature 2.
and each feature has a condition;
i.e. Feature 1-> ISFEATURE1=1 and Level =0
Feature 2-> ISFEATURE2=1 and Level =0
In the First InstallScript Custom action - ;
In Which I set the properties;
function MyFunction1(hMSI)
// To Do: Declare local variables.
begin
// To Do: Write script that will be executed when MyFunction is called.
MsiSetProperty (hMSI, "ISFEATURE1","0");
MessageBox("ISFEATURE1 0", INFORMATION);
MsiSetProperty (hMSI, "ISFEATURE2","1");
MessageBox("ISFEATURE2 1", INFORMATION);
end;
The first Custom action is called in the DoAction of the Next button of Licesnse Dialog;
The Second InstallScript Custom action is as follows:
function MyFunction2(hMSI)
// To Do: Declare local variables.
INT nSize;
STRING szGet;
begin
// To Do: Write script that will be executed when MyFunction is called.
MsiGetProperty(hMSI,"ISFEATURE1",szGet,nSize);
MessageBox(szGet, INFORMATION);
MsiGetProperty(hMSI,"ISFEATURE2",szGet,nSize);
MessageBox(szGet, INFORMATION);
end;
This is called in the DoAction of Next Button of the Destination Folder Dialog. The Custom Action is getting called for sure as I see the Message Boxes. THe properties get set as set in MyFunction1.
But, The Condition for the features,
i.e. Feature 1-> ISFEATURE1=1 and Level =0
Feature 2-> ISFEATURE2=1 and Level =0
Does not work,
I see both the Features, on the contary only Feature 1 should be displayed in the Custom Setup dialog as the property ISFEATURE2 is set to 1 in the InstallScript Custom action.
To throw more light only if the Custom Action (MyFunction1) is set to execute in INSTALL UI SEQUENCE to does the condition for the feature work. Does that Mean that the Condition are evaluated only during FIRST ACTION?
Edited by trshyam01, 03 April 2007 - 07:13.