View Full Version : Disabling a setup type

02-28-2005, 02:38 PM
I'm trying to create an installation with a list of setup types. Looks like there is no way to disable a setup type or at least remove all the unnecessary ones in SdSetupTypeEx() function call, it always lists all the types available. While searching InstallShield support site I found a link to an article: Q102886, "HOWTO: Displaying a Subset of Defined Setup Types by Calling the Function _DisplaySpecifiedSetupTypes" at http://support.installshield.com/kb/kbresults.asp?gv=1&txtarticleid=Q102886
But the link is dead. Any suggestions?

03-01-2005, 02:28 AM

Check the following link, it works


05-25-2005, 12:49 PM

I read the support pages related to the Q102886 article; however, those apply to IS 5.x. Does anyone know of a way to disable a setup type in IS 10.5?

05-25-2005, 02:35 PM
Yes you can. You have to do it through the IDE.

For an InstallScript Project go to:
Installation Designer --> Organization --> Setup Types

The FeatureSetupTypeSet function sets the specified setup type in the file media referenced by szFeatureSource. You can use FeatureSetupTypeSet to override the selection made in a setup type dialog, such as SdSetupTypeEx.

// set the setup-type programmatically, instead of calling SdSetupType functions
FeatureSetupTypeSet(MEDIA, "Complete");

Read this post completely:
FeatureSelectItem() and FeatureSetupTypeSet()

Setup Types --> Features --> Components --> Directories/Files

Setup Types: Typical, Custom, Complete, Compact, Network, your-own-types...

05-25-2005, 03:17 PM
Please accept my apologies, I should have been more exact in my question. Here's what I'm trying to do. I have have 6 different setup types and am displaying them using SdSetupTypeEx. One of these setup types needs to be disabled when the setup is executed on a client machine/workstation, so the user cannot select it. I was able to disable the necessary features (in SdFeatureTree) if the user selects the custom setup type. Any ideas are welcome.

05-26-2005, 02:44 PM
If it was a custom dialog with radio buttons, you can disable it.
You can try creating your own custom SetupType dialog with radio buttons!

disable radio button

SdSetupTypeEx() has a single-selection list box or combo box control in a custom dialog box
SdSetupType() has radio buttons
SdSetupType2() has radio buttons

You can access the source code of the InstallShield dialogs. Be very careful if you plan to change their code (make backup copies).

C:\Program Files\InstallShield X\Script\isrt\src
C:\Program Files\InstallShield X\Script\isrt\src\SdSetupTypeExDlg.rul
C:\Program Files\InstallShield X\Script\isrt\src\SdSetupTypeDlg.rul (has radio buttons)
C:\Program Files\InstallShield X\Script\isrt\src\SdSetupType2Dlg.rul (has radio buttons)

Filename: SdSetupTypeExDlg.rul
CtrlGetCurSel( szDlg, SD_LISTBOX, szDisplayName );

The CtrlGetCurSel function retrieves the currently selected item from a single-selection list box or combo box control in a custom dialog box. Call CtrlGetMultCurSel to retrieve items from multi-selection list boxes.

Filename: SdSetupType2Dlg.rul

How to create user defined dialog with script

05-26-2005, 03:25 PM
Hi Perucho,

Thank you so much for the creative option :eek: . I think I may try it. I believe I have a pretty good handle of what you are describing. Thanks again! :D