Jump to content











Photo
- - - - -

HIVEFIX.INF


  • Please log in to reply
2 replies to this topic

#1 wendy

wendy

    Frequent Member

  • Lady
  • 290 posts
  • Location:one mile from the QR main line
  • Interests:Operating systems, Weights and Measures, Geometry
  •  
    Australia

Posted 07 August 2009 - 09:37 AM

I decided to make a kind of universal HIVE*.INF for 2K/XP/2K3 installs. It has some interesting things, like changing the default user directory to something like vista.

It's done as a batch file, where lines beginning with a numeral are only included if the numeral is activated.

You can use this to print only lines with keys starting with a digit, the digit is dropped on printing. So NTVER.REX 124 will print all unnumbered lines, and lines beginning with the characters $, 1, 2, 4, from the second character onwards.

[codebox]/* NTVER.REX */ parse arg infile vers if vers = '' then call ttyhelp known = '$0123456789'; vers = '$'vers call stream infile, 'c', 'open read' do while lines(infile) incard = linein(infile) if left(incard, 1) = '!' then leave end parse var incard 1 . 2 outfile . call stream outfile, 'c', 'open write replace' say 'writing' outfile do while lines(infile) incard = linein(infile) if pos(left(incard,1),known) > 0 then call chkline else call lineout outfile, incard end call stream outfile, 'c', 'close' call stream infile, 'c', 'close' exit chkline: parse var incard 1 cx 2 incard call charout, cx if pos(cx, vers) > 0 then call lineout outfile, incard return ttyhelp: say 'ntver is used to modify files, based on what starts the line' say '' say ' $ line always printed (escape character)' say ' 1 Win2k' say ' 2 WinXP' exit; return[/codebox] This is the standard hivefix.cmd. We use 4NT's EXTPROC here, the second line is invoked by cmd.exe, should it run it, to run it in regina rexx. [codebox]extproc ntver.rex regina ntver.rex hivefix.cmd goto :eof !hivefix.inf [Version] Signature = "$Windows NT$" 1; Win2K 2; WinXP 3; Win2K3 8; Active beta 0; non-active stuff 1DriverVer=11/14/1999,5.00.2183.1 2DriverVer=07/01/2001,5.1.2600.2180 [AddReg] ; homegrown ; flags: see 'windows registry guide', p276 HKCU,"Console","InsertMode",0x00010001,1 HKCU,"Console","QuickEdit", 0x00010001,0 0HKLM,"Software\Microsoft\Command Processor","CompletionChar",0x00010001,9 HKCU,"Software\Microsoft\Command Processor","CompletionChar",0x00010001,9 0HKLM,"Software\Microsoft\Command Processor","PathCompletionChar",0x00010001,9 HKCU,"Software\Microsoft\Command Processor","PathCompletionChar",0x00010001,9 0HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","ParseAutoexec",0x00000000,"0" HKCU,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","ParseAutoexec",0x00000000,"0" 9; Desktop Places 9HKCR,"CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}","LocalizedString",0x00020000,"%U_DESK_MYCOMP%" 9HKCR,"CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}","InfoTip",0x00020000,"%U_DESK_MYCOMP_TIP%" 9HKCR,"CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}","LocalizedString",0x00020000,"%U_DESK_MYDOCS%" 9HKCR,"CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}","InfoTip",0x00020000,"%U_DESK_MYDOCS_TIP%" 9HKCR,"CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D}","LocalizedString",0x00020000,"%U_DESK_NETWK%" 9HKCR,"CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D}","InfoTip",0x00020000,"%U_DESK_NETWK_TIP%" 9HKCR,"CLSID\{871C5380-42A0-1069-A2EA-08002B30309D}","LocalizedString",0x00020000,"%U_DESK_MSIE%" 9HKCR,"CLSID\{871C5380-42A0-1069-A2EA-08002B30309D}","InfoTip",0x00020000,"%U_DESK_MSIE_TIP%" 9HKCR,"CLSID\{645FF040-5081-101B-9F08-00AA002F954E}","LocalizedString",0x00020000,"%U_DESK_TRASH%" 9HKCR,"CLSID\{645FF040-5081-101B-9F08-00AA002F954E}","InfoTip",0x00020000,"%U_DESK_TRASH_TIP%" 9 9 ; Control Panel 1; TweakUI 1.33 1HKLM,"Software\Microsoft\Windows\CurrentVersion\Run",,,"RUNDLL32.EXE TWEAKUI.CPL,TweakMeUp" 2; Add TweakUI to Control Panel (Appearance and Themes) 2; need to add an icon-pointer here. Windows is not that smart! 2HKCR,"CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}","",0x00020000,"%CPL_TWEAKUI%" 2HKCR,"CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}\DefaultIcon","",0x00020000,"%systemroot%\system32\Tweakui.exe,0" 2HKCR,"CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}\Shell\Open\command","",,"TweakUI.exe" 2HKCR,"CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}\ShellFolder","Attributes",0x00010001,48 2HKCR,"CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}","{305CA226-D286-468e-B848-2B2E8E697B74} 2",0x00010001,1 2HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}","",,"Add Tweakui to Control Panel" 2; Add directx to control panel (Sounds, Speech and Audio Devices) 2HKLM,"Software\Microsoft\Windows\CurrentVersion\Control Panel\Extended Properties\{305CA226-D286-468e-B848-2B2E8E697B74} 2",\ 2 "%Systemroot%\system32\directx.cpl",0x00010001,4 2 2; Add old users to control panel 2HKCR,"CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}","",,"%CPL_USERS%" 2HKCR,"CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}","InfoTip",,"The Windows 2000 style User Accounts" 2HKCR,"CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\DefaultIcon","",0x00020002,"%SystemRoot%\System32\netplwiz.dll,0" 2HKCR,"CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}\Shell\Open\command",,,"Control.exe Userpasswords2" 2HKCR,"CLSID\{98641F47-8C25-4936-BEE4-C2CE1298969D}","{305CA226-D286-468e-B848-2B2E8E697B74} 2",0x00010001,5 2HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{98641F47-8C25-4936-BEE4-C2CE1298969D}","",,"Add Tweakui to Control Panel" 1; runext.dll 1HKCR,CLSID\{2AD91900-A873-11cf-9A80-00AA00C16E65},,,"Run shell extension" 1HKCR,CLSID\{2AD91900-A873-11cf-9A80-00AA00C16E65}\InProcServer32,,,"runext.dll" 1HKCR,CLSID\{2AD91900-A873-11cf-9A80-00AA00C16E65}\InProcServer32,"ThreadingModel",,"Apartment" 1HKCR,*\shellex\ContextMenuHandlers,,,"RunExt" 1HKCR,*\shellex\ContextMenuHandlers\RunExt,,,"{2AD91900-A873-11cf-9A80-00AA00C16E65}" 1HKCR,Folder\shellex\ContextMenuHandlers,,,"RunExt" 1HKCR,Folder\shellex\ContextMenuHandlers\RunExt,,,"{2AD91900-A873-11cf-9A80-00AA00C16E65}" 1 ; Random replacements for the shell. ; hivesys.inf HKLM,"SYSTEM\CurrentControlSet\Control\Nls\Language","InstallLanguage",,"%INSTALL_LANGUAGE%" HKLM,"SYSTEM\CurrentControlSet\Control\Nls\Locale","(Default)",,%INSTALL_LOCALE% ; hivecls.inf HKCR,"CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D}","",0x00000000,"%NETWORK_NEIGHBORHOOD%" HKCR,"CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}","",0x00000002,"%MY_COMPUTER%" ; hivesft.inf HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList","ProfilesDirectory",0x00020002,"%DEFAULT_PROFILES_DIR%" HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList","AllUsersProfile",0x00000000,"%ALL_USERS%" HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList","DefaultUserProfile",0x00000000,"%DEFAULT_USER%" HKLM,"Software\Clients\StartMenuInternet\IEXPLORE.EXE",,,"%DESC_IE%" HKLM,"Software\Clients\StartMenuInternet\IEXPLORE.EXE","LocalizedString",0x00020000,"@%programfiles%\%LMSIE4%\iexplore.exe,-702" HKLM,"Software\Clients\StartMenuInternet\IEXPLORE.EXE\DefaultIcon",,0x00020000,"%programfiles%\%LMSIE4%\iexplore.exe,0" HKLM,"Software\Clients\StartMenuInternet\IEXPLORE.EXE\shell\open\command",,0x00020000,"""%programfiles%\%LMSIE4%\iexplore.exe""" HKLM,"Software\Clients\StartMenuInternet\IEXPLORE.EXE\InstallInfo","ReinstallCommand",0x00020000,"%systemroot%\system32\shmgrate.exe OCInstallReinstallIE" HKLM,"Software\Clients\StartMenuInternet\IEXPLORE.EXE\InstallInfo","HideIconsCommand",0x00020000,"%systemroot%\system32\shmgrate.exe OCInstallHideIE" HKLM,"Software\Clients\StartMenuInternet\IEXPLORE.EXE\InstallInfo","ShowIconsCommand",0x00020000,"%systemroot%\system32\shmgrate.exe OCInstallShowIE" ; hivedef.inf HKCU,"Control Panel\Screen Saver.Marquee","Text",0x00000002,"%SCREEN_SAVER_MARQUEE_TEXT%" HKCU,"Control Panel\Screen Saver.Marquee","Font",0x00000000,"%SCREEN_SAVER_MARQUEE_FONT%" HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","AppData",0x00020000,"%U_SHELL_FOLDERS_APPDATA%" 2HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","CD Burning",0x00020000,"%U_SHELL_FOLDERS_CDBURN%" HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Desktop",0x00020000,"%U_SHELL_FOLDERS_DESKTOP%" HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Favorites",0x00020000,"%U_SHELL_FOLDERS_FAVORITES%" HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","NetHood",0x00020000,"%U_SHELL_FOLDERS_NETHOOD%" HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Personal",0x00020000,"%U_SHELL_FOLDERS_PERSONAL%" HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","PrintHood",0x00020000,"%U_SHELL_FOLDERS_PRINTHOOD%" HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Programs",0x00020000,"%U_SHELL_FOLDERS_PROGRAMS%" HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Recent",0x00020000,"%U_SHELL_FOLDERS_RECENT%" HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","SendTo",0x00020000,"%U_SHELL_FOLDERS_SENDTO%" HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Start Menu",0x00020000,"%U_SHELL_FOLDERS_START_MENU%" HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Startup",0x00020000,"%U_SHELL_FOLDERS_STARTUP%" HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Templates",0x00020000,"%U_SHELL_FOLDERS_TEMPLATES%" HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Cookies",0x00020000,"%U_SHELL_FOLDERS_COOKIES%" HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","My Pictures",0x00020000,"%U_SHELL_FOLDERS_MYPICTURES%" HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","My Music",0x00020000,"%U_SHELL_FOLDERS_MYMUSIC%" 2HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","My Video",0x00020000,"%U_SHELL_FOLDERS_MYVIDEO%" HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Local Settings",0x00020000,"%U_SHELL_FOLDERS_LOCAL_SETTINGS%" HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Local AppData",0x00020000,"%U_SHELL_FOLDERS_LOCAL_APPDATA%" HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Cache",0x00020000,"%U_SHELL_FOLDERS_CACHE%" HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","History",0x00020000,"%U_SHELL_FOLDERS_HISTORY%" HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Administrative Tools",0x00020000,"%U_SHELL_FOLDERS_ADMINTOOLS%" HKCU,"Environment","TEMP",0x00020000,"%TEMP_DIR%" HKCU,"Environment","TMP",0x00020000,"%TEMP_DIR%" ; internationalHKCU,"Control Panel\International","iCalendarType",0x00000000,"%INTL_ICALENDAR%"HKCU,"Control Panel\International","iCountry",0x00000000,"%INTL_ICOUNTRY%"HKCU,"Control Panel\International","iCurrDigits",0x00000000,"%INTL_ICURRDIGITS%"HKCU,"Control Panel\International","iCurrency",0x00000000,"%INTL_ICURRENCY%"HKCU,"Control Panel\International","iDate",0x00000000,"%INTL_IDATE%"HKCU,"Control Panel\International","iDigits",0x00000000,"%INTL_IDIGITS%"HKCU,"Control Panel\International","iFirstDayOfWeek",0x00000000,"%INTL_IFIRSTWEEKDAY%"HKCU,"Control Panel\International","iLZero",0x00000000,"%INTL_ILZERO%"HKCU,"Control Panel\International","iMeasure",0x00000000,"%INTL_IMEASURE%"HKCU,"Control Panel\International","iNegCurr",0x00000000,"%INTL_INEGCURR%"HKCU,"Control Panel\International","iTime",0x00000000,"%INTL_ITIME%"HKCU,"Control Panel\International","iTLZero",0x00000000,"%INTL_ITLZERO%"HKCU,"Control Panel\International","Locale",0x00000000,"%INTL_LOCALE%"HKCU,"Control Panel\International","s1159",0x00000000,"%INTL_S1159%"HKCU,"Control Panel\International","s2359",0x00000000,"%INTL_S2359%"HKCU,"Control Panel\International","sCountry",0x00000000,"%INTL_SCOUNTRY%"HKCU,"Control Panel\International","sCurrency",0x00000000,"%INTL_SCURRENCY%"HKCU,"Control Panel\International","sDate",0x00000000,"%INTL_SDATE%"HKCU,"Control Panel\International","sDecimal",0x00000000,"%INTL_SDECIMAL%"HKCU,"Control Panel\International","sLanguage",0x00000000,"%INTL_SLANGUAGE%"HKCU,"Control Panel\International","sList",0x00000000,"%INTL_SLIST%"HKCU,"Control Panel\International","sLongDate",0x00000000,"%INTL_SLONGDATE%"HKCU,"Control Panel\International","sShortDate",0x00000000,"%INTL_SSHORTDATE%"HKCU,"Control Panel\International","sThousand",0x00000000,"%INTL_STHOUSAND%"HKCU,"Control Panel\International","sTime",0x00000000,"%INTL_STIME%"HKCU,"Control Panel\International","sTimeFormat",0x00000000,"%INTL_STFORMAT%"2HKCU,"Control Panel\International\Geo","Nation",0x00000000,"%INTL_GEO_NATION%"HKCU,"Control Panel\Desktop","UserPreferencesMask",0x00030003,\ %USER_PREF_MASK_0%,3e,01,80; Edit this if your time zone is different to the one listed.HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones","IndexMapping",0x00010000,\ "409", "4",\ "1009", "4",\ "80a", "30",\ "440a", "30",\ "480a", "30",\ "4c0a", "30",\ "c0c", "35",\ "240a", "45",\ "280a", "45",\ "300a", "45",\ "200a", "55",\ "340a", "55",\ "3c0a", "55",\ "400a", "55",\ "500a", "55",\ "416", "65",\ "2c0a", "70",\ "380a", "70",\ "422", "85",\ "438", "85",\ "441", "85",\ "809", "85",\ "816", "85",\ "1001", "85",\ "1401", "85",\ "1404", "85",\ "1809", "85",\ "2009", "85",\ "2401", "85",\ "2409", "85",\ "2801", "85",\ "2809", "85",\ "3001", "85",\ "3409", "85",\ "4001", "85",\ "40f", "85",\ "41c", "85",\ "43e", "85",\ "83e", "85",\ "100a", "85",\ "140a", "85",\ "140c", "85",\ "180a", "85",\ "180c", "85",\ "1c01", "85",\ "1c0a", "85",\ "2c01", "85",\ "2c09", "85",\ "3c01", "85",\ "405", "95",\ "40e", "95",\ "424", "95",\ "41b", "95",\ "81a", "95",\ "c1a", "95",\ "402", "100",\ "415", "100",\ "1801", "100",\ "41a", "100",\ "42f", "100",\ "403", "105",\ "406", "105",\ "427", "105",\ "813", "105",\ "827", "105",\ "40a", "105",\ "40c", "105",\ "42d", "105",\ "80c", "105",\ "c0a", "105",\ "407", "110",\ "410", "110",\ "413", "110",\ "414", "110",\ "807", "110",\ "810", "110",\ "814", "110",\ "1007", "110",\ "1407", "110",\ "41d", "110",\ "c07", "110",\ "100c", "110",\ "418", "115",\ "c01", "120",\ "425", "125",\ "426", "125",\ "40b", "125",\ "81d", "125",\ "408", "130",\ "423", "130",\ "41f", "130",\ "40d", "135",\ "436", "140",\ "3009", "140",\ "1c09", "140",\ "419", "145",\ "401", "150",\ "801", "150",\ "3401", "150",\ "429", "160",\ "2001", "165",\ "3801", "165",\ "420", "185",\ "439", "190",\ "421", "205",\ "41e", "205",\ "42a", "205",\ "804", "210",\ "c04", "210",\ "1004", "215",\ "404", "220",\ "412", "230",\ "812", "230",\ "411", "235",\ "c09", "260",\ "1409", "290"2HKR,"1174\Files\13","Action",0x00010001,42HKR,"1174\Files\13","Item",0000000000,"%GAMES_SOLITAIRE_LNK%"2HKR,"1174\Files\14","Action",0x00010001,42HKR,"1174\Files\14","Item",0000000000,"%GAMES_MINESWEEPER_LNK%"2HKR,"1174\Files\15","Action",0x00010001,42HKR,"1174\Files\15","Item",0000000000,"%GAMES_FREECELL_LNK%"28HKCR,"CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}","SortOrderIndex",0x00010001,848HKCU,"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer","DontPrettyPath",0x00010001,18HKCU,"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer","Hidden",0x00010001,18HKCU,"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer","HideFileExt",0x00010001,08HKCU,"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer","IntelliMenus",0x00000000,"No"8HKCU,"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer","ShowSuperHidden",0x00010001,18HKCU,"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer","SuperHidden",0x00010001,18HKCU,"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer","NoDriveAutoRun",0x00000001,00,06,00,0080; Zone0 (My Computer) to IE0; Still buggy0HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0","CurrentLevel",0x00010001,696320HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0","MinLevel",0x00010001,655360HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0","RecommendedLevel",0x00010001,668160HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0","Flags",0x00010001,710HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0","Description",,"Sites on your Computer"0HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0","DisplayName",,"Local"0[Strings]; Control PanelCPL_TWEAKUI="Tweak UI"CPL_USERS="Users and Passwords"; DesktopMY_COMPUTER="%Computername%"NAME_LOCAL="My Computer"NETWORK_NEIGHBORHOOD="Networks"DESC_IE="Mosaic"LMSIE4 = "Internet Explorer"; International settingsINSTALL_LANGUAGE="0C09"INSTALL_LOCALE="00000C09";INTL_GEO_NATION="12"INTL_ICALENDAR="1"INTL_ICOUNTRY="61"INTL_ICURRDIGITS="2"INTL_ICURRENCY="0"INTL_IDATE="2"INTL_IDIGITS="2"0; 0=Mon, 6=SunINTL_IFIRSTWEEKDAY="6"INTL_ILZERO="1"INTL_IMEASURE="1"INTL_INEGCURR="1"INTL_ITIME="1"INTL_ITLZERO="1"INTL_LOCALE="00000C09"INTL_S1159="AM"INTL_S2359="PM"INTL_SCOUNTRY="Australia"INTL_SCURRENCY="$"INTL_SDATE="/"INTL_SDECIMAL="."INTL_SLANGUAGE="ENA"INTL_SLIST=","INTL_SLONGDATE="dddd, d MMMM, yyyy"INTL_SSHORTDATE="yyyy/MM/dd"INTL_STHOUSAND=","INTL_STIME=":"INTL_STFORMAT="HH:mm:ss"USER_PREF_MASK_0="9e"; Put these under AccessoriesGAMES_FREECELL_LNK="Accessories\games\Freecell.lnk"GAMES_MINESWEEPER_LNK="Accessories\games\Minesweeper.lnk"GAMES_SOLITAIRE_LNK="Accessories\games\Solitaire.lnk"; Configure MarqueeSCREEN_SAVER_MARQUEE_FONT="Georgia"1SCREEN_SAVER_MARQUEE_TEXT="Windows NT 5.00.2195"2SCREEN_SAVER_MARQUEE_TEXT="Windows NT 5.10.2600"; Shell FoldersDEFAULT_PROFILES_DIR="%SystemDrive%\USERS"DEFAULT_USER="Default"ALL_USERS="Public"; User foldersTEMP_DIR="%USERPROFILE%\Local\Temp"U_SHELL_FOLDERS_APPDATA="%USERPROFILE%\AppData"U_SHELL_FOLDERS_CDBURN="%USERPROFILE%\AppData\CDBurn"U_SHELL_FOLDERS_DESKTOP="%USERPROFILE%\Desktop"U_SHELL_FOLDERS_FAVORITES="%USERPROFILE%\Favorites"U_SHELL_FOLDERS_NETHOOD="%USERPROFILE%\NetHood"U_SHELL_FOLDERS_PERSONAL="%USERPROFILE%\Personal"U_SHELL_FOLDERS_PRINTHOOD="%USERPROFILE%\PrintHood"U_SHELL_FOLDERS_PROGRAMS="%USERPROFILE%\Start Menu\Programs"U_SHELL_FOLDERS_RECENT="%USERPROFILE%\Recent"U_SHELL_FOLDERS_SENDTO="%USERPROFILE%\SendTo"U_SHELL_FOLDERS_START_MENU="%USERPROFILE%\Start Menu"U_SHELL_FOLDERS_STARTUP="%USERPROFILE%\Start Menu\Programs\Startup"U_SHELL_FOLDERS_TEMPLATES="%USERPROFILE%\Templates"U_SHELL_FOLDERS_COOKIES="%USERPROFILE%\Local\Cookies"U_SHELL_FOLDERS_MYPICTURES="%USERPROFILE%\Personal\Pictures"U_SHELL_FOLDERS_MYMUSIC="%USERPROFILE%\Personal\Music"U_SHELL_FOLDERS_MYVIDEO="%USERPROFILE%\Personal\Video"U_SHELL_FOLDERS_LOCAL_SETTINGS="%USERPROFILE%\Local"U_SHELL_FOLDERS_LOCAL_APPDATA="%USERPROFILE%\Local\AppData"U_SHELL_FOLDERS_CACHE="%USERPROFILE%\Temporary Internet Files"U_SHELL_FOLDERS_HISTORY="%USERPROFILE%\Local\History"U_SHELL_FOLDERS_ADMINTOOLS="%USERPROFILE%\Start Menu\Programs\Administrative Tools"U_DESK_MYCOMP="%Computername%"U_DESK_MYCOMP_TIP="OS/2 Drives Object"U_DESK_MYDOCS="Personal"U_DOCS_MYDOCS_TIPS="%Username%'s documents"U_DESK_NETWK="Eildon"U_DOCS_NETWK_TIPS="Network Places"U_DESK_MSIE="Mosaic"U_DOCS_MSIE_TIPS="Featured Browser"U_DESK_TRASH="Recycled"U_DOCS_TRASH_TIPS="%Username%'s Deletium";U_DESK_="";U_DOCS__TIPS=""[/codebox]Some of the interesting highlights:It adds the Win2k users to winxp, under the win2k name of "users and passwords"International settings are set here. Read comments (lines beginning 0; )Shell folders - we even set the names of "Default User" and "All Users" to match vista's DEFAULT and PUBLIC. So \Documents and Settings\All Users become \USERS\PUBLICUser folders are set to short names, except for some, which seem to need spaces (start menu), eg Personal, Nethood, etc.Desktop icons and tips are changed. Note we use variables here, eg %username% and %computername%This is SI.TXT, the instructions and cut-bits for each of the install files.[codebox]We add a number of rk files to the default install, wie WINXP et al.The Windows *.jpg live in webvw.dll, so we add the Win9x stuff there.Setup.bmp lives in %systemroot%\system32.------ dosnet.inf ---------------------------------------------[Files]d1,hivefix.infd1,msvcp60.dlld1,directx.cpld1,diskpart.exed1,kill.exed1,reg.exed1,setx.exed1,setup50.bmpd1,ssmypics.scrd1,tlist.exed1,tweakui.cpld1,tweakui.hlpd1,tweakui.cntd1,runext.dll------ txtsetup.sif --------------------------------------------[SourceDisksFiles]hivefix.inf = 1,,,,,,_x,20,3,3directx.cpl = 2,,,,,,,2,0,0diskpart.exe = 2,,,,,,,2,0,0kill.exe = 2,,,,,,,2,0,0reg.exe = 2,,,,,,,2,0,0setx.exe = 2,,,,,,,2,0,0tlist.exe = 2,,,,,,,2,0,0setup50.bmp = 2,,,,,,,2,0,0ssmypics.scr = 2,,,,,,,2,0,0tweakui.cpl = 2,,,,,,,2,0,0tweakui.hlp = 2,,,,,,,21,0,0tweakui.cnt = 2,,,,,,,21,0,0runext.dll = 2,,,,,,,2,0,0msvcp60.dll = 2,,,,,,,2,0,0;; add these to the end to make hivefix.inf work. [HiveInfs.Fresh] DelReg = hivefix.inf,AddReg AddReg = hivefix.inf,AddReg [HiveInfs.Upgrade] DelReg = hivefix.inf,AddReg AddReg = hivefix.inf,AddReg ; These have not really changed, so... [SetupData] SetupSourcePath = "\" DefaultPath=\WINNT -------------------------- layout.inf -------------------------------- layout has a digital signature. til this is faked, we need to avoid the editing of this. --------------------------------------------------------------------- WEBVW.DLL Add bitmaps to resource table, using reshack.exe
MSVCP60.DLL
Add this to allow vc6 proggies to run. There's also a v7 somewhere.

WINNT4 Bitmaps
We still load these into the cdrom, which means that the files will
at this stage stay in the registry. But we might use the ACCESSOR.INF
to handle its files, rather than relying on the saved LAYOUT.INF

NEPTUNE
We add neptune files 'setup_w.bmp', and 'ssmypics.scr' to the mix.

Services do not live in hive*.inf. Need some other way to kill the files.[/codebox]

#2 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 07 August 2009 - 12:00 PM

Very good work.

I also prefer the shorter designation of "Users" instead of "Documents and Settings".

:idea:

#3 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 07 August 2009 - 12:22 PM

Wendy, where do you employ those files? On a PE, on a default install, on the Source files?

:idea:

edit: Sorry today seems to be not my day. The topic states it, adding things to ,INF.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users