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
- :
- Set the Feature Required at runtime
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
May 06, 2009
09:26 AM
Set the Feature Required at runtime
Hi
In Basic MSI project I'm trying to set the Feature Required field at run time using this code.
I can successfully set the Display and Title but it seems it has no affect on the Required, Any ideas ?
hDB = MsiGetActiveDatabase(hMSI);
MsiDatabaseOpenView(hDB,"SELECT * FROM `Feature` WHERE `Feature`= '" + FeatureName + "'", hView);
MsiViewExecute(hView, 0);
MsiViewFetch(hView, hRecord);
nBuff = 256;
MsiViewModify(hView, 6, hRecord); // 6 = delete
nResult = MsiRecordSetInteger(hRecord, 8, 16);
MsiViewModify(hView, 7, hRecord); // 7 = insert temp
MsiViewClose(hView);
MsiCloseHandle(hRecord);
MsiCloseHandle(hView);
In Basic MSI project I'm trying to set the Feature Required field at run time using this code.
I can successfully set the Display and Title but it seems it has no affect on the Required, Any ideas ?
hDB = MsiGetActiveDatabase(hMSI);
MsiDatabaseOpenView(hDB,"SELECT * FROM `Feature` WHERE `Feature`= '" + FeatureName + "'", hView);
MsiViewExecute(hView, 0);
MsiViewFetch(hView, hRecord);
nBuff = 256;
MsiViewModify(hView, 6, hRecord); // 6 = delete
nResult = MsiRecordSetInteger(hRecord, 8, 16);
MsiViewModify(hView, 7, hRecord); // 7 = insert temp
MsiViewClose(hView);
MsiCloseHandle(hRecord);
MsiCloseHandle(hView);
1 Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 16, 2010
10:14 AM
Is there a workarounf for it ?
