Jump to content

Recommended Posts

Posted

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.Tour
AddReg = AddReg.SecretLogging

[AddReg.Tour]
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Tour",RunCount,0x00010001,0

[AddReg.SecretLogging]
HKLM,"SOFTWARE\Microsoft\WBEM\CIMOM",EnableEvents,,0
HKLM,"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.inf

But I get an error saying that the installation failed.

Can you say me how to do the whiole thing the right way?

/PITU

btw: 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?


Posted (edited)

Try using one AddReg like this:

[DefaultInstall]
AddReg = AddReg.Tour,AddReg.SecretLogging

and 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 by xlnt
Posted

... and also use full qualified path to the .inf file :

rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 128 X:\Path_to\customize.inf

and remove that dummy [strings] section... :rolleyes:

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...