Results 1 to 4 of 4

Thread: install a inf file out of vb

  1. #1
    Guest
    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


  2. #2
    Member
    Join Date
    Sep 2000
    Location
    The Netherlands
    Posts
    42
    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
    Greetings,

    Hajo Dijkstra


  3. #3
    Hyperactive Member
    Join Date
    May 2000
    Location
    Or
    Posts
    316
    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


  4. #4
    Guest

    Thumbs up

    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
  •  



Click Here to Expand Forum to Full Width