View Full Version : programmatically install a modem (W2K)
cschyma
10-15-2003, 04:30 AM
Hi!
I´m trying to install a modem by adding keys to the registry, which I found by comparing registry versions with and without a modem installation.
But it seems that even a Admin is not allowed to add a key to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum.
Can anyone help me?
Perhaps someone knows how to do that in a nicer way.
regards
Christian Schyma
BertImmenschuh
10-15-2003, 06:21 AM
It's my understanding that modems can't be installed in that manner, have to use the installation routine on the CD that comes with the modem, has to do with reading the modem and setting parameters. In other words, there's much more to installing a modem than plugging it in and making registry changes.
Good judgement comes from experience, and experience comes from bad judgement
Xavier_Ao
10-15-2003, 07:03 AM
Exactly.
The modem requires the driver files to operate as well, and the registry settings (and system) depend on those drivers.
Now if correct driver files are already in place then maybe you could do that...
One may not necessarily need to run the install program, you could use Add Hardware, and browse for the .inf file as well.
Always glad to help!
Josh /images/forums/icons/smile.gif
You know why they called it <font color=blue>Windows</font color=blue>?
Because as soon as it opens, all the bugs get in.
cschyma
10-15-2003, 11:01 PM
Thanks for your answers.
I´m writing a install program, so I don´t want the user to do the Add Hardware manually.
The original driver is a .inf-file only, that has to be imported by using Add Hardware. That exactly was what I did to get a new registry to compare with (to get the changes made).
My problem now is, that I can´t reimport the registry changes that Windows did when using Add Hardware. It seems that I don´t have rights on that key, even as Administrator.
I´m not familiar with automatic driver installations, perhaps there are nicer solutions to do that.
Another solution would be using a script that imitates the key shortcuts used by installing manually.
regards
Christian
Powered by vBulletin™ Version 4.1.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.