MCT Posted June 23, 2004 Posted June 23, 2004 just wonderin if anyone has any good places on how 2 make .ini files, im interested in learning, it seems hard tho regards
Alanoll Posted June 23, 2004 Posted June 23, 2004 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
MCT Posted June 23, 2004 Author Posted June 23, 2004 maybe i mean inf , but i think i mean ini lolu 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 lolthanks
MCT Posted June 23, 2004 Author Posted June 23, 2004 i think i answered my own question inf files look fairly easy , atleast for what i needregards
Alanoll Posted June 23, 2004 Posted June 23, 2004 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.
MCT Posted June 23, 2004 Author Posted June 23, 2004 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 explainthanks
Alanoll Posted June 23, 2004 Posted June 23, 2004 [DefaultInstall]AddReg = RegTweaks[RegTweaks]HKCU,"Software\Microsoft\Internet Explorer\Main","NoUpdateCheck",0x001001,0x00000001Just 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)
MCT Posted June 23, 2004 Author Posted June 23, 2004 CODE [DefaultInstall]AddReg = RegTweaks[RegTweaks]HKCU,"Software\Microsoft\Internet Explorer\Main","NoUpdateCheck",0x001001,0x00000001can 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,0x00000002EDIT: 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 weirdregards
Alanoll Posted June 23, 2004 Posted June 23, 2004 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
MCT Posted June 23, 2004 Author Posted June 23, 2004 i have another question:Pin my .inf file can i add spaces between commands?Example:[whatever]CODE HEREANOTHER CODEinstead of..codecodethanks
MCT Posted June 23, 2004 Author Posted June 23, 2004 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,4000003cHKCR,"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 BinHKCR,"CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\ShellFolder",Attributes,0x00000001,70,10,00,20HKCR,"CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\ShellFolder",CallForAttributes,0x00010001,00000040This 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
Alanoll Posted June 23, 2004 Posted June 23, 2004 yes, the line breaks are fine....HKCR,"CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\services",,,0x00000001looks wrong....you have perhaps an extra commajudging 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,4000003cHKCR,"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,00should 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,00HKCR,"CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\services",SuppressionPolicy,0x00010001,0x4000003cHKCR,"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,00HKLM,"PATH\TO\KEY",,0x00010001,0x00000001create a DEFAULT value of 0x00000001 as a DWORD. It would be like@=dword:0x00000001Also, 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.
MCT Posted June 23, 2004 Author Posted June 23, 2004 ya, i have it as 1 long string, its just the way the board displays itthanks again :
XtremeMaC Posted June 23, 2004 Posted June 23, 2004 look at gosh's website for more info on the inf's
MCT Posted June 23, 2004 Author Posted June 23, 2004 ya, i have im slowly gettin threw it,now that im startin 2 slowly catch on, inf's are Wayyyyyy better then .reg files i can make variables : lolregards
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now