lucky2007 Posted September 22, 2007 Posted September 22, 2007 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
ricktendo Posted September 22, 2007 Posted September 22, 2007 (edited) Try Adanced INF way, it has more optionsrundll32.exe advpack.dll,LaunchINFSectionEx inf_filename,[section name],[cab name],<flags>[,smart reboot]INF FilenameINF 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 NameINF install section name you want to launch. If it is empty string or NULL, DefaultInstall section name will be called.Cab NameSpecify the fully qualified CAB file pathname which contains the files or INF you want to install to the user's system.FlagsFlag Meaning4 Quiet Mode, no UI8 Don't Run GrpConv16 Force Self-Updating on User's System32 Backup Data Before Install64 Rollback to Previous State128 Validate the Backup Data256 Complete Rollback to Previous State512 Force Delay of OCX RegistrationSmart RebootN No RebootA Always RebootI Reboot if Needed (default value)Example: rundll32.exe advpack.dll,LaunchINFSectionEx myinf.inf,,c:\temp\mydata.cab,36This 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,,,256This means to rollback to the state before installing myinf.inf DefaultInstall section.So to make it silent it would be:rundll32.exe advpack.dll,LaunchINFSectionEx .\<file>.inf,,,4 Edited September 22, 2007 by ricktendo64
lucky2007 Posted September 22, 2007 Author Posted September 22, 2007 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
jaclaz Posted September 22, 2007 Posted September 22, 2007 (edited) And the link here:http://www.boot-land.net/forums/Useful-inf...-inf-t1966.htmlhttp://www.boot-land.net/forums/index.php?showtopic=1966jaclaz Edited May 21, 2009 by jaclaz
ricktendo Posted September 23, 2007 Posted September 23, 2007 http://www.sokoolz.com/addons/r64/INF_DOC.ZIP
wherzdaluv Posted September 23, 2007 Posted September 23, 2007 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 Posted September 25, 2007 Posted September 25, 2007 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 Posted September 26, 2007 Author Posted September 26, 2007 Thx for the aswers and sorry for the late reply (internet problem)
seattleman1969 Posted May 21, 2009 Posted May 21, 2009 (edited) Good information but we are attempting to use this to install from command line a "special" INF for Internet Component Download Service. Does anyone have any information on how to execute one of THOSE INF files from command line successfully?Our goal is to take the payload from a cab file downloaded from an internet site and execute the .INF located within to install the application since our user base doesn't have permissions to install any software, and we do not want to change that. This will be scripted through winbatch and executed with elevated permissions through LANDesk once we get the command line figured out.Thanks! Edited May 21, 2009 by seattleman1969
Martin H Posted May 21, 2009 Posted May 21, 2009 If the INF to install has a DefaultInstall section, then it's silently installed with:rundll32 advpack.dll,LaunchINFSection <PathTo>\name.inf,,1(advpack runs the Advanced INF commands(if any), and calls setupapi for the standard INF commands)However, with many 3'rd party INFs, then a DefaultInstall section is not always used, and then you need to investigate which install-section to call instead:rundll32 advpack.dll,LaunchINFSection <PathTo>\name.inf,<InstallSection>,1
Velund Posted August 24, 2009 Posted August 24, 2009 (edited) Hi.I hope there is somebody here on this forum and reading this topic. I trying to overread the default windows driver for usb audio device. I created the the .inf file and i trying to install it using rundll32 advpack.dll ... I do it successfully and i see that OEM inf file added to windows inf directory, but when i plug in the device it still uses default driver. If i manually install my .inf from the device manager it works fine. I know that this happend because my file is without certificate, but maybe there is still a way to make my driver to become default driver for my device? If not, how can i SIGN my inf file?Thanks in advance. Edited August 24, 2009 by Velund
iamtheky Posted August 24, 2009 Posted August 24, 2009 http://social.msdn.microsoft.com/Forums/en...8c-f08ce75c7bf1good thread for swapping/editing the wdma_usb.inf file
Velund Posted August 25, 2009 Posted August 25, 2009 (edited) Yes i saw this thread before, it helped me to build my .inf file. My problem now is different. I want windows to use my .inf as default driver for my usb audio device instead of wdma_usb.inf. I can't change wdma_usb.inf it self because it's signed file and it won't work if changed... Edited August 25, 2009 by Velund
iamtheky Posted August 25, 2009 Posted August 25, 2009 its been a while since i played with this, but I remember only changing the pointer in wdma_usb from usbaudio.inf to the new .infI'll continue looking for the directions I followed for that (but I keep coming back to that same article).
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