Jump to content

Recommended Posts


Posted
I want to do this silently in a CMD

I knew about the right click and install

like I said previously, more information would have helped...Or were we supposed to just keep guessing until we found out exactly what you knew and intended to do!

Firstly, you don't install a dll, as a rule you put it into its destination directory and register it.

For the installation of the inf, it has been quoted how to do this on numerous occasions throughout these forums.

As a general rule, from a command line, you will need something like this:

rundll32.exe setupapi.dll,InstallHinfSection <SectionName> 132 <drive>\<path>\<filename>.inf

where <SectionName> is usually DefaultInstall

To register a dll, you would usually use

regsvr32.exe /s <drive>\<path>\<filename>.dll

where the /s switch is required only for silently installing, and the <drive> & <path> are not required if the file to be registered is in the %SystemRoot%\system32 destination directory.

Also please make sure that you use quotes around your <drive>\<path>\<filename>.ext, if spaces are contained anywhere within them.

Posted
I want to do this silently in a CMD

For the .inf, this can also be accomplished directly from Cmdlines.txt (as tested on Windows 2000). My Cmdlines.txt looks like this:

[COMMANDS]
".\RunOnceEx.cmd"
"rundll32 setupapi,InstallHinfSection DefaultInstall 128 .\TWEAKUI.INF"
"REGEDIT /S registry.reg"

So, for Tweakui on a Win2K box, put the .inf, .cnt, .cpl, and .hlp in $OEM$ and let'er rip. I edited my .inf and removed the RunOnce reference to TWEAKUI.HLP in the [TweakUI.Add.Reg] section, but do not know if that was necessary. More references to this method can be found HERE in the "Install Option 3" section.

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