assign driver to COM ports


I'm working on a package where an driver is installed with. It is an "generic NULL modem" driver. The installation itself is no problem but the customer now demands to assign this driver to all avaiable COM ports right after installation.

The usual way to go is:
Control Panel > Phone and Modem options > Give Location Code > Select Modem Tab > Add > Select from List > Select "Generic NULL Modem" > All ports > Next > Finish

But the customer demand this action done programaticly and silent by the setup (from MSI) mostly because of an restricted environment where most user only have default user rights.

Is there any way to archive this?

I researched for the last few hours and stumbled upon DIFxApp. But the installation of my driver is no problem, it is only the configuration / assignment to COM ports.

0 Comments   [ + ] Show comments

Answers (2)

Posted by: anonymous_9363 13 years ago
Red Belt

Off the top of my head, the only way to do this would be via WMI. Even then, I'm struggling to work out how you'd do that. It may require a custom DLL. Have a Google for 'VBScript COM port' or 'WMI COM port' and see what pops up.
Posted by: Jay Am 13 years ago
Senior Yellow Belt
I've already searched for 'VBscript comport', 'WMI com port', *vbscript serial port', 'assign driver serial port' and so on ...

Seems you can only read status and attributes of com port via WMI, eventually disable an etablished com port. But there seems no way to assign an installed modem driver to avaiable com ports.

Then I tried to capture the changes made by assigning the com ports in control panel. There I got a regfile but it doesnt change anything if I merge it to the registry after cleaning the com ports.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