This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- MsiGetFeatureState
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 04, 2009
01:28 AM
MsiGetFeatureState
Hi,
When i call the MsiGetFeatureState function, I always get a value of 2 which represents INSTALLSTATE_ABSENT. I assume this is happening because it can not find the feature which i have passed in as a parameter. But i do not know where i am going wrong because i am hard coding the feature name into the function call.
ie.
MsiGetFeatureState(hMSI,"featureName",installState,actionState);
I always get a value of 2 for installState.
Any help or suggestions would be appreciated
Thanks,
Suchin
When i call the MsiGetFeatureState function, I always get a value of 2 which represents INSTALLSTATE_ABSENT. I assume this is happening because it can not find the feature which i have passed in as a parameter. But i do not know where i am going wrong because i am hard coding the feature name into the function call.
ie.
MsiGetFeatureState(hMSI,"featureName",installState,actionState);
I always get a value of 2 for installState.
Any help or suggestions would be appreciated
Thanks,
Suchin
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 11, 2009
09:27 AM
Try like..
You came to know that..the feature is selected or not.
szFeature = "X-Feature name";
MsiGetFeatureState(hMSI, szFeature, lResult, lAction);
if (lAction > 0 ) then
MsiSetProperty(ISMSI_HANDLE,"PINS","1");
else
MsiSetProperty(ISMSI_HANDLE,"PINS","0");
endif;
If it returns "1" means he selectd the feature to install in the target diretory.
i think Code will help.
Thanks
Reddy 611
You came to know that..the feature is selected or not.
szFeature = "X-Feature name";
MsiGetFeatureState(hMSI, szFeature, lResult, lAction);
if (lAction > 0 ) then
MsiSetProperty(ISMSI_HANDLE,"PINS","1");
else
MsiSetProperty(ISMSI_HANDLE,"PINS","0");
endif;
If it returns "1" means he selectd the feature to install in the target diretory.
i think Code will help.
Thanks
Reddy 611
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 17, 2009
05:36 AM
Hi Reddy,
Thanks for the reply. However, I need to check the value during Repair, in the maintenance mode.
-Suchin
Thanks for the reply. However, I need to check the value during Repair, in the maintenance mode.
-Suchin