Results 1 to 2 of 2

Thread: Custom Dialog and Combo with SQL Servers popluated...

  1. #1
    chrisbond Guest

    Custom Dialog and Combo with SQL Servers popluated...

    First of all let me explain what im trying to archive then i'll list how far i've got.

    Im trying to call a custom dialog box from installshield that has a dropdown combo that is populated with the available sql servers, if its not listed it will let the user enter it. Also on the same screen it will have a sql username and password. In effect im gathering the information so I can use http://www.installsite.org/files/DatabaseFunctions.zip functions to manage and create the database.

    So far i've managed to create a custom dialog and call it from installscript code using the EzDefineDialog function, but what i'm failing to do is populate the combo remotely from the (http://www.installsite.org/files/GetSQLServer.zip which does work as i've ran it in debug mode).

    How can i populate the combo with the sql server names, in effect i've already got Get_All_SQLServer(listSQL); which is populating a LIST type with the sql servers, all i need is some sort of loop to populate the combo box.

    The problem im going to get after this, is retreiving the values when they click next....

    Kind Regards,
    Chris Bond

  2. #2
    Join Date
    Oct 2001
    Location
    Here and there
    Posts
    16,233
    Assuming the desired data is in a LIST variable, you can use CtrlSetList in the DLG_INIT section of your custom dialog code to populate a list box or combo box (no loop required); and to retrieve the user's selection, you can use CtrlGetCurSel (or CtrlGetMultCurSel if it's a multi-selection control)...
    Robert Dickau - This and That - Flexera Software

    Want help? See Windows Installer white papers, training courses, newsletters, HelpNet, forum search, Knowledge Base, ...
    Want more help?
    See our InstallTalk blog.
    Want even more help? See our relatively new Advanced Windows Installer (MSI) training course.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •