|
-
Sep 14th, 2000, 07:35 AM
#1
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
-
Sep 14th, 2000, 08:15 AM
#2
Member
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
-
Sep 14th, 2000, 11:48 AM
#3
Hyperactive Member
This should work as well.
Code:
lret = ShellExecute(0&, "install", App.Path & "\setup.inf", Chr(0), Chr(0), 1)
Just make sure you Declare the ShellExecute DLL
-
Sep 15th, 2000, 06:55 AM
#4
Thank you very much.
I am new on it and that was too hard for me ...
Thanks
Andy
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|