import values in compo or list box - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

cvas@otenet.gr
Posts: 3
Joined: Wed Sep 16, 2009 12:17 pm

import values in compo or list box

in install of our app its needed to know the list of printer "names" of a computer that the installer run and make a registry key entry depend the installed printer "name" that the computer has, it’s this possible ?
i can export via script the names to a txt file ,can i import to as selection to alist or compo box?
So the user to can select the printer they want and i use the name for the registry entry via a custom action
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: import values in compo or list box

Hello,

I am afraid this is not directly supported by Windows Installer. You can however use a vbscript to retrieve a list of printers. The List Printers thread discusses such a script. You can then integrate the result back in Windows Installer through Session.Property("PROPERTYNAME").
For information on how to populate a list box/combo box you can check our comprehensive guide on Working with Windows Installer ComboBox and ListBox controls.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”