Jump to content

Recommended Posts

Posted

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

regards


Posted

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

Posted

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

Posted

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

regards

Posted

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.

Posted

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

Posted

[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)

Posted
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 :)

Posted

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

Posted

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

Posted

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

Posted

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.

Posted

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

thanks again :):

Posted

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

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