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: Set Setup Type programmatically
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
‎Mar 25, 2008
09:58 AM
Set Setup Type programmatically
Installshield 2008 - InstallScript MSI Project
Hi,
I have a custom dialog with 3 RadioButtons.
I want to set Setup Type from the value of the RadioButton selected.
How can I do it? Can u post the code?
Thank u in advance,
Davide
Hi,
I have a custom dialog with 3 RadioButtons.
I want to set Setup Type from the value of the RadioButton selected.
How can I do it? Can u post the code?
Thank u in advance,
Davide
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 25, 2008
10:18 AM
Perhaps use FeatureSetupTypeSet?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 25, 2008
12:48 PM
I tried with the following code but it doesnt work:(
Do u have some suggestions?
if (FeatureSetupTypeSet (MEDIA, "Minimal") < 0) then
MessageBox ("FeatureSetupTypeSet failed.", SEVERE);
else
FeatureSetupTypeSet (MEDIA, "Minimal");
endif;
FeatureSetupTypeGetData (MEDIA, SETUP_TYPE, SETUPTYPE_INFO_DISPLAYNAME, nvInfo, svInfo );
MessageBox (SETUP_TYPE, SEVERE); //this message box doesnt show me anything :(((
Do u have some suggestions?
if (FeatureSetupTypeSet (MEDIA, "Minimal") < 0) then
MessageBox ("FeatureSetupTypeSet failed.", SEVERE);
else
FeatureSetupTypeSet (MEDIA, "Minimal");
endif;
FeatureSetupTypeGetData (MEDIA, SETUP_TYPE, SETUPTYPE_INFO_DISPLAYNAME, nvInfo, svInfo );
MessageBox (SETUP_TYPE, SEVERE); //this message box doesnt show me anything :(((
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 25, 2008
01:09 PM
Perhaps try MessageBox(svInfo, INFORMATION);?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 26, 2008
04:02 AM
it still doesnt show me anything.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 26, 2008
09:58 AM
Actually, FeatureSetupTypeGetData will just get the display name or description of a setup type, and not return the current setup type. (For example, try it with the "Complete" setup type.)
The true test is, after you call FeatureSetupTypeSet, are the correct features installed?
The true test is, after you call FeatureSetupTypeSet, are the correct features installed?
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)