Jump to content

Programm inf Install


Recommended Posts


use the following command line

rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 inf path

if you run the installation from cmd or batch file consider adding

start /wait before the command

Link to comment
Share on other sites

You should use a combination of the following values for mode. You must include 128 to set the default path of the installation to the location of the INF, otherwise a system-provided INF is assumed. Add values to specify rebooting. Note that only the values 128 or 132 are recommended, other values may cause the computer to reboot unnecessarily or not reboot when required.

0 System provided INF.

128 Set the default path of the installation to the location of the INF. This is the typical setting.

+0 Never reboot the computer.

+1 Reboot the computer in all cases.

+2 Always ask the users if they want to reboot.

+3 Reboot the computer if necessary without asking user for permission.

+4 If a reboot of the computer is necessary, ask the user for permission before rebooting.

128+4=132

128 = silent with no reboot

http://msdn.microsoft.com/library/default....hinfsection.asp

sorry for being a smarty pants .. just thought i'd mention it :)

Link to comment
Share on other sites

damm you're good thanks for the info.

i'm just installing a couple of audio and video codecs with this method and they probably don't require a restart so that's why i was lucky i'll change it 128 right away

Link to comment
Share on other sites

  • 2 weeks later...
use the following command line

rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 inf path

if you run the installation from cmd or batch file consider adding

start /wait before the command

setupapi.dll

setupapi alone is no good.

luckily there was another post by Numinous with the correct syntax so I could figure it out.

I suppose it would have been obvious to any advanced user but I was going crazy...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...