Help - Search - Members - Calendar
Full Version: How can I install a .inf file from the command line?
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   
Google Internet Forums Unattended CD/DVD Guide
lucky2007
wel I know this one works:

rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 .\<file>.inf

but I can stil see files being copied, so I was wondering if anyone can tell me how to hide it, if it is posible.

thx in advance smile.gif
ricktendo64
Try Adanced INF way, it has more options
QUOTE
rundll32.exe advpack.dll,LaunchINFSectionEx inf_filename,[section name],[cab name],<flags>[,smart reboot]

QUOTE
INF Filename
INF filename you want to launch. If the given name is not full pathname, advpack.dll will extract the INF from the given CAB file.


Section Name
INF install section name you want to launch. If it is empty string or NULL, DefaultInstall section name will be called.


Cab Name
Specify the fully qualified CAB file pathname which contains the files or INF you want to install to the user's system.


Flags
Flag Meaning
4 Quiet Mode, no UI
8 Don't Run GrpConv
16 Force Self-Updating on User's System
32 Backup Data Before Install
64 Rollback to Previous State
128 Validate the Backup Data
256 Complete Rollback to Previous State
512 Force Delay of OCX Registration


Smart Reboot
N No Reboot
A Always Reboot
I Reboot if Needed (default value)


Example:
rundll32.exe advpack.dll,LaunchINFSectionEx myinf.inf,,c:\temp\mydata.cab,36

This means to extract myinf.inf file from c:\temp\mydata.cab file and launch myinf.inf with DefaultInstall section in Quiet|Backup install mode, reboot if needed.

rundll32.exe advpack.dll,LaunchINFSectionEx c:\windows\inf\myinf.inf,,,256

This means to rollback to the state before installing myinf.inf DefaultInstall section.

So to make it silent it would be:
CODE
rundll32.exe advpack.dll,LaunchINFSectionEx .\<file>.inf,,,4
lucky2007
thx,

do you perhaps know where to find some more info about Adanced INF(want to learn a bit more about what it can do and how it works)?
if I google it it only shows up people with errors rolleyes.gif
Inferi0r
Check Gosh' site.
jaclaz
And the link here:
http://www.boot-land.net/forums/Useful-inf...-inf-t1966.html

jaclaz
ricktendo64
http://www.sokoolz.com/addons/r64/INF_DOC.ZIP
wherzdaluv
not sure from command line, but in windows just right click on it and instal. only thing i could think of is figure out the hex for right click and then figure out instal code.
Arie
QUOTE (wherzdaluv @ Sep 23 2007, 08:09 PM) *
not sure from command line, but in windows just right click on it and instal. only thing i could think of is figure out the hex for right click and then figure out instal code.

The answer is already given, read up.
lucky2007
Thx for the aswers thumbup.gif

and sorry for the late reply (internet problem) mad.gif
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.