It will be something like the following
dim ODB: set ODB = Session.Database
dim oInstaller: set oInstaller = Session.Installer
Set view = ODB.OpenView("Select * From `ComboBox`")
view.Execute
Set mrecord = oInstaller.CreateRecord(4)
Const MSIMODIFY_INSERT_TEMPORARY = 7
dim i : i = 0
i = i + 1
With mrecord
.StringData(1) = "COMBOLIST"
.IntegerData(2) = i
.StringData(3) = "something"
.StringData(4) = "something else"
End With
view.Modify MSIMODIFY_INSERT_TEMPORARY , mrecord
For more info pls refer to
http://msdn.microsoft.com/library/en...obox_table.asp
--
Regards,
Sajan.
PS: Please don't send me direct emails, use the newsroom.
"Raghu" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> I am working on an MSI file that has dialog which contains combo box. I
need
> to populate the combobox with items based on the user system and let user
> choose one of the items. The development and target OS is win2k server
> (windows installer 2.0).
>
> The dialgo and control are linked in Control table along with set
property.
> The property and its items (that are set at design time) are listed in
> ComboBox table. But I don't know how to populate combobox with dynamic
items
> at runtime depending on the user system.
>
> Any help is appreciated.
>
> Thanks.
> Raghu/..
>
>