MSFN Forum: Install INF during setup (problem) - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Install INF during setup (problem) Rate Topic: -----

#1 User is offline   PITU 

  • Newbie
  • Group: Members
  • Posts: 41
  • Joined: 13-October 05

Posted 12 April 2006 - 11:48 AM

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?


#2 User is offline   xlnt 

  • Newbie
  • Group: Members
  • Posts: 24
  • Joined: 21-April 05

Posted 12 April 2006 - 04:57 PM

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/

This post has been edited by xlnt: 12 April 2006 - 05:00 PM


#3 User is offline   Delprat 

  • Poll: Why are you reading this ?
  • PipPipPip
  • Group: Members
  • Posts: 481
  • Joined: 18-May 05

Posted 13 April 2006 - 06:36 AM

... 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:

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy