Jump to content

Installing .inf using a batch-file


Recommended Posts


I heard it should be possible using this command in a batch file:

C:\windows\System32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 d:\$oem$\$1\drivers\000\xxx.inf

However, there seems be something wrong with it but I don't know what. Anyone else?

Link to comment
Share on other sites

1. There may not be a DefaultInstall section in the INF, it fails.

2. If it does anything, it will most likely only copy over the files to system32 but not actually initialize the hardware.

3. If it does initialize the hardware, it may initialize every instance of it in the INF as it doesn't know what to do.

Link to comment
Share on other sites

So Alanol, do you have an alternative suggestion for me.

My main problem was that I couldn't get my hardware installed by the winnt.sif file.

So I thought...ok, after first login I'll have the unattend call a batch-file and in the batch-file would have to trigger the installation.

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