MSFN Forum: Places 2 Learn INI - MSFN Forum

Jump to content



  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Places 2 Learn INI Rate Topic: -----

#1 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 23 June 2004 - 10:55 AM

just wonderin if anyone has any good places on how 2 make .ini files, im interested in learning, it seems hard tho :)

regards


#2 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 23 June 2004 - 10:57 AM

what kind of INI files?

it's basically just
[KEY]
Value=

and that's all there is to an INI. Now do you mean INF? If so, Microsoft has some EXCELLENT documentation on the subject. It's in their DDK section though

#3 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 23 June 2004 - 10:59 AM

maybe i mean inf , but i think i mean ini lol

u be the judge.. i wanna add keys 2 it (reg keys) & i wanna be able 2 install programs and stuff, just for somethin 2 learn basically lol

thanks :)

#4 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 23 June 2004 - 11:12 AM

i think i answered my own question :) inf files look fairly easy , atleast for what i need

regards

#5 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 23 June 2004 - 12:14 PM

INI files are usually just used to declare variables and what not.

INF files are usually considered installation file. They're like batch files, but are run under a different context.

#6 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 23 June 2004 - 12:14 PM

i have a question..

ive been learning the inf files, adding my .reg tweaks 2 them, in my .reg file i want 2 replace this

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"NoUpdateCheck"=dword:00000001
"Disable Script Debugger"="yes"
"Start Page"="http://google.ca"
"First Home Page"="http://google.ca"


with the inf values, is there a way 2 do that like i have above, example, add 1 "main" key, and a bunch of other "sub keys" so im not having 10 lines of the same thing? this is kinda hard 2 explain

thanks

#7 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 23 June 2004 - 01:24 PM

[DefaultInstall]
AddReg = RegTweaks

[RegTweaks]
HKCU,"Software\Microsoft\Internet Explorer\Main","NoUpdateCheck",0x001001,0x00000001


Just di d that rom memory. What might not work is the 0x0001001 and that's just because it might be the wrong value (i forget what is dword)

#8 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 23 June 2004 - 01:50 PM

Quote

CODE 

[DefaultInstall]AddReg = RegTweaks

[RegTweaks]
HKCU,"Software\Microsoft\Internet Explorer\Main","NoUpdateCheck",0x001001,0x00000001


can u explian that a bit? im still new 2 this :rolleyes:

EDIT: replacing dword with a number? how come :D

wouldnt this work?
HKLM,"SYSTEM\CurrentControlSet\Services\AudioSrv",start,REG_DWORD,0x00000002


EDIT: disregard what i said, ive been browsing a bit more & u were right alanoll :D
<ponders why he cant use reg_dword tho>
inf's are weird

regards :)

#9 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 23 June 2004 - 02:11 PM

you could, if you declare it in the STRINGS section of the INF.

also keep in mind, if DWORD is equal to 0x00010001, you could short hand it to 0x10001 :) and for strings, it's just ,, or ,0, or ,0x00000000

#10 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 23 June 2004 - 02:31 PM

i have another question:P

in my .inf file can i add spaces between commands?

Example:

[whatever]
CODE HERE

ANOTHER CODE

instead of..

code
code


thanks :)

#11 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 23 June 2004 - 02:47 PM

can u also tell me if this'll work

;Add "Services" to the right-click menu of "My Computer" 
HKCR,"CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\services",,,0x00000001,53,00,65,00,72,00,76,00,69,00,63,00,65,00,73,00,00,00,SuppressionPolicy,4000003c
HKCR,"CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\services\command",0x00000001,25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,00,79,00,73, 00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,6d,00,63,00,2e,00,65,00,78,00, 65,00,20,00,2f,00,73,00,20,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52, 00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00, 32,00,5c,00,73,00,65,00,72,00,76,00,69,00,63,00,65,00,73,00,2e,00,6d,00,73, 00,63,00,20,00,2f,00,73,00,00,00

;Allow renaming and removing of Recycle Bin
HKCR,"CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\ShellFolder",Attributes,0x00000001,70,10,00,20
HKCR,"CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\ShellFolder",CallForAttributes,0x00010001,00000040

This was my Original .reg file (which works)

