Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

Can I select a default when...


3 replies to this topic

ThalesGeo

ThalesGeo
  • Members
  • 4 posts

Posted 14 June 2001 - 19:04

When selecting Setup Type I give the user the option of selecting from three options, "Compact", "Custom", and "Full".  I would like the highlighted option to default to "Full", but currently it defaults to "Compact" I'm assuming because it just starts at the top of the list. Can anyone help me out?

Robert Graham

Robert Graham
  • Members
  • 70 posts

Posted 14 June 2001 - 19:24

Hi!

In the FirstUIBefore event in your script, make sure you have declared a STRING variable svSetupType.

Add a line before you call SdSetupTypeEx:

svSetupType = "Full";

Then call SdSetupType as:

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

The dialog will appear with the "Full" option highlighted as the default, no matter where it appears in the list.


ThalesGeo

ThalesGeo
  • Members
  • 4 posts

Posted 14 June 2001 - 19:40

Thanks Robert, that did the trick!

-ThalesGeo