PITU Posted April 12, 2006 Share Posted April 12, 2006 Hello!I want to install my tweaks using an inf-file.For testing supposes I created a sample file:[Version]Signature = "$Windows NT$"[DefaultInstall]AddReg = AddReg.TourAddReg = AddReg.SecretLogging[AddReg.Tour]HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Tour",RunCount,0x00010001,0[AddReg.SecretLogging]HKLM,"SOFTWARE\Microsoft\WBEM\CIMOM",EnableEvents,,0HKLM,"SOFTWARE\Microsoft\WBEM\CIMOM",Logging,,0[Strings]TESTSTRING="dummy dummy dummy dummy dummy dummy dummy dummy dummy"I tested to use this command to instal my inf (for testing on an already installed winXP):rundll32.exe setupapi,InstallHinfSection DefaultInstall 128 customize.infBut I get an error saying that the installation failed.Can you say me how to do the whiole thing the right way?/PITUbtw: Or is there a better way to install the customize.inf? Is there an ability to just link it in for example the dosnet.inf so it is called during the setup? Link to comment Share on other sites More sharing options...
xlnt Posted April 12, 2006 Share Posted April 12, 2006 (edited) Try using one AddReg like this:[DefaultInstall]AddReg = AddReg.Tour,AddReg.SecretLoggingand maybe use quotes in your lines:HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Tour","RunCount",0x00010001,"0"Other than that it look ok to me.EDIT: Have a look at this site, it has a lot of good information and samples about inf-files: http://gosh.msfnhosting.com/ Edited April 12, 2006 by xlnt Link to comment Share on other sites More sharing options...
Delprat Posted April 13, 2006 Share Posted April 13, 2006 ... and also use full qualified path to the .inf file :rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 128 X:\Path_to\customize.infand remove that dummy [strings] section... Link to comment Share on other sites More sharing options...
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