GoFrag Posted October 6, 2003 Posted October 6, 2003 hi!I Would be install a Programm silently that have only a Inf File for install...How i do this?Thanks for reply Posts!GoFrag
DMX Posted October 6, 2003 Posted October 6, 2003 use the following command linerundll32.exe setupapi,InstallHinfSection DefaultInstall 132 inf pathif you run the installation from cmd or batch file consider addingstart /wait before the command
Numinous Posted October 7, 2003 Posted October 7, 2003 132 may reboot your machine.. use 128 to supress a reboot
DMX Posted October 7, 2003 Posted October 7, 2003 well from my personal expirience it doesn't cause a reboot but try it too just in case
Numinous Posted October 7, 2003 Posted October 7, 2003 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=132128 = silent with no reboothttp://msdn.microsoft.com/library/default....hinfsection.aspsorry for being a smarty pants .. just thought i'd mention it
DMX Posted October 7, 2003 Posted October 7, 2003 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
begey Posted October 17, 2003 Posted October 17, 2003 use the following command linerundll32.exe setupapi,InstallHinfSection DefaultInstall 132 inf pathif you run the installation from cmd or batch file consider addingstart /wait before the commandsetupapi.dllsetupapi 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...
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