Jump to content

Recommended Posts

Posted

I've been looking high and low for a solution to install the nForce4 components I need through a batch file. This the the closest I got:

%WINDIR%\system32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 0 nvsmbus.inf
%WINDIR%\system32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 0 nf4sys.inf
%WINDIR%\system32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 0 nvnetbus.inf
%WINDIR%\system32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 0 nvenetfd.inf
%WINDIR%\system32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 0 nvata.inf

For every one of these lines, though, I get an "Installation failed!" dialog box.

The final idea is to get this done through SVCPACK.INF. I'd maybe consider DOSNET.INF if required but an unattended install involving WINNT.SIF is out of the question.

But first things first: get the batch file going so Windows installs everything automatically instead of popping-up the Found New Hardware dialogs...


Posted

%SYSTEMROOT%%\system32\rundll32.exe setupapi.dll,InstallHinfSection <section> <reboot-mode> <inf-name>

If <inf-name> isn't a Windows .inf file, add 128 to the reboot mode value.

%SYSTEMROOT%%\system32\rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 128 <inf-name>

Posted (edited)

Thanks for the reply.

I changed the 0 to 128 but I'm still getting the "Installation failed" error messages.

Looking at the parameter specifications you provided, I see what's probably causing this: there is no <section> inside any of the nForce4 INFs that's called "DefaultInstall". I changed that to the name of the section that refers to the vendor IDs but that didn't help. I suppose I could try them all, one by one, but who tells me, when I find one which doesn't pop up the error message, that everything that needs to be installed will effectively be installed? Isn't there a way to figure out what Windows is doing when I install the INFs through Device Manager?

Edited by Tomcat76

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...