johnbreton Posted March 15, 2005 Posted March 15, 2005 Hi Everyone,I have a INF and a DLL that I need to install.I have no idea on how to do this???Anyone has an idea??ThanksJohn
johnbreton Posted March 15, 2005 Author Posted March 15, 2005 I want to do this silently in a CMDI knew about the right click and install B)
Yzöwl Posted March 15, 2005 Posted March 15, 2005 I want to do this silently in a CMDI 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>.infwhere <SectionName> is usually DefaultInstallTo register a dll, you would usually useregsvr32.exe /s <drive>\<path>\<filename>.dllwhere 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.
blinkdt Posted March 16, 2005 Posted March 16, 2005 I want to do this silently in a CMDFor 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now