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.
Photo

Trying to mimic SdAskOptionsList in Basic MSI


7 replies to this topic

csellers

csellers
  • Members
  • 2 posts

Posted 28 January 2005 - 18:39

I am porting an existing InstallShield 5.5 install to an InstallShield 10.5 Basic MSI install. In our install, we need to allow the user to select one or more items from a list of items that are not known until run time.

In our InstallShield 5.5 install, we accomplish this using SdAskOptionsList (which displays a list of items with a checkbox next to each), but I cannot find a similar method in the Basic MSI dialogs.

Does anyone have any ideas how I might accomplish this?

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 29 January 2005 - 10:39

There si no such control in MSI. You would have to use an external user interface if you really need it to work this way, or sue the InstallScript MSI project type (not recommended).
Maybe you can use some static check boxes instead? Or the Feature tree dialog? Or, with some additional work, you could have a dialog with two list boxes sideby side, and Add >> and << Remove buttons to move items between the two lists. This will require some installser SQL and a twin dialog, but it can be done.

towergee

towergee
  • Members
  • 5 posts

Posted 08 July 2005 - 06:21

QUOTE (csellers @ 2005-01-28 18:39)
I am porting an existing InstallShield 5.5 install to an InstallShield 10.5 Basic MSI install. In our install, we need to allow the user to select one or more items from a list of items that are not known until run time.

In our InstallShield 5.5 install, we accomplish this using SdAskOptionsList (which displays a list of items with a checkbox next to each), but I cannot find a similar method in the Basic MSI dialogs.

Does anyone have any ideas how I might accomplish this?

There is SdAskOptionsList in Installshield X too. Why not just use this one?

And I want to know how I can get which checkbox has been checked. I'd like to go to different functions depend on which checkbox is checked.

Thanks.

DenMori

DenMori
  • Full Members
  • 38 posts

Posted 14 July 2005 - 21:48

Hopefully, the creation of such a dialog won't be a huge pain. Stefan, is there a code sample of the dual list box out there that I can grab and customize for my needs (multiple database selection for running of SQL scripts)?

Dennis Morisseau
WebMD Practice Services
dmorisseau@webmd.net



Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 15 July 2005 - 14:19

My experience with MSI dialogs is somewhat limited, but the experience I did have taught me that it is almost impossible to create good, custom MSI dialogs. The whole deal is that the dialogs are defined in table format in the MSI, and you don't get the tools you need to work with to properly maintain the state of the dialog. For example when one control changes you will not always receive an event that you can handle in response to user action.

As far as I recall it is possible to spawn a real Win32 dialog directly from an MSI dialog by hooking it up to a button click event. It should then be possible to pump whatever value you generate in this dialog back to a windows installer property. This should give you a lot of flexibility, but is probably more effort than you want to put into it.
Regards
-Stein Åsmul

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 16 July 2005 - 15:35

QUOTE
Stefan, is there a code sample of the dual list box out there that I can grab and customize for my needs (multiple database selection for running of SQL scripts)?

Okay, this is the second request for this sample within a few days smile.gif I will try to find it (I think I've written a sample some years back) and post it.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 19 July 2005 - 11:43

The sample is now available at http://www.installsi...stBox/index.htm

DenMori

DenMori
  • Full Members
  • 38 posts

Posted 21 July 2005 - 02:34

Thanks so much for posting the sample..With a couple of tweaks here and there, I got it up and running within my setup in a few hours. biggrin.gif

Dennis