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
- :
- Re: Disable a feature with installscript
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
‎Oct 11, 2011
09:29 AM
Disable a feature with installscript
Hi,
I am not able to disable a feature. I searched for one day but I have no idea
The code I use is
FeatureSelectItem(MEDIA, "F", FALSE);
FeatureSetData(MEDIA, "F", FEATURE_FIELD_VISIBLE, FALSE, "");
I have an error -132, but I have no description with FormatMessage.
I have made a custum action that launch a installscript function when I click on a button to validate a serial number.
Any idea ?
Thank you for your help
Romain
I am not able to disable a feature. I searched for one day but I have no idea
The code I use is
FeatureSelectItem(MEDIA, "F", FALSE);
FeatureSetData(MEDIA, "F", FEATURE_FIELD_VISIBLE, FALSE, "");
I have an error -132, but I have no description with FormatMessage.
I have made a custum action that launch a installscript function when I click on a button to validate a serial number.
Any idea ?
Thank you for your help
Romain
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 11, 2011
10:02 AM
I think the problem is that I have a basic msi project
but is there a solution to use this function ?
Thanks
but is there a solution to use this function ?
Thanks
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 11, 2011
10:44 AM
Try MsiSetFeatureState:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa370387(v=VS.85).aspx
Although, it's worth noting that MSI ControlEvents triggered from dialog controls are a lot easier to use. Specifically the AddLocal and Remove control events published from PushButtons are something you'll see if a lot of MSI packages out there.
http://msdn.microsoft.com/en-us/library/windows/desktop/aa370387(v=VS.85).aspx
Although, it's worth noting that MSI ControlEvents triggered from dialog controls are a lot easier to use. Specifically the AddLocal and Remove control events published from PushButtons are something you'll see if a lot of MSI packages out there.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 12, 2011
03:11 AM
Thank you !!!
It works 🙂
bye
Romain
It works 🙂
bye
Romain