View Full Version : Determine Setup Type selected in SdSetupTypeEx

05-24-2005, 04:57 PM
In my InstallScript MSI project I have deleted all of the standard Setup Types (Custom, Typical, etc) and created 2 new Setup Types: WebServer and AppServer.

In the OnFirstUIBefore() event handler I call SdSetupTypeEx. The user sees the display names for my 2 custom Setup Types and I capture their choice in the variable svSetupType.

nResult = SdSetupTypeEx(szTitle, szMsg, "", svSetupType, 0);

Does SdSetupTypeEx save this Setup Type somewhere in a global property that I can reference elsewhere in my install project? Do I need to save it somewhere instead as a custom property?

Specifically, I have a COM+ app that needs to use this Setup Type as a condition to decide whether to install the Server or Proxy version of the components.


Michael Levy

05-25-2005, 08:10 AM
This is a feature that is needed in InstallShield. I've wished many times for a way to get the currently selected Setup Type, but there isn't one - at least I've never found a way.

I think you'll have to save the selected Type to your own property.

PS - go to the Feedback page and put in a feature request for this and maybe we'll get it one day :-) http://www.installshield.com/feedback