[Main]
Title=Reg Config
Description=Configuring Registry, Shell, Startup and more...
Selected=None
Level=1
Author=JFX, Kare
Version=9.7
Date=25.04.2025
Translation_DE=MaineCoon
Sizex86=|227925:28:0
Sizex64=|15480422:28:0

[Interface]
Panel=1
pframe1=Options,707070,0,0,0,0,405,55
pcheckbox1=False,Always build hives (no caching),0,8,10,25,240,18

pTextLabel1=FBWF cache gives you free space on the PE systemdrive,10,0,Default,10,90,450,20
pTextLabel2=FBWF cache size (in MB):,10,0,Default,10,133,200,20
pTextLabel3=If the Target Machine has 2GB and more RAM you can use 512MB easily,10,0,Default,10,185,500,40

pscrollbox1=512,1,0,130,220,132,50,20,128,256,512,768,1024
pFrame2=Shortcut Fix Driveletter,707070,0,0,10,240,200,80
pcheckbox2=True,Desktop,0,0,30,275,120,18

tConnect=Connect to USB, please wait...
//
tEcho_1=Copying init files...
tEcho_2=Getting Hives...
tEcho_3=Taking ownership [PE Registry hives] (%1%/2)...
tEcho_4=Granting full access [PE hives] (%1%/2)...
tEcho_5=Granting full access [PE Drivers] (%1%/4)...
tEcho_6=Extracting Registry hive [Classes] ...
tEcho_7=Modify Registry ...
tEcho_8=Importing Registry hive [Classes] to PE Registry...
tEcho_9=Writing configuration....

[Interface.07]
Panel=1
Description=Konfiguration der Registry, der Shell, des Systemstarts und mehr...
pframe1=Optionen,707070,0,0,0,0,405,55
pcheckbox1=False,Immer Hives erstellen (kein Cachen),0,8,10,25,240,18

ptextlabel1=Der FBWF-Speicher erstellt freien Speicherplatz auf dem PE-Systemlaufwerk,10,0,Default,10,90,450,20
ptextlabel2=Größe des FBWF-Speichers (in MB):,10,0,Default,10,133,230,20
ptextlabel3=Wenn der Ziel-PC über 2GB RAM oder mehr verfügt#$c können Sie problemlos 512MB#$xauswählen,10,0,Default,10,185,500,40

pscrollbox1=512,1,0,130,245,132,50,20,128,256,512,768,1024
pframe2=Verknüpfung Boot-Laufwerk,A0A0A0,0,0,10,240,190,80
pcheckbox2=True,Desktop,0,0,30,275,120,18

tConnect=Verbinde USB, bitte warten...
//
tEcho_1=Init-Dateien werden kopiert....
tEcho_2=Hives werden kopiert...
tEcho_3=Besitzübernahme an [PE-Registry] (%1%/2)...
tEcho_4=Vollzugriff auf [Registry-Zweige] (%1%/2)...
tEcho_5=Vollzugriff auf [Registry-Drivers] (%1%/4)...
tEcho_6=Extrahiert wird Registry-Zweig [Classes] ...
tEcho_7=Modifiziere Registry-Zweig ...
tEcho_8=Importiert wird Registry-Zweig [Classes] in die PE-Registry ...
tEcho_9=Konfiguration wird geschrieben....

[process]

echo,%tEcho_1%

// _____/PeInit\_____ + Driveletter
filecopy,%Tools%\%Arch%\PEInit.exe,%target_sys%
FileCreateBlank,%Target_sys%\PEinit.ini,Utf8
IniWrite,%Target_sys%\PEinit.ini,Main,Shellinit,1
IniWrite,%Target_sys%\PEinit.ini,Main,ShowWin,1
IniWrite,%Target_sys%\PEinit.ini,Main,StartWin,50|60|1
If,%WIM_BUILD%,=>,22621,then,IniWrite,%Target_sys%\PEinit.ini,Main,TrayButtonOff,1
FileCreateBlank,%target_win%\Inf\setupapi.log
IniWrite,%Target_sys%\PEinit.ini,init,10,setwg|workgroup

