Click to See Complete Forum and Search --> : Modify registry field with rundll32.exe


kpavel
June 29th, 2006, 05:37 AM
Hello all.
Have some strange problem with win2k registry.
Have to change value of some field in registry with a script.
There i use:
rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 "c:\myFile.inf"
And it doesnt work. I get the "installation failed" pop up window.
When i`m trying to install myFile.inf with "mouse right click->install" it change appropriate registry fields with no problem...

Can anybody help me please?
Thanks in advance.

PeejAvery
June 29th, 2006, 09:30 AM
Please do not double post. The moderators will delete your other post identical to this one. Only reply to this...

rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 "c:\myFile.inf"
Two things you might want to try. setupapi is not defined. Is it a DLL? You must add the extension. Also, you need to drop the quotes around the path to the INF file.