PDA

View Full Version : Help with Features and SetupTypes.



The V Man
03-02-2005, 01:36 AM
Hi,

I have a MSDE product install using InstallScript MSI.(IS object for NT platforms) skinned.

We have 3 products, all use "common files", including the same MSDE instance, but different *.EXE's.

I have placed each *.EXE in a "Feature" (and its shortcuts)

I would like to customize the "SetupType Dialog" so instead of (Typical, Compact and Custom) I would like to have (Prod1, Prod2, Prod3 and Custom).

That will require me to "add" a radio button to the "SetupType Dialog" and modify the others to assign the selection to features.

Features are :
Common files - always installed
Prod1 - installed if 'Prod1' is selected from "SetupType Dialog"
Prod2 - installed if 'Prod2' is selected from "SetupType Dialog"
Prod3 - installed if 'Prod3' is selected from "SetupType Dialog"

'Custom' - allows the user to select any/all but cannot de-select common files.

Is this possible? It sounds straight forward.
Exactly what do I need to set on the "SetupType Dialog" and what/where is the exact code required in the InstallScript.

BTW - Im not a programmer.

Am I going about this the correct way? Any help appreciated.

Regards
VB

anitabs
03-02-2005, 06:51 AM
Here is an example for SetupType
helpnet.installshield.com/Robo/BIN/Robo.dll?tpc=/robo/projects/InstallShieldXLangRef/LangrefSetupType_example.htm - 8k - 2004-05-03

Amoussou
03-17-2005, 01:12 PM
You have to use this function:
SdSetupTypeEx(szTitle, szMsg, szReserved, svSetupType, nReserved);
instead of:
SdSetupType(...).

Make that change in the function OnFirstUIBefore(), in the "Dlg_SetupType" block.

Hope it helps.
Jonathan