cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
davide77
Level 5

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
Labels (1)
0 Kudos
(5) Replies
RobertDickau
Flexera Alumni

Perhaps use FeatureSetupTypeSet?
0 Kudos
davide77
Level 5

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 :(((
0 Kudos
RobertDickau
Flexera Alumni

Perhaps try MessageBox(svInfo, INFORMATION);?
0 Kudos
davide77
Level 5

it still doesnt show me anything.
0 Kudos
RobertDickau
Flexera Alumni

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?
0 Kudos