April 12, 200620 yr 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?
April 12, 200620 yr 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, 200620 yr by xlnt
April 13, 200620 yr ... 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...
Create an account or sign in to comment