Hello
I have got a inf file wich will install some drivers when a do a right click on it and then click on install ...
Now I want to do that out of a vb program ...
Do somebody know how I could do that ?????
JoTeBu
Printable View
Hello
I have got a inf file wich will install some drivers when a do a right click on it and then click on install ...
Now I want to do that out of a vb program ...
Do somebody know how I could do that ?????
JoTeBu
Hello,
You might give this a try:
Code:Public Sub ShellINF()
Dim INFFile As String
INFFile = "C:\Test.inf"
Shell "c:\windows\rundll.exe setupx.dll,InstallHinfSection DefaultInstall 132 " & INFFile
End Sub
This should work as well.
Just make sure you Declare the ShellExecute DLLCode:lret = ShellExecute(0&, "install", App.Path & "\setup.inf", Chr(0), Chr(0), 1)
Thank you very much.
I am new on it and that was too hard for me ...
Thanks
Andy