;Add "Services" to the right-click menu of "My Computer" 
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\services] 
@=hex(2):53,00,65,00,72,00,76,00,69,00,63,00,65,00,73,00,00,00 
"SuppressionPolicy"=dword:4000003c 
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\services\command] 
@=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,00,79,00,73, 00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,6d,00,63,00,2e,00,65,00,78,00, 65,00,20,00,2f,00,73,00,20,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52, 00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00, 32,00,5c,00,73,00,65,00,72,00,76,00,69,00,63,00,65,00,73,00,2e,00,6d,00,73, 00,63,00,20,00,2f,00,73,00,00,00

;Allow renaming and removing of Recycle Bin
[HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\ShellFolder]
"Attributes"=hex:70,10,00,20
"CallForAttributes"=dword:00000040


#12 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 23 June 2004 - 03:37 PM

yes, the line breaks are fine....

HKCR,"CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\services",,,0x00000001

looks wrong....
you have perhaps an extra comma

judging from your original reg file....

HKCR,"CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\services",,,0x00000001,53,00,65,00,72,00,76,00,69,00,63,00,65,00,73,00,00,00,SuppressionPolicy,4000003c
HKCR,"CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\services\command",0x00000001,25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,
6d,00,33,00,32,00,5c,00,6d,00,6d,00,63,00,2e,00,65,00,78,00,65,00,20,00,2f,00,73,00,20,00,25,00,53,0
0,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d
,00,33,00,32,00,5c,00,73,00,65,00,72,00,76,00,69,00,63,00,65,00,73,00,2e,00,6d,00,73, 00,63,00,20,00,2f,00,73,00,00,00


should probally be
HKCR,"CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\services",,0x00000001,53,00,65,00,72,00,76,00,69,00,63,00,65,00,73,00,00,00
HKCR,"CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\services",SuppressionPolicy,0x00010001,0x4000003c
HKCR,"CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\services\command",,0x00000001,25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00
,6d,00,33,00,32,00,5c,00,6d,00,6d,00,63,00,2e,00,65,00,78,00,65,00,20,00,2f,00,73,00,20,00,25,00,53,
00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6
d,00,33,00,32,00,5c,00,73,00,65,00,72,00,76,00,69,00,63,00,65,00,73,00,2e,00,6d,00,73, 00,63,00,20,00,2f,00,73,00,00,00


HKLM,"PATH\TO\KEY",,0x00010001,0x00000001

create a DEFAULT value of 0x00000001 as a DWORD. It would be like
@=dword:0x00000001

Also, those seperated lines of numbers are not the same in a INF file. IT'S ONELONG STRING. It may take a couple of lines, but there are no line breaks.

#13 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 23 June 2004 - 03:42 PM

ya, i have it as 1 long string, its just the way the board displays it

thanks again :):

#14 User is offline   XtremeMaC 

  • MSFN SuperB
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5,070
  • Joined: 13-October 03

Posted 23 June 2004 - 03:57 PM

look at gosh's website for more info on the inf's

#15 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 23 June 2004 - 04:08 PM

ya, i have :rolleyes: im slowly gettin threw it,

now that im startin 2 slowly catch on, inf's are Wayyyyyy better then .reg files :D i can make variables :): lol

regards

#16 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 23 June 2004 - 04:18 PM

how do i set the default value to "nothing"

just ,,%dword%,""

dword is a variable im using 2 replace the dword numbers (0x00010001)

thanks :)

#17 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 23 June 2004 - 06:27 PM

alrighty, i think ive done it ... ive transfered all my .reg files to .INF

can someone look over my file plz, im expecting 2 have a couple minor mistakes, since its my first time...

EDIT: i tried 2 apply the tweak on my vmware install & i got a bsod lol, can anyone tell me whats wrong with the tweak?
regards

Attached File(s)



#18 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 23 June 2004 - 10:56 PM

wow.....
that's alot of tweaks....

what I suggest is to break it down into sections. comment out line by line, which is easier in INFs are you can comment one line and a whole chunck is out of the process. Also, the AddReg should be:

AddReg = Section1, Section2, Section3, Section4 :)

#19 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 24 June 2004 - 03:42 PM

so, based upon what i have...

instead of

AddReg=performance
AddReg=whatever

its

Addreg = performance,whatever,whatever2........ ?

thanks :)

#20 User is offline   gosh 

  • gosh 2.0
  • Group: Patrons
  • Posts: 2,347
  • Joined: 03-October 03
  • OS:none specified
  • Country: Country Flag

Posted 24 June 2004 - 06:17 PM

Overall it looks fine, but i would recommend testing each section one by one to make sure the right registry tweaks are added.

-gosh

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • 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