I am trying to populate a combo box in Installshield with a list of network adapter names on the local machine. I’m trying to use a vbscript custom action which I modified a bit from here : http://community.flexerasoftware.com/showthread.php?t=188130
MsiRecord.StringData(1) = "REGION" 'The Name of the Property
I seem to be getting an error on this line, and the installation crashes. Any suggestions?
Since your talking about updating windows installer tables using VBScript custom actions this really has everything to do with Windows Installer and not much to do with InstallShield per say.
I don’t think that example posted on the forums was correct. I’d suggest reading the following page to get a better understand and take a look at the Combobox and ListBox sample projects provided.
Using Dual ListBoxes as Replacement for a Multi-Selection ListBox
Personally I suspect the problem with the sample you quoted is missing a Set statement when creating the record. As I recall, and it’s been awhile since I touched VBScript, you have to use the Set command when creating an object. But I really advise against using VBScript in Custom Actions. C/C++, InstallScript and C# ( using DTF ) are far more robust solutions.