I have been tweaking the Winxp install (pro upgrade), using HIVEFIX.INF. This is used to create the environment that is used to create the Users directory. When HIVEFIX runs, there are no user directories, and no registry, to speak of. HIVEFIX basically hooks in here.
This version of WinXP is been patched. ; This is the fixhive.inf. You need to also fix the file txtsetup.sif to ; get this to run. ; ; Add the stuff shown in dosnet.inf and txtsetup.inf to those files. ; The sections exist. For the first it is alpha, the next is a replace. ; The hiveinfs. are added to the end of the files. ; ; Save the section hivefix.inf as a file, and edit it to suit your ; tastes. hivefix.inf = various adjustments to the OS tweakui.exe = vers 2.1, added to the control panel directx.cpl = extracted from vers 9 -------------------------- dosnet.inf --------------------------------- [Files] d1,hivefix.inf d1,tweakui.exe d1,directx.cpl -------------------------- txtsetup.sif ------------------------------- [SourceDisksFiles] hivefix.inf = 100,,,,,,_x,,3,3 tweakui.exe = 1,,,,,,,2,1,0 directx.cpl = 1,,,,,,,2,1,0 [SetupData] DefaultPath=\WINNT [HiveInfs.Fresh] DelReg = hivefix.inf,AddReg AddReg = hivefix.inf,AddReg [HiveInfs.Upgrade] DelReg = hivefix.inf,AddReg AddReg = hivefix.inf,AddReg ---------------------------hivesft.inf---------------------------------- + new file 'hivefix.inf'. The settings in hivefix.inf are mainly registry settings, in the form rootkey, regkey, value, flags, data base form + modifiers ============================= ================================= 0x00000000 reg_sz (default) 0x0000 0002 keep original values 0x00000001 reg_binary 0x0000 0004 Delete subkey or value 0x00010000 reg_multi_sz 0x0000 0008 Append data to reg_multi 0x00010001 reg_dword 0x0000 0010 create subkey, but ignore data 0x00020000 reg_expand_sz 0x0000 0020 modify only if exists. 0x00020001 reg_none 0x0000 1000 modify x64 registry 0x0000 4000 modify x32 registry page 276 of 'microsoft windiws registry guide'. -----------------------------------------------------------------------------
This tells you what you need to modify in the early bit, ie, in the named files. If you want to change the default install path from \WINDOWS to \WINNT, you can do it here.
You then create a sample hivefix, which has all of the jucies. Some of the things don't work, because later processes change them. But it does provide an interesting thing, and we can set the proggie up to load eg tweakui and directx.cpl in the control panel under "System Maintanence".
These are examples of cpls implemented as .cpl files, and CLSID items.
The rest of the file is modest hacks on the system, but it boots up with the default ParseAutoExec=0x00, and a few other goodies.
This is HIVEFIX.INF. It's heavily customised...
[Version]
Signature = "$Windows NT$"
DriverVer=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
HKLM,"Software\Microsoft\Command Processor","CompletionChar",0x00010001,9
HKLM,"Software\Microsoft\Command Processor","PathCompletionChar",0x00010001,9
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","ParseAutoexec",0x00000000,"0"
HKCU,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","ParseAutoexec",0x00000000,"0"
; Shell fixes
; these are set later on by the system.
HKCR,"CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}","SortOrderIndex",0x00010001,84
HKCU,"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer","DontPrettyPath",0x00010001,1
HKCU,"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer","Hidden",0x00010001,1
HKCU,"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer","HideFileExt",0x00010001,0
HKCU,"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer","IntelliMenus",0x00000000,"No"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer","ShowSuperHidden",0x00010001,1
HKCU,"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer","SuperHidden",0x00010001,1
HKCU,"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer","NoDriveAutoRun",0x00000001,00,06,00,00
; Add TweakUI to Control Panel
; need to add an icon-pointer here. Windows is not that smart!
HKCR,"CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}","",0x00020000,"TweakUI"
HKCR,"CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}\DefaultIcon","",0x00020000,"%systemroot%\system32\Tweakui.exe,0"
HKCR,"CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}\Shell\Open\command","",,"TweakUI.exe"
HKCR,"CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}\ShellFolder","Attributes",0x00010001,48
HKCR,"CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}","{305CA226-D286-468e-B848-2B2E8E697B74} 2",0x00010001,5
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}","",,"Add Tweakui to Control Panel"
; Add directx to control panel (Performance and Maintanence)
HKLM,"Software\Microsoft\Windows\CurrentVersion\Control Panel\Extended Properties\{305CA226-D286-468e-B848-2B2E8E697B74} 2",\
"%Systemroot%\system32\directx.cpl",0x00010001,5
; Zone Zero to IE
; Still buggy
HKCU, "SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0","CurrentLevel",0x00010001,69632
HKCU, "SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0","MinLevel",0x00010001,65536
HKCU, "SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0","RecommendedLevel",0x00010001,66816
HKCU, "SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0","Flags",0x00010001,71
HKCU, "SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0","Description",,"Sites on your Computer"
HKCU, "SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0","DisplayName",,"My Computer"
; 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\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%"
HKCU,"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%"
HKCU,"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,"Environment","TEMP",0x00020000,"%TEMP_DIR%"
HKCU,"Environment","TMP",0x00020000,"%TEMP_DIR%"
; international
HKCU,"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%"
HKCU,"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"
HKR,"1174\Files\13","Action",0x00010001,4
HKR,"1174\Files\13","Item",0000000000,"%GAMES_SOLITAIRE_LNK%"
HKR,"1174\Files\14","Action",0x00010001,4
HKR,"1174\Files\14","Item",0000000000,"%GAMES_MINESWEEPER_LNK%"
HKR,"1174\Files\15","Action",0x00010001,4
HKR,"1174\Files\15","Item",0000000000,"%GAMES_FREECELL_LNK%"
[DelReg]
[Strings]
; Desktop
MY_COMPUTER="%Computername%"
NAME_LOCAL="My Computer"
NETWORK_NEIGHBORHOOD="Networks"
DESC_IE="Mosaic"
LMSIE4 = "Internet Explorer"
; International settings
INSTALL_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"
INTL_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 Accessories
GAMES_FREECELL_LNK="Accessories\games\Freecell.lnk"
GAMES_MINESWEEPER_LNK="Accessories\games\Minesweeper.lnk"
GAMES_SOLITAIRE_LNK="Accessories\games\Solitaire.lnk"
; Configure Marquee
SCREEN_SAVER_MARQUEE_FONT="Georgia"
SCREEN_SAVER_MARQUEE_TEXT="Windows NT 5.10.2600"
; User folders
DEFAULT_PROFILES_DIR="%SystemDrive%\XPUser"
TEMP_DIR="%USERPROFILE%\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%\Cookies"
U_SHELL_FOLDERS_MYPICTURES="%USERPROFILE%\Personal\Pictures"
U_SHELL_FOLDERS_MYMUSIC="%USERPROFILE%\Personal\Music"
U_SHELL_FOLDERS_MYMUSIC="%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%\History"



Help

Back to top









