regards
Places 2 Learn INI
#1
Posted 23 June 2004 - 10:55 AM
regards
#2
Posted 23 June 2004 - 10:57 AM
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
Posted 23 June 2004 - 10:59 AM
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
Posted 23 June 2004 - 11:12 AM
regards
#5
Posted 23 June 2004 - 12:14 PM
INF files are usually considered installation file. They're like batch files, but are run under a different context.
#6
Posted 23 June 2004 - 12:14 PM
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
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
Posted 23 June 2004 - 01:50 PM
Quote
[DefaultInstall]AddReg = RegTweaks
[RegTweaks]
HKCU,"Software\Microsoft\Internet Explorer\Main","NoUpdateCheck",0x001001,0x00000001
can u explian that a bit? im still new 2 this
EDIT: replacing dword with a number? how come
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
<ponders why he cant use reg_dword tho>
inf's are weird
regards
#9
Posted 23 June 2004 - 02:11 PM
also keep in mind, if DWORD is equal to 0x00010001, you could short hand it to 0x10001
#10
Posted 23 June 2004 - 02:31 PM
in my .inf file can i add spaces between commands?
Example:
[whatever]
CODE HERE
ANOTHER CODE
instead of..
code
code
thanks
#11
Posted 23 June 2004 - 02:47 PM
;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
Posted 23 June 2004 - 03:37 PM
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
Posted 23 June 2004 - 03:42 PM
thanks again
#15
Posted 23 June 2004 - 04:08 PM
now that im startin 2 slowly catch on, inf's are Wayyyyyy better then .reg files
regards
#16
Posted 23 June 2004 - 04:18 PM
just ,,%dword%,""
dword is a variable im using 2 replace the dword numbers (0x00010001)
thanks
#17
Posted 23 June 2004 - 06:27 PM
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)
-
tweaks.inf (25.46K)
Number of downloads: 15
#18
Posted 23 June 2004 - 10:56 PM
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
Posted 24 June 2004 - 03:42 PM
instead of
AddReg=performance
AddReg=whatever
its
Addreg = performance,whatever,whatever2........ ?
thanks
#20
Posted 24 June 2004 - 06:17 PM
-gosh



Help


Back to top









