This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Need some help with dialog box (combo box)
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 06, 2009
06:43 AM
Need some help with dialog box (combo box)
I'm creating a MSI installation for a client.
The Client wants to install a website/intranetsite and create a virtualdrive and pool on an existing website. Now the client mentioned in it's documentation that when the installation starts a dialog box must be opened that shows the
websites that are installed on the server (where the installation is started). (IIS websites from probably the MetaBase.xml file).
Perhaps I can make a search action in the xml file and get the sites that are installed. But now I got a problem... how do I list these servers in a dialog combo box?
I've created a combo box with a property and i think this property need to be filled by the search action. But when I fill this property by setting a value (text) I only see 1 string in the combo. How do I seperate the values in the combo box?
The Client wants to install a website/intranetsite and create a virtualdrive and pool on an existing website. Now the client mentioned in it's documentation that when the installation starts a dialog box must be opened that shows the
websites that are installed on the server (where the installation is started). (IIS websites from probably the MetaBase.xml file).
Perhaps I can make a search action in the xml file and get the sites that are installed. But now I got a problem... how do I list these servers in a dialog combo box?
I've created a combo box with a property and i think this property need to be filled by the search action. But when I fill this property by setting a value (text) I only see 1 string in the combo. How do I seperate the values in the combo box?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 21, 2009
05:49 AM
hi,
After getting the list of sites, place them in a text file. And read them from text file to your combo box. Please see below example.
szFile = "C:\\Site_List.txt"; //text file which contains the list of sites
listId = ListCreate(STRINGLIST); //create a list in your script
ListReadFromFile(listId, szFile); //reads from text file into your list
CtrlSetList("DialogName", listbox, listId); //sets the values into your combo box where listbox is the id of combo box
Note: this is for installscript project with custom dialog.
Hope this helps!
Thanks,
Gayathri
After getting the list of sites, place them in a text file. And read them from text file to your combo box. Please see below example.
szFile = "C:\\Site_List.txt"; //text file which contains the list of sites
listId = ListCreate(STRINGLIST); //create a list in your script
ListReadFromFile(listId, szFile); //reads from text file into your list
CtrlSetList("DialogName", listbox, listId); //sets the values into your combo box where listbox is the id of combo box
Note: this is for installscript project with custom dialog.
Hope this helps!
Thanks,
Gayathri