if,%CDBoot%,=,True,then
	System,GetDate,%yyyy%mm%dd,%Date%
	IniWrite,%Target_sys%\PEinit.ini,Init,03,DrvLetter|%CDDrive%|sources\%date%|%tConnect%
	IniWrite,%Target_CD%\sources\%Date%,Info,OS,%OS%-%Arch%-%WIM_BUILD%
	Add_Shortcut,StartMenu,".",x:\Windows\System32\PEInit.exe,"Fix Y-Drive,,-drvletter,setupapi.dll#$c16
	if,%pcheckbox2%,=,true,then,Add_Shortcut,Desktop,".",x:\Windows\System32\PEInit.exe,"Fix Y-Drive,,-drvletter,setupapi.dll#$c16
End

if,%pcheckbox1%,=,True,or,not,ExistFile,%InstallSRC%\HiveCache\system,Then

    RegLoad,%RegSystem%,PE-SYSTEM
    RegLoad,%RegSoftware%,PE-SOFTWARE
    RegLoad,%RegUser%,PE-USER
    RegLoad,%Target_Sys%\config\DRIVERS,PE-DRIVERS

    RegWrite,HKLM,0x1,PE-System\Setup,CmdLine,Peinit.exe
    String,%Var%,CalcHash,
    RegWrite,HKLM,0x1,PE-Software\Windows\PE,Login,%Var%

    Echo,%tEcho_3%,1
    ShellExecute,hide,%Tools%\%HOstArch%\SetAcl.exe, -on #$qHKLM\PE-software#$q -ot reg -rec yes -actn setowner -ownr #$qn:S-1-5-32-544;s:y#$q -silent
    Echo,%tEcho_3%,2
    ShellExecute,hide,%Tools%\%HOstArch%\SetAcl.exe, -on #$qHKLM\PE-SYSTEM#$q -ot reg -rec yes -actn setowner -ownr #$qn:S-1-5-32-544;s:y#$q -silent
    ShellExecute,hide,%Tools%\%HOstArch%\SetAcl.exe, -on #$qHKLM\PE-USER#$q -ot reg -rec yes -actn setowner -ownr #$qn:S-1-5-32-544;s:y#$q -silent

    Echo,%tEcho_4%,1
    ShellExecute,hide,%Tools%\%HOstArch%\SetAcl.exe, -on #$qHKLM\PE-Software#$q -ot reg -rec yes -actn ace -ace #$qn:S-1-5-32-544;p:full;s:y#$q -silent
    Echo,%tEcho_4%,2
    ShellExecute,hide,%Tools%\%HOstArch%\SetAcl.exe, -on #$qHKLM\PE-SYSTEM#$q -ot reg -rec yes -actn ace -ace #$qn:S-1-5-32-544;p:full;s:y#$q -silent
    ShellExecute,hide,%Tools%\%HOstArch%\SetAcl.exe, -on #$qHKLM\PE-USER#$q -ot reg -rec yes -actn ace -ace #$qn:S-1-5-32-544;p:full;s:y#$q -silent

    Echo,%tEcho_5%,1
    ShellExecute,Hide,%Tools%\%HostArch%\SetAcl.exe, -on #$qHKLM\PE-DRIVERS#$q      -ot reg -rec yes -actn setowner -ownr #$qn:S-1-5-32-544;s:y#$q -silent
    If,Not,%ExitCode%,=,0,Then,Halt,Error ACL
    Echo,%tEcho_5%,2
    ShellExecute,Hide,%Tools%\%HostArch%\SetAcl.exe, -on #$qHKLM\PE-DRIVERS#$q      -ot reg -rec yes -actn ace -ace #$qn:S-1-5-32-544;p:full;s:y#$q -ace #$qn:S-1-1-0;p:full;s:y#$q -silent
    If,Not,%ExitCode%,=,0,Then,Halt,Error ACL
  
    RegLoad,%Install_Sys%\config\System,Ins-Drivers
    Echo,%tEcho_5%,3
    ShellExecute,Hide,%Tools%\%HostArch%\SetAcl.exe, -on #$qHKLM\Ins-Drivers#$q      -ot reg -rec yes -actn setowner -ownr #$qn:S-1-5-32-544;s:y#$q -silent
    If,Not,%ExitCode%,=,0,Then,Halt,Error ACL
    Echo,%tEcho_5%,4
    ShellExecute,Hide,%Tools%\%HostArch%\SetAcl.exe, -on #$qHKLM\Ins-Drivers#$q      -ot reg -rec yes -actn ace -ace #$qn:S-1-5-32-544;p:full;s:y#$q -ace #$qn:S-1-1-0;p:full;s:y#$q -silent
    If,Not,%ExitCode%,=,0,Then,Halt,Error ACL
    
    RegUnLoad,Ins-Drivers

    // Modify Registry
    Echo,%tEcho_7%
    System,FILEREDIRECT,off
    Shellexecute,hide, %WindowsDir%\system32\cmd.exe,"/C For /F #$pA IN ('Reg Query HKEY_LOCAL_MACHINE\PE-SOFTWARE\Classes /K /F OpenWithProgIds /S') Do Reg Delete #$q#$pA#$q /F >nul 2>nul"

    RegReplace,PE-SOFTWARE,C:\,X:\
    // Replace Interactive User with nothing
    RegReplace,PE-SOFTWARE\Classes,Interactive User,
    // Replace C:\ with X:\
    RegReplace,PE-SYSTEM,C:\,X:\
    // Replace User C:\ with X:\
    RegReplace,PE-User,C:\,X:\

    Set,%ProdOpt%,0
    if,%WIM_BUILD%,<=,10586,then,Set,%ProdOpt%,1
    if,%WIM_BUILD%,=>,22000,then,Set,%ProdOpt%,1
    if,%ProdOpt%,=,1,then
	ShellExecute,Hide,%WindowsDir%\system32\reg.exe, import #$q%ScriptDir%\RegConfig\ProductOptions-%arch%.reg#$q
	If,Not,%ExitCode%,=,0,Then,Halt,Error ProductOptions.reg
    Else
	RegLoad,%Install_sys%\config\System,PE-InsSys
	system,log,off
	RegRead,%Var%,HKLM,PE-InsSys\ControlSet001\Control\ProductOptions,ProductPolicy
	RegWrite,HKLM,0x3,PE-SYSTEM\ControlSet001\Control\ProductOptions,ProductPolicy,%var%
	system,log,on
	RegUnLoad,PE-InsSys
	Regwrite,HKLM,0x7,PE-SYSTEM\ControlSet001\Control\ProductOptions,ProductSuite,Terminal Server
	Regwrite,HKLM,0x1,PE-SYSTEM\ControlSet001\Control\ProductOptions,ProductType,WinNT
    end

    ShellExecute,Hide,%WindowsDir%\system32\reg.exe, import #$q%ScriptDir%\RegConfig\Ownership.reg#$q
    If,Not,%ExitCode%,=,0,Then,Halt,Error Ownership.reg
    System,FILEREDIRECT,on

    //Environment
    echo,%tEcho_9%
    RegWrite,HKLM,0x4,PE-software\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoInternetOpenWith,1

    RegWrite,HKLM,0x1,PE-software\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-18,ProfileImagePath,X:\Users\Default
    // Remove Windows Desktop Update
    If,ExistRegKey,HKLM,PE-software\Microsoft\Active Setup\Installed Components\{89820200-ECBD-11cf-8B85-00AA005B4340},then,RegDelete,HKLM,"PE-software\Microsoft\Active Setup\Installed Components\{89820200-ECBD-11cf-8B85-00AA005B4340}"
    RegWrite,HKLM,0x2,PE-software\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Manage\command,,"#$pSystemRoot#$p\System32\mmc.exe /b compmgmt.msc"
    RegWrite,HKLM,0x4,PE-Software\Microsoft\CTF\TIP\{0000897b-83df-4b96-be07-0fb58b01c4a4}\LanguageProfile\0x00000000\{0001bea3-ed56-483d-a2e2-aeae25577436},Enable,0

    RegWrite,HKLM,0x2,PE-System\ControlSet001\Control\Session Manager\Environment,AppData,X:\Users\Default\AppData\Roaming

    RegWrite,HKLM,0x1,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,AppData,X:\Users\Default\AppData\Roaming
    RegWrite,HKLM,0x1,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,"Local AppData",X:\Users\Default\AppData\Local
    //RegWrite,HKLM,0x1,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,{A520A1A4-1780-4FF6-BD18-167343C5AF16},X:\Users\Default\AppData\LocalLow
    RegWrite,HKLM,0x1,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,"My Video",X:\Users\Default\Videos
    RegWrite,HKLM,0x1,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,"My Pictures",X:\Users\Default\Pictures
    RegWrite,HKLM,0x1,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,Desktop,X:\Users\Default\Desktop
    RegWrite,HKLM,0x1,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,Favorites,X:\Users\Default\Favorites
    RegWrite,HKLM,0x1,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,"My Music",X:\Users\Default\Music
    RegWrite,HKLM,0x1,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,Personal,X:\Users\Default\Documents
    RegWrite,HKLM,0x1,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,{BFB9D5E0-C6A9-404C-B2B2-AE6DB6AF4968},X:\Users\Default\Links
    RegWrite,HKLM,0x1,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,{4C5C32FF-BB9D-43B0-B5B4-2D72E54EAAA4},"X:\Users\Default\Saved Games"
    RegWrite,HKLM,0x1,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,{374DE290-123F-4565-9164-39C4925E467B},X:\Users\Default\Download
    RegWrite,HKLM,0x1,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,"Start Menu","X:\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu"
    RegWrite,HKLM,0x1,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,Programs,"X:\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs"
    RegWrite,HKLM,0x1,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,Startup,"X:\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
    RegWrite,HKLM,0x1,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,{1B3EA5DC-B587-4786-B4EF-BD1DC332AEAE},X:\Users\Default\AppData\Roaming\Microsoft\Windows\Libraries
    RegWrite,HKLM,0x1,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,Fonts,X:\Windows\Fonts
    //--
    //RegWrite,HKLM,0x1,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,{56784854-C6CB-462B-8169-88E350ACB882},X:\Users\Default\Contacts
    //RegWrite,HKLM,0x1,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,History,X:\Users\Default\AppData\Local\Microsoft\Windows\History
    RegWrite,HKLM,0x1,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,NetHood,"X:\Users\Default\AppData\Roaming\Microsoft\Windows\Network Shortcuts"
    RegWrite,HKLM,0x1,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,Cookies,X:\Users\Default\AppData\Roaming\Microsoft\Windows\Cookies
    RegWrite,HKLM,0x1,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,SendTo,X:\Users\Default\AppData\Roaming\Microsoft\Windows\SendTo
    RegWrite,HKLM,0x1,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,Recent,X:\Users\Default\AppData\Roaming\Microsoft\Windows\Recent
    //RegWrite,HKLM,0x1,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,"CD Burning",X:\Users\Default\AppData\Local\Microsoft\Windows\Burn\Burn1
    //RegWrite,HKLM,0x1,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,PrintHood,"X:\Users\Default\AppData\Roaming\Microsoft\Windows\Printer Shortcuts"
    //RegWrite,HKLM,0x1,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,{7D1D3A04-DEBB-4115-95CF-2F29DA2920DA},X:\Users\Default\Searches
    //RegWrite,HKLM,0x1,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,"Administrative Tools","X:\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Administrative Tools"
    //RegWrite,HKLM,0x1,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,Cache,"X:\Users\Default\AppData\Local\Microsoft\Windows\Temporary Internet Files"
    RegWrite,HKLM,0x1,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,Templates,X:\Users\Default\AppData\Roaming\Microsoft\Windows\Templates
    //--
    // Set Volatile Environment for win10
    RegWrite,HKLM,0x1,PE-USER\Volatile Environment,APPDATA,X:\Users\Default\AppData\Roaming
    RegWrite,HKLM,0x1,PE-USER\Volatile Environment,HOMEPATH,\Users\Default
    RegWrite,HKLM,0x1,PE-USER\Volatile Environment,HOMEDRIVE,X:
    RegWrite,HKLM,0x1,PE-USER\Volatile Environment,LOCALAPPDATA,X:\Users\Default\AppData\Local

    //- AllowStart ProfSvc lanmanworkstation on win10PE
    RegWrite,HKLM,0x0,PE-System\Setup\AllowStart\ProfSvc
    RegWrite,HKLM,0x0,PE-System\Setup\AllowStart\lanmanworkstation
    // Turn off ejected USB devices
    RegWrite,HKLM,0x4,PE-System\ControlSet001\Services\usbhub\HubG,DisableOnSoftRemove,1
    // EnableWheelDetection
    RegWrite,HKLM,0x4,PE-System\ControlSet001\Services\i8042prt\Parameters,EnableWheelDetection,2
    // Disable Auto chkdsk at bootup autochk
    RegWrite,HKLM,0x7,"PE-System\ControlSet001\Control\Session Manager",BootExecute,"autocheck autochk /k:C /k:D /k:D /k:E /k:F /k:G /k:H /k:I /k:J /k:K /k:L /k:M /k:N /k:O /k:P /k:Q /k:R /k:S /k:T /k:U /k:V /k:W /k:Y /k:Z *"
    // Disable Hibernate
    RegWrite,HKLM,0x4,PE-System\ControlSet001\Control\Power,HibernateEnabled,0
    RegWrite,HKLM,0x4,PE-System\ControlSet001\Control\Power,CustomizeDuringSetup,0
    RegWrite,HKLM,0x4,PE-System\ControlSet001\Control\Power,HiberbootEnabled,0
    // Disable Fast Startup
    RegWrite,HKLM,0x4,"PE-System\ControlSet001\Control\Session Manager\Power",HiberbootEnabled,0
    RegWrite,HKLM,0x4,"PE-System\ControlSet001\Control\Session Manager\Power",CustomizeDuringSetup,0
    // 1=Do not update the last-access timestamp and NTFS log. Make list faster for a volume with a very large number of directories. For Ntfs and Resilient File System (Refs)
    RegWrite,HKLM,0x4,PE-System\ControlSet001\Control\FileSystem,NtfsDisableLastAccessUpdate,1
    RegWrite,HKLM,0x4,PE-System\ControlSet001\Control\FileSystem,RefsDisableLastAccessUpdate,1
    // add 14.12.2007 by powaking for support old samba servers
    RegWrite,HKLM,0x4,PE-System\ControlSet001\Control\Lsa,LmCompatibilityLevel,2
    // Disable Pagefile
    If,ExistRegKey,HKLM,"PE-System\ControlSet001\Control\Session Manager\Memory Management",ExistingPageFiles,then,RegDelete,HKLM,"PE-System\ControlSet001\Control\Session Manager\Memory Management",ExistingPageFiles
    RegWrite,HKLM,0x7,"PE-System\ControlSet001\Control\Session Manager\Memory Management",PagingFiles,
    RegWrite,HKLM,0x4,"PE-System\ControlSet001\Control\Session Manager\Memory Management",SwapfileControl,0
    // pagefile.sys
    //RegWrite,HKLM,0x7,"PE-System\ControlSet001\Control\Session Manager\Memory Management",ExistingPageFiles,\??\X:\pagefile.sys
    //RegWrite,HKLM,0x7,"PE-System\ControlSet001\Control\Session Manager\Memory Management",PagingFiles,X:\pagefile.sys
    // Crash Control disable AutoReboot
    //RegWrite,HKLM,0x4,PE-System\ControlSet001\Control\CrashControl,AutoReboot,0
    //RegWrite,HKLM,0x4,PE-System\ControlSet001\Control\CrashControl,CrashDumpEnabled,3
    //RegWrite,HKLM,0x1,"PE-System\ControlSet001\Control\Session Manager\Environment",LOCALAPPDATA,x:\Users\default\AppData\Local
    ////disable firewall 09.12.2007 (Start values 2=Automatic, 3=Manual, 4=Disabled)
    ////startup windows firewall is managed in script Optimizations (also used in penetwork)
    RegWrite,HKLM,0x4,PE-System\ControlSet001\Services\MpsSvc,Start,3
    ////disable Internet KeyExchange and Authenticated Internet Protocol by Louis
    ////RegWrite,HKLM,0x4,Tmp_System\ControlSet001\Services\Ikeext,Start,4
    if,%WIM_BUILD%,<=,18362,then
	// USB3GroupOrder
	// The drives of USB-harddisk are not visible when booting from USB 3.0 is used. Load them earlier in the boot sequence of the computer to keep them connected
	RegWrite,HKLM,0x1,PE-System\ControlSet001\Services\UCX01000,Group,"Boot Bus Extender"
	RegWrite,HKLM,0x4,PE-System\ControlSet001\Services\UCX01000,Start,0
	RegWrite,HKLM,0x1,PE-System\ControlSet001\Services\USBHUB3,Group,"Boot Bus Extender"
	RegWrite,HKLM,0x4,PE-System\ControlSet001\Services\USBHUB3,Start,0
	RegWrite,HKLM,0x1,PE-System\ControlSet001\Services\USBXHCI,Group,"Boot Bus Extender"
	RegWrite,HKLM,0x4,PE-System\ControlSet001\Services\USBXHCI,Start,0
    end
    RegWrite,HKLM,0x2,PE-USER\Software\Microsoft\Windows\CurrentVersion\RunOnce,PeInit Startup,PeInit.exe -Startup
    if,%WIM_BUILD%.%WIM_SPBUILD%,=,19041.928,then,Regwrite,HKLM,0x4,PE-SYSTEM\ControlSet001\Control\FeatureManagement\Overrides\0\2093230218,EnabledState,0
    if,%WIM_BUILD%.%WIM_SPBUILD%,=,22621.2428,then,Regwrite,HKLM,0x4,PE-SYSTEM\ControlSet001\Control\FeatureManagement\Overrides\1\1285421709,EnabledState,0

    RegRead,%tmp%,HKLM,PE-Software\Classes\.txt,
    RegWrite,HKLM,0x1,PE-Software\Classes\.ini,,%tmp%
    RegWrite,HKLM,0x1,PE-Software\Classes\.log,,%tmp%
    RegWrite,HKLM,0x1,PE-Software\Classes\.inf,,%tmp%

    RegRead,%tmp%,HKLM,PE-Software\Classes\.txt,PerceivedType
    RegWrite,HKLM,0x1,PE-Software\Classes\.log,PerceivedType,%tmp%
    RegWrite,HKLM,0x1,PE-Software\Classes\.inf,PerceivedType,%tmp%
    RegWrite,HKLM,0x1,PE-Software\Classes\.ini,PerceivedType,%tmp%

    Regwrite,HKLM,0x4,PE-User\Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts,Applications\WordPad.exe_.ini,0
    Regwrite,HKLM,0x4,PE-User\Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts,Applications\WordPad.exe_.log,0
    Regwrite,HKLM,0x4,PE-User\Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts,Applications\WordPad.exe_.inf,0

    Regwrite,HKLM,0x4,PE-SYSTEM\ControlSet001\Services\netprofm,Start,4
    Regwrite,HKLM,0x4,PE-SYSTEM\ControlSet001\Services\netprofm,SvcMemHardLimitInMB,0xa
    Regwrite,HKLM,0x4,PE-SYSTEM\ControlSet001\Services\netprofm,SvcMemMidLimitInMB,6
    Regwrite,HKLM,0x4,PE-SYSTEM\ControlSet001\Services\netprofm,SvcMemSoftLimitInMB,4
    Regwrite,HKLM,0x4,PE-SYSTEM\ControlSet001\Services\netprofm\Parameters,ServiceDllUnloadOnStop,1

    RegUnLoad,PE-SYSTEM
    RegUnLoad,PE-Software
    RegUnLoad,PE-USER
    RegUnLoad,PE-DRIVERS

    Dirmake,%InstallSRC%\HiveCache
    FileCopy,%Target_Sys%\Config\SOFTWARE,  %InstallSRC%\HiveCache\
    FileCopy,%Target_Sys%\Config\DEFAULT,   %InstallSRC%\HiveCache\
    FileCopy,%Target_Sys%\Config\SAM,       %InstallSRC%\HiveCache\
    FileCopy,%Target_Sys%\Config\COMPONENTS,%InstallSRC%\HiveCache\
    FileCopy,%Target_Sys%\Config\SECURITY,  %InstallSRC%\HiveCache\
    FileCopy,%Target_Sys%\Config\Drivers,	%InstallSRC%\HiveCache\
    FileCopy,%Target_Sys%\Config\SYSTEM,    %InstallSRC%\HiveCache\

Else
    echo,%tEcho_2%
    filecopy,%InstallSRC%\HiveCache\system,%Target_Sys%\Config\
    filecopy,%InstallSRC%\HiveCache\software,%Target_Sys%\Config\
    filecopy,%InstallSRC%\HiveCache\Default,%Target_Sys%\Config\
    filecopy,%InstallSRC%\HiveCache\Security,%Target_Sys%\Config\
    filecopy,%InstallSRC%\HiveCache\sam,%Target_Sys%\Config\
    filecopy,%InstallSRC%\HiveCache\components,%Target_Sys%\Config\
    filecopy,%InstallSRC%\HiveCache\drivers,%Target_Sys%\Config\
End

RegLoad,%RegSystem%,PE-SYSTEM
RegWrite,HKLM,0x4,PE-SYSTEM\ControlSet001\Services\FBWF,WinPECacheThreshold,%pScrollBox1%
RegUnLoad,PE-SYSTEM


[Script-Pic]
0=9662,4916,ZLB64
1=eNrtmgtcTfnax5cjM+8wbmM4Jsc0Z2YYTiIhQqMZTt4oR5EyY5rcoggVRSnlEpVrVCIq3a9K17272umeUpGJkJhiOHJPNH7n+f/bNe2m3jFizns+77t8fp//aq+11/o+z/95nv+z9iII3eifsrLAt9BhgjCIxhEk9pExqZvwifAHbd2F/8yNcTO3fU4azF32ehv73vukD0jv/UHs7H4Te/XqtZ/GANIO0ujfOReMu7c0bL4lrSfNIX38lu14r1+/fsuUlJTujhs3DqNHj26Qk5NLpc8dpXPRfh7kSP2kczWQ1LeF+4Nevcx0lJQKl6ip3VVVUCinz6JIu0m6b8sO4l2l/Xd17DefBXtDFcxVHwlFRcVHPXr0OEWH/0Hq2eb0d0hqUt96kQ6w/f49e1rPHTOm0EZT87nzggXwsrWF/dy5MJs6tWH80KEXOrDj3TfFr6KicqY+1QV3g41R5ayM4pXvwkF3AoYMGXKeDhtKY0saH4soHjZWCYL7c0FwbRAEs9qvR4y7bKul9dz1m2+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