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
- :
- Silent Install not installing
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
‎Jul 23, 2009
07:30 AM
Populate ListBox
Is it possible to populate a ListBox programatically with InstallScript?
What value should be passed to the ListBox property to get it populated?
Thanks.
What value should be passed to the ListBox property to get it populated?
Thanks.
(10) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 23, 2009
08:36 AM
The CtrlSetList function places the contents of a string list into the specified single- or multi-selection list box or combo box control. Any pre-existing contents are replaced with the items contained in listID. InstallShield places each element of the string list into each element of the list box or combo box control.
Syntax
CtrlSetList (szDialogName, nControlID, listID);
Parameters
CtrlSetList Parameters
Parameter
Description
szDialogName
Specifies the name of a dialog that contains the list box or combo box.
nControlID
Specifies the resource ID of the list box or combo box.
listID
Specifies the name of a string list that contains the elements to be copied into the list box or combo box control.
Syntax
CtrlSetList (szDialogName, nControlID, listID);
Parameters
CtrlSetList Parameters
Parameter
Description
szDialogName
Specifies the name of a dialog that contains the list box or combo box.
nControlID
Specifies the resource ID of the list box or combo box.
listID
Specifies the name of a string list that contains the elements to be copied into the list box or combo box control.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 23, 2009
09:08 AM
And for Basic MSI dialogs, please see the InstallShield help topic "Windows Installer API Functions Example".
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 25, 2009
10:14 AM
Thanks for your replies!
I think I've managed to get them populated by manipulating the 'ListBox' MSI table at runtime, using Installscript.
I think I've managed to get them populated by manipulating the 'ListBox' MSI table at runtime, using Installscript.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 06, 2009
09:49 PM
Hello!
How did you do it? I find it hard to populate. it doesnt work using CtrlSetList.
I was trying to populate by design time, but it doesnt work too.
How bout the parameter:
szDialogName
Specifies the name of a dialog that contains the list box or combo box.
Where can i find this name?
I am using IS 2010
How did you do it? I find it hard to populate. it doesnt work using CtrlSetList.
I was trying to populate by design time, but it doesnt work too.
How bout the parameter:
szDialogName
Specifies the name of a dialog that contains the list box or combo box.
Where can i find this name?
I am using IS 2010
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 06, 2009
10:41 PM
What kind of project? Is this a custom dialog or a standard dialog? The function is intended for a custom InstallScript dialog box, where szDialog is the string dialog nickname that you pass to EzDefineDialog, WaitOnDialog, and so on.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 07, 2009
01:21 AM
This is an installscript project
a custom dialog
the nResult here is not equal to 0.
a custom dialog
// Create language list
listLanguage = CreateLanguageList();
if (listLanguage = LIST_NULL) then
MessageBox ("Unable to create list of languages", SEVERE);
abort;
endif;
// Place the list of colors into the dialog's list box.
nResult = CtrlSetList (szDialogName, SD_DLG_SEL_LANG_LIST, listLanguage);
the nResult here is not equal to 0.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 09, 2009
06:29 PM
Does that resource ID SD_DLG_SEL_LANG_LIST definitely match up? (The comment mentions a color list and not a language list...?) For testing, can you pass the list to SdShowInfoList?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 28, 2009
01:29 AM
The comment about 'color' is a mistake. it really means 'language', but if forgot to change it.
i tried SdShowInfoList. The list works.
The problem lies in CtrlSetList i think.
The SD_DLG_SEL_LANG_LIST matches up.. This is supposed to be the resource identifier of the Listbox, right?
i tried SdShowInfoList. The list works.
The problem lies in CtrlSetList i think.
The SD_DLG_SEL_LANG_LIST matches up.. This is supposed to be the resource identifier of the Listbox, right?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 28, 2009
01:48 AM
Hi
can someone help me show how to perform silent install , im using below parameters and yet its not working
Recording
C:\qvtnet5.0\setup.exe /a /r /f1C:\Temp\Setup.iss
Install silently
start /wait C:\qvtnet5.0\setup.exe /s /a /s /sms /f1"C:\Temp\Setup.iss"
can someone help me show how to perform silent install , im using below parameters and yet its not working
Recording
C:\qvtnet5.0\setup.exe /a /r /f1C:\Temp\Setup.iss
Install silently
start /wait C:\qvtnet5.0\setup.exe /s /a /s /sms /f1"C:\Temp\Setup.iss"
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 28, 2009
03:02 AM
@mjcapco:
hi!
I think you missed to post your query in the right thread (?)
this thread is all about ListBox.
hi!
I think you missed to post your query in the right thread (?)
this thread is all about ListBox.
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)