[Main]
Title=Explorer Shell
Description=Desktop and Startmenu as is well known from Windows
Selected=True
Level=2
Author=Kare
Version=17.3
Date=19.12.2025
Sizex86=|86513021:0:0
Sizex64=|141638397:0:0
Disable=Shells\2-OwnShell.srt

[Interface]
Panel=1
pframe1=Settings,707070,1:0,0,15,25,500,130

pcheckbox1=True,Use small icons in Taskbar,0,3,25,50,200,17
pcheckbox2=True,Never combine elements in Taskbar,0,3,25,70,230,17
pcheckbox3=False,Lock the Taskbar,0,3,25,90,180,17
pScrollBox1=System,0,1:0,0,100,111,100,20,System,Administrator,System/Admin
pTextLabel2=Account:,9,1:0,Default,25,113,70,20

pcheckbox4=True,Use small Icons on Desktop,0,3,265,50,190,17
pcheckbox5=False,Remove Arrows from Shortcuts,0,3,265,70,180,17
pcheckbox6=False,small icons in Menu,0,1,265,90,150,18
pCheckBox9=True,Enable Dark Theme (ex v1809),0,0,265,110,200,18
pCheckBox10=False,Dark Textcolor,1:0,0,265,130,105,18

//----Information
pframe2=Computer Shortcut,707070,1:0,0,15,160,250,100
pcheckbox7=True,Computer on Desktop,0,0,25,185,140,18
pcheckbox8=False,Computer on Startmenu,0,0,25,215,130,18

pTextBox1=8A5F28,Taskbar Color:,1:0,1,370,129,60,80

pTextLabel1=Taskbar-Color:,10,1:0,Kursiv,294,180,100,20
pImage1=Color.jpg,,1:0,0,295,205,162,38
pdummy1=1,FF1111,1:0,1,295,204,170,40,0:0:40:40,41:0:40:40,82:0:40:40,123:0:40:40

//----Echo
tEcho_1=create folder...
tEcho_2=copy files...
tEcho_3=Systemfiles from 'System32' copy...
tEcho_4=write Registry-settings...

[Interface.07]
Panel=1
Description=Desktop und Startmenü, wie man es von Windows gewohnt ist
pframe1=Einstellungen,707070,1:0,0,15,25,500,130

pcheckbox1=True,Kleine Symbole in der Taskleiste,0,3,25,50,200,17
pcheckbox2=True,Taskleiste: ähnliche Elemente nie gruppieren,0,3,25,70,230,17
pcheckbox3=False,Taskleiste fixieren,0,3,25,90,180,17
pScrollBox1=System,0,1:0,0,100,111,100,20,System,Administrator,System/Admin
pTextLabel2=Konto:,9,1:0,Default,25,114,70,20

pcheckbox4=True,Kleine Desktopsymbole verwenden,0,3,265,50,190,17
pcheckbox5=False,Verknüpfungspfeile entfernen,0,3,265,70,180,17
pcheckbox6=False,Kleine Symbole im Menü,0,1,265,90,150,18
pcheckbox9=True,Dark Theme aktivieren (ab v1809),1:0,0,265,110,220,18
pCheckBox10=False,Dark Textfarbe,1:0,0,265,130,105,18
//----Information
pframe2=Computer Shortcut,707070,1:0,0,15,160,250,100
pcheckbox7=True,Computer auf Desktop,0,0,25,185,140,18
pcheckbox8=True,Computer im Startmenü,0,0,25,215,130,18

pTextBox1=8A5F28,Taskbar Farbe:,1:0,1,370,129,60,80
pTextLabel1=Taskbar-Farbe:,10,1:0,Kursiv,294,180,100,20
pImage1=Color.jpg,,1:0,0,295,205,162,38
pdummy1=1,FF1111,1:0,1,296,204,170,40,0:0:40:40,41:0:40:40,82:0:40:40,121:0:40:40

//----Echo
techo_1=Verzeichnisse werden erstellt...
techo_2=Dateien werden kopiert...
techo_3=Systemdateien aus 'System32' werden kopiert...
techo_4=Registry-Einstellungen werden geschrieben...


[Process]

Echo,%tEcho_1%

//Add_Shortcut,Pin,".",x:\windows\explorer.exe",""

GetDistLang,%DistTmp%,%boot_sys%\winlogon.exe,%Distlang%:%FallBack%,1
Retrieve,%Var%,ResStr,%boot_sys%\%DistTmp%\winlogon.exe.mui,,1008
IniWrite,%Target_sys%\PEinit.ini,Main,StartText,%Var%

If,Not,ExistDir,"%TargetDir%\Program Files\Internet Explorer",then,DirMake,"%TargetDir%\Program Files\Internet Explorer"

DirMake,%target_win%\Branding\Basebrd\%DistLang%
DirMake,%target_win%\Branding\Basebrd\en-US
DirMake,%target_win%\Branding\ShellBrd
DirMake,%target_win%\appPatch

Echo,%tEcho_2%
SetReqFile,%InstallSRC%,%Distlang%,%FallBack%,%TargetDir%

Copyfile,windows\Explorer.exe,1

Copyfile,windows\system32\ieproxy.dll
if,%WIM_BUILD%,<=,19042,then,Copyfile,Program Files\Internet Explorer\sqmapi.dll
Copyfile,Program Files\Common Files\microsoft shared\ink\tiptsf.dll,1

If,ExistDir,%InstallSRC%\ProgramData\Microsoft\Windows\DeviceMetadataStore,then,DirCopy,%InstallSRC%\ProgramData\Microsoft\Windows\DeviceMetadataStore,%TargetDir%\ProgramData\Microsoft\Windows\DeviceMetadataStore\

Copyfile,Windows\appPatch\sysmain.sdb
Copyfile,Windows\Branding\Basebrd\basebrd.dll,1
Copyfile,Windows\Branding\ShellBrd\shellbrd.dll

Echo,%tEcho_3%

SetReqFile,%boot_sys%,%Distlang%,%FallBack%,%target_sys%
ReqFile,BCP47Langs.dll
ReqFile,srvsvc.dll,1

SetReqFile,%Install_sys%,%Distlang%,%FallBack%,%target_sys%
ReqFile,atlthunk.dll
ReqFile,actxprxy.dll
ReqFile,apphelp.dll,1
ReqFile,browseui.dll
ReqFile,cscapi.dll
//ReqFile,query.dll

ReqFile,rshx32.dll,1
ReqFile,shsvcs.dll,2
ReqFile,explorerFrame.dll,2
ReqFile,comsvcs.dll
ReqFile,cfgbkend.dll,1
ReqFile,colbact.dll
ReqFile,comctl32.dll,1

ReqFile,devmgr.dll,1
ReqFile,dmintf.dll
ReqFile,dmocx.dll,1
ReqFile,dmutil.dll,1
ReqFile,dmvdsitf.dll
ReqFile,encapi.dll
ReqFile,hotplug.dll,1
ReqFile,mscories.dll
//ReqFile,objsel.dll
If,%Arch%,=,x86,then
	ReqFile,olecli32.dll,1
//Else
//	ReqSysWow64,olecli32.dll
end
ReqFile,chartv.dll,1
ReqFile,shdocvw.dll,1
ReqFile,shfolder.dll
ReqFile,UIRibbon.dll,1
ReqFile,UIRibbonRes.dll
ReqFile,UIAnimation.dll,1

ReqFile,control.exe
ReqFile,thumbcache.dll,1
ReqFile,networkexplorer.dll,1
ReqFile,ieframe.dll,2

ReqFile,appwiz.cpl,2
ReqFile,bthprops.cpl,1
ReqFile,desk.cpl,1
ReqFile,Display.dll,1
ReqFile,deskadp.dll,1
ReqFile,deskmon.dll,1

//ReqFile,hdwwiz.cpl
//- For  Regional and Language Options intl.cpl and BCP47Langs.dll
ReqFile,intl.cpl,2

ReqFile,irprops.cpl,1
ReqFile,joy.cpl,1
ReqFile,main.cpl,2
ReqFile,mmsys.cpl,2
ReqFile,powercfg.cpl,1
ReqFile,powercfg.exe,1
ReqFile,powercpl.dll,1
ReqFile,sud.dll,1
ReqFile,sysdm.cpl,2
ReqFile,TabletPC.cpl,1
ReqFile,taskbarcpl.dll,1
ReqFile,timedate.cpl,2
ReqFile,twext.dll,1
ReqFile,twinui.dll,2
ReqFile,wscui.cpl,1
ReqFile,systemcpl.dll,2
ReqFile,systray.exe

ReqFile,shutdown.exe,1
ReqFile,shutdownux.dll,1
ReqFile,sscore.dll,1

ReqFile,windows.ui.immersive.dll,2
ReqFile,dataexchange.dll,2
ReqFile,idstore.dll

ReqFile,MMDevAPI.dll,1
ReqFile,osbaseln.dll,1
ReqFile,sc.exe,1
ReqFile,sendmail.dll,1

ReqFile,shgina.dll,1
ReqFile,StructuredQuery.dll
ReqFile,provtool.exe
ReqFile,Winlangdb.dll,1
ReqFile,wlidprov.dll,1
Copyfile,Windows.UI.dll

// TH2
ReqFile,edputil.dll,2
ReqFile,edpauditapi.dll
ReqFile,policymanager.dll
ReqFile,MrmCoreR.dll,1

Copyfile,WorkFoldersShell.dll,1

// 14393 -1607
if,%WIM_BUILD%,>,14392,then
  // Build 14393 - 17763 (1809) 
  if,%WIM_BUILD%,<,18362,Then,ReqFile,SharedStartModel.dll
  ReqFile,twinui.pcshell.dll
  Copyfile,WindowManagement.dll
End

if,%WIM_BUILD%,<=,16299,then
  ReqFile,VEEventDispatcher.dll
  ReqFile,workerdd.dll
End
if,%WIM_BUILD%,<,18362,Then,ReqFile,SettingSyncPolicy.dll
if,%WIM_BUILD%,<=,19042,then,ReqFile,SettingSyncCore.dll,1

// 15063 - 1703
if,%WIM_BUILD%,=>,15063,then
  Copyfile,TextInputFramework.dll
  Copyfile,msIso.dll
  Copyfile,Clipc.dll
  Copyfile,RstrtMgr.dll,1
  Copyfile,StateRepository.Core.dll
  //if,%WIM_BUILD%,<=,16299,then,Copyfile,VEEventDispatcher.dll
  Copyfile,Windows.StateRepository.dll,1
  Copyfile,Windows.StateRepositoryBroker.dll
  Copyfile,Windows.StateRepositoryClient.dll
  Copyfile,Windows.StateRepositoryUpgrade.dll

  Copyfile,AppResolver.dll
  Copyfile,ELSCore.dll
 
  if,%WIM_BUILD%,<=,16299,then,Pack,Decompress,%Scriptdir%\Explorer\AppRepository%WIM_BUILD%.7z,%TargetDir%\ProgramData\Microsoft\Windows\AppRepository\	

  if,not,%WIM_BUILD%-%Arch%,=,17134-x86,then,Copyfile,StartTileData.dll,1
End

if,%WIM_BUILD%,=>,16299,then
  Copyfile,RMClient.dll,1
  Copyfile,Windows.StateRepositoryPS.dll
end

if,%WIM_BUILD%,=>,17134,then
   Copyfile,cdp.dll,1
   CopyFile,BCP47mrm.dll
end

if,%WIM_BUILD%,=>,17763,then,CopyFile,dsreg.dll,1

if,%WIM_BUILD%,=>,18362,then
  Dircopy,%Install_win%\SystemResources\Windows.UI.ShellCommon\,%Target_Win%\SystemResources\Windows.UI.ShellCommon\
end

if,%WIM_BUILD%,=>,19041,then
  Copyfile,WindowManagementAPI.dll
  Copyfile,Windows.FileExplorer.Common.dll
  Copyfile,coreglobconfig.dll
end

if,%WIM_BUILD%,>,19043,then
  Copyfile,dmenrollengine.dll
//  Copyfile,lsaadt.dll
//  Copyfile,ServicingCommon.dll
//  Copyfile,utcapi.dll
End

// 15063 - 1703
Set,%StateRep%,0
if,%WIM_BUILD%,>,15062,then
 if,%WIM_BUILD%,<=,16299,then,Set,%StateRep%,1
End

if,%WIM_BUILD%,=>,22000,then
  ReqFile,windowsudk.shellcommon.dll
  ReqFile,windowsudkservices.shellcommon.dll,1
  ReqFile,Windows.StateRepositoryCore.dll
  Pack,Decompress,%Scriptdir%\Explorer\AppRepository22xxx.7z,%TargetDir%\ProgramData\Microsoft\Windows\AppRepository\	
  Set,%StateRep%,1
End

If,%WIM_BUILD%,=>,22621,then
  copyfile,Windows.UI.Core.TextInput.dll
  copyfile,windows.ui.fileExplorer.dll,1
  copyfile,windows.System.Launcher.dll,1
  copyfile,windows.ui.xaml.dll,1
End

If,%WIM_BUILD%,=>,26100,Then
    //System,CopySection,%ScriptDir%\Explorer\26100.ini,Explorer,%Target_Sys%\Peinit.ini,Explorer
    IniWrite,%Target_sys%\PEinit.ini,Main,RunOnce,1
End
if,%WIM_BUILD%.%WIM_SPBUILD%,=>,26100.4349,then
  ReqFile,mdmregistration.dll
  ReqFile,SystemSettings.DataModel.dll
End

if,%WIM_BUILD%.%WIM_SPBUILD%,=>,26200.7462,then,ReqFile,CapabilityAccessManager.Desktop.Storage.dll

// del Desktop.ini
FileDelete,%TargetDir%\ProgramData\Microsoft\Windows\Start Menu\desktop.ini,1
FileDelete,%TargetDir%\ProgramData\Microsoft\Windows\Start Menu\Programs\desktop.ini,1
FileDelete,%TargetDir%\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories\desktop.ini,1

RegLoad,%RegSoftware%,PE-SOFTWARE
RegLoad,%RegSystem%,PE-SYSTEM
RegLoad,%RegUser%,PE-User

RegWrite,HKLM,0x1,PE-System\ControlSet001\Control\Session Manager\Environment,LOCALAPPDATA,x:\Users\default\AppData\Local

//_____/Startmenü: Search disabled\_____
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,Start_SearchFiles,0
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,Start_SearchPrograms,0

//_____/Desktop Icons\_____ - Computer
if,%pcheckbox7%,=,true,then
    RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu,{20D04FE0-3AEA-1069-A2D8-08002B30309D},0
    RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel,{20D04FE0-3AEA-1069-A2D8-08002B30309D},0
else
    RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu,{20D04FE0-3AEA-1069-A2D8-08002B30309D},1
    RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel,{20D04FE0-3AEA-1069-A2D8-08002B30309D},1
end

RegWrite,HKLM,0x1,PE-User\Software\IvoSoft\ClassicStartMenu\Settings,Computer,show
RegWrite,HKLM,0x1,PE-User\Software\IvoSoft\ClassicStartMenu\Settings,Computer,Hide

ShellExecute,Hide,%WindowsDir%\system32\reg.exe, import #$q%ScriptDir%\Explorer\Win10%Arch%_Explorer.reg#$q
If,Not,%ExitCode%,=,0,Then,Halt,%THalt02% %OS%%Arch%_Explorer.reg

ShellExecute,Hide,%WindowsDir%\system32\reg.exe, import #$q%ScriptDir%\Explorer\Win10%Arch%_Policies_Explorer.reg#$q
If,Not,%ExitCode%,=,0,Then,Halt,%THalt02% %OS%%Arch%_police_Explorer.reg

ShellExecute,Hide,%WindowsDir%\system32\reg.exe, import #$q%ScriptDir%\Explorer\Win10%Arch%_Winlogon.reg#$q
If,Not,%ExitCode%,=,0,Then,Halt,%THalt02% %OS%%Arch%_Winlogon.reg
RegWrite,HKLM,0x1,PE-Software\RegisteredApplications,"File Explorer",SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Capabilities

ShellExecute,hide,%WindowsDir%\system32\reg.exe, import #$q%ScriptDir%\Explorer\Win10_Power.reg#$q
If,Not,%ExitCode%,=,0,Then,Halt,%THalt02% %OS%%Arch%_Win10Power.reg

////________/ Folderoptions \__________________________________
Regwrite,HKLM,0x4,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,Hidden,1
Regwrite,HKLM,0x4,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,HideFileExt,0
Regwrite,HKLM,0x4,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,ShowSuperHidden,1
Regwrite,HKLM,0x4,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,SuperHidden,1

Regwrite,HKLM,0x3,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\Accent,AccentPalette,a6,d8,ff,00,76,b9,ed,00,42,9c,e3,00,00,78,d7,00,00,5a,9e,00,00,42,75,00,00,26,42,00,f7,63,0c,00
Regwrite,HKLM,0x0,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
Regwrite,HKLM,0x2,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders,AppData,#$pUserProfile#$p\AppData\Roaming
Regwrite,HKLM,0x2,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders,Cache,#$pUserProfile#$p\AppData\Local\Microsoft\Windows\INetCache
Regwrite,HKLM,0x2,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders,Cookies,#$pUserProfile#$p\AppData\Local\Microsoft\Windows\INetCookies
Regwrite,HKLM,0x2,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders,Desktop,#$pUserProfile#$p\Desktop
Regwrite,HKLM,0x2,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders,Favorites,#$pUserProfile#$p\Favorites
Regwrite,HKLM,0x2,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders,History,#$pUserProfile#$p\AppData\Local\Microsoft\Windows\History
Regwrite,HKLM,0x2,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders,Local AppData,#$pUserProfile#$p\AppData\Local
Regwrite,HKLM,0x2,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders,My Music,#$pUserProfile#$p\Music
Regwrite,HKLM,0x2,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders,My Pictures,#$pUserProfile#$p\Pictures
Regwrite,HKLM,0x2,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders,My Video,#$pUserProfile#$p\Videos
Regwrite,HKLM,0x2,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders,NetHood,#$pUserProfile#$p\AppData\Roaming\Microsoft\Windows\Network Shortcuts
Regwrite,HKLM,0x2,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders,Personal,#$pUserProfile#$p\Documents
Regwrite,HKLM,0x2,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders,PrintHood,#$pUserProfile#$p\AppData\Roaming\Microsoft\Windows\Printer Shortcuts
Regwrite,HKLM,0x2,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders,Programs,#$pUserProfile#$p\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
Regwrite,HKLM,0x2,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders,Recent,#$pUserProfile#$p\AppData\Roaming\Microsoft\Windows\Recent
Regwrite,HKLM,0x2,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders,SendTo,#$pUserProfile#$p\AppData\Roaming\Microsoft\Windows\SendTo
Regwrite,HKLM,0x2,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders,Start Menu,#$pUserProfile#$p\AppData\Roaming\Microsoft\Windows\Start Menu
Regwrite,HKLM,0x2,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders,Startup,#$pUserProfile#$p\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
Regwrite,HKLM,0x2,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders,Templates,#$pUserProfile#$p\AppData\Roaming\Microsoft\Windows\Templates
Regwrite,HKLM,0x2,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders,{374DE290-123F-4565-9164-39C4925E467B},#$pUserProfile#$p\Downloads

//- Add Run to My Computer
//RegWrite,HKLM,0x0,PE-Software\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{2559A1F3-21D7-11D4-BDAF-00C04F60B9F0}
//- Add Recycle Bin to My Computer
//RegWrite,HKLM,0x0,PE-Software\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{645FF040-5081-101B-9F08-00AA002F954E}
RegDelete,HKLM,PE-Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{031e4825-7b94-4dc3-b131-e946b44c8dd5}
RegDelete,HKLM,PE-Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{F3F5824C-AD58-4728-AF59-A1EBE3392799}

//- Small icons in Taskbar
If,%pCheckBox1%,=,True,then
	RegWrite,HKLM,0x4,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,TaskbarSmallIcons,1
Else
	RegWrite,HKLM,0x4,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,TaskbarSmallIcons,0
end

If,%pCheckBox2%,=,true,then
	RegWrite,HKLM,0x4,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,TaskbarGlomLevel,2
else
	RegWrite,HKLM,0x4,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,TaskbarGlomLevel,0
end

//- Lock the taskbar
If,%pCheckBox3%,=,True,then
	RegWrite,HKLM,0x4,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,TaskbarSizeMove,0
Else
	RegWrite,HKLM,0x4,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,TaskbarSizeMove,1
end
// small Desktop icons
If,%pCheckBox4%,=,True,then
	RegWrite,HKLM,0x3,PE-USER\Software\Microsoft\Windows\Shell\BagMRU,NodeSlots,02
	RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\Shell\BagMRU,NodeSlot,1
	RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\Shell\Bags\1\Desktop,IconSize,32
	RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\Shell\Bags\1\Desktop,Mode,1
	RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\Shell\Bags\1\Desktop,LogicalViewMode,3
End

// Remove arrow from shortcuts
If,%pCheckBox5%,=,True,Then,RegWrite,HKLM,0x1,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons,29,#$pSystemRoot#$p\system32\shell32.dll,51

// Small icons in Menu
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,Start_LargeMFUIcons,0

//_____/Desktop Icons\_____
// Computer
If,%pcheckbox7%,=,True,Then
    RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu,{20D04FE0-3AEA-1069-A2D8-08002B30309D},0
    RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel,{20D04FE0-3AEA-1069-A2D8-08002B30309D},0
Else
    RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu,{20D04FE0-3AEA-1069-A2D8-08002B30309D},1
    RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel,{20D04FE0-3AEA-1069-A2D8-08002B30309D},1
End

// Dark Theme
If,%WIM_BUILD%,=>,17763,Then
	If,%pcheckbox9%,=,True,Then
		RegWrite,HKLM,0x1,PE-SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon,Background,63 63 63
		RegWrite,HKLM,0x4,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Accent,AccentColor,-12632257
		RegWrite,HKLM,0x4,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Accent,StartColor,-12632257
		RegWrite,HKLM,0x4,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Accent,DefaultAccentColor,-12632257
		RegWrite,HKLM,0x4,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Accent,DefaultStartColor,-12632257	 
		RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize,AppsUseLightTheme,0
		// Blue $8a5f28  // f5e1d0
	Else
		RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize,AppsUseLightTheme,1
	End
	
	If,%pcheckbox10%,=,True,Then
		RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize,SystemUsesLightTheme,1
	Else
		RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize,SystemUsesLightTheme,0
	End

end
Set,%Color%,$%pTextBox1%
If,SrtChecked,Customize\1-StartIsBack10.srt,Then,Run,%ProjectDir%\Customize\1-StartisBack10.srt,SetColor,%color%
If,SrtChecked,Customize\2-OpenShell.srt,Then,Run,%ProjectDir%\Customize\2-OpenShell.srt,SetColor,%Color%

RegWrite,HKLM,0x4,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu,{645FF040-5081-101B-9F08-00AA002F954E},1
RegWrite,HKLM,0x4,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel,{645FF040-5081-101B-9F08-00AA002F954E},1
RegWrite,HKLM,0x4,PE-User\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoRecycleFiles,1

//reboot
FileCopy,%Tools%\%Arch%\ReBoot.dll,%target_sys%\

RegWrite,HKLM,0x2,PE-SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows,AppInit_DLLs,reboot.dll
RegWrite,HKLM,0x4,PE-SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows,LoadAppInit_DLLs,1
RegWrite,HKLM,0x4,PE-SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows,RequireSignedAppInit_DLLs,0

RegWrite,HKLM,0x4,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoClose,0
RegWrite,HKLM,0x4,PE-SOFTWARE\Policies\Microsoft\Windows\Explorer,PowerButtonAction,0

//-
RegWrite,HKLM,0x4,PE-Software\Microsoft\Windows\CurrentVersion\Policies\System,HideFastUserSwitching,1
RegWrite,HKLM,0x4,PE-Software\Microsoft\Windows\CurrentVersion\Policies\System,DisableLockWorkstation,1

//RegWrite,HKLM,0x3,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer,ShellState,24,00,00,00,33,a8,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01,00,00,00,13,00,00,00,00,00,00,00,62,00,00,00
//RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer,EnableAutoTray,1
//RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,AlwaysShowMenus,1

// Disable Notification Center in Win10
RegWrite,HKLM,0x4,PE-USER\Software\Policies\Microsoft\Windows\Explorer,DisableNotificationCenter,1
// Remove Search Box/Icon and disabled Cortana from Windows 10 Taskbar
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Search,CortanaEnabled,0
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Search,SearchboxTaskbarMode,0
//19041.3803
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Search,OnboardSearchboxOnTaskbar,2

// Remove Task View Icon from Windows 10 Taskbar
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,ShowTaskViewButton,0

// fix explorer delay in build 10586
RegWrite,HKLM,0x4,PE-USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer,UserSignedIn,1
RegWrite,HKLM,0x4,PE-USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Serialize,StartupDelayInMSec,0

//- Horizontal IconSpacing: Standard
RegWrite,HKLM,0x1,PE-USER\Control Panel\Desktop\WindowMetrics,IconVerticalSpacing,-1125
RegWrite,HKLM,0x1,PE-USER\Control Panel\Desktop\WindowMetrics,IconSpacing,-1395


if,%WIM_BUILD%,=>,17134,then
  Regdelete,HKLM,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\Desktop\NameSpace\{ED228FDF-9EA8-4870-83b1-96b02CFE0D52}
end

Regwrite,HKLM,0x4,PE-Software\Microsoft\Windows\CurrentVersion\ImmersiveShell,UseWin32BatteryFlyout,1
Regwrite,HKLM,0x4,PE-Software\Microsoft\Windows\CurrentVersion\ImmersiveShell,UseWin32TrayClockExperience,1

if,%WIM_BUILD%.%WIM_SPBUILD%,=>,19041.1288,then
  Regwrite,HKLM,0x1,PE-Software\Classes\CLSID\{BB06C0E4-D293-4f75-8A90-CB05B6477EED},,System
  Regwrite,HKLM,0x2,PE-Software\Classes\CLSID\{BB06C0E4-D293-4f75-8A90-CB05B6477EED},InfoTip,@#$pSystemRoot#$p\System32\systemcpl.dll#$c-2#immutable1
  Regwrite,HKLM,0x2,PE-Software\Classes\CLSID\{BB06C0E4-D293-4f75-8A90-CB05B6477EED},LocalizedString,@#$pSystemRoot#$p\System32\systemcpl.dll#$c-1#immutable1
  Regwrite,HKLM,0x1,PE-Software\Classes\CLSID\{BB06C0E4-D293-4f75-8A90-CB05B6477EED},System.ApplicationName,Microsoft.System
  Regwrite,HKLM,0x1,PE-Software\Classes\CLSID\{BB06C0E4-D293-4f75-8A90-CB05B6477EED},System.ControlPanel.Category,5
  Regwrite,HKLM,0x4,PE-Software\Classes\CLSID\{BB06C0E4-D293-4f75-8A90-CB05B6477EED},System.ControlPanel.EnableInSafeMode,3
  Regwrite,HKLM,0x1,PE-Software\Classes\CLSID\{BB06C0E4-D293-4f75-8A90-CB05B6477EED},System.Software.TasksFileUrl,Internal
  Regwrite,HKLM,0x2,PE-Software\Classes\CLSID\{BB06C0E4-D293-4f75-8A90-CB05B6477EED}\DefaultIcon,,#$pSystemRoot#$p\System32\imageres.dll#$c-149
  Regwrite,HKLM,0x2,PE-Software\Classes\CLSID\{BB06C0E4-D293-4f75-8A90-CB05B6477EED}\InProcServer32,,#$pSystemRoot#$p\System32\shdocvw.dll
  Regwrite,HKLM,0x1,PE-Software\Classes\CLSID\{BB06C0E4-D293-4f75-8A90-CB05B6477EED}\InProcServer32,ThreadingModel,Apartment
  Regwrite,HKLM,0x1,PE-Software\Classes\CLSID\{BB06C0E4-D293-4f75-8A90-CB05B6477EED}\Instance,CLSID,{328B0346-7EAF-4BBE-A479-7CB88A095F5B}
  Regwrite,HKLM,0x2,PE-Software\Classes\CLSID\{BB06C0E4-D293-4f75-8A90-CB05B6477EED}\Instance\InitPropertyBag,ResourceDLL,#$pSystemRoot#$p\System32\systemcpl.dll
  Regwrite,HKLM,0x4,PE-Software\Classes\CLSID\{BB06C0E4-D293-4f75-8A90-CB05B6477EED}\Instance\InitPropertyBag,ResourceID,0x64
  Regwrite,HKLM,0x4,PE-Software\Classes\CLSID\{BB06C0E4-D293-4f75-8A90-CB05B6477EED}\ShellFolder,Attributes,-1610612736
  Regwrite,HKLM,0x1,PE-Software\Classes\CLSID\{BB06C0E4-D293-4f75-8A90-CB05B6477EED}\ShellFolder,WantsParseDisplayName,
  Regwrite,HKLM,0x1,PE-Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{BB06C0E4-D293-4f75-8A90-CB05B6477EED},,System
  If,ExistRegKey,HKLM,PE-Software\Classes\CLSID\{BB06C0E4-D293-4f75-8A90-CB05B6477EEE},then,RegDelete,HKLM,PE-Software\Classes\CLSID\{BB06C0E4-D293-4f75-8A90-CB05B6477EEE}
  If,ExistRegKey,HKLM,PE-SOFTWARE\Classes\WOW6432Node\CLSID\{BB06C0E4-D293-4f75-8A90-CB05B6477EEE},then,RegDelete,HKLM,PE-SOFTWARE\Classes\WOW6432Node\CLSID\{BB06C0E4-D293-4f75-8A90-CB05B6477EEE}
end

if,%StateRep%,=,1,then
  RegWrite,HKLM,0x1,PE-SYSTEM\ControlSet001\Services\StateRepository,DisplayName,@%SystemRoot%\system32\windows.staterepository.dll#$c-1
  RegWrite,HKLM,0x4,PE-SYSTEM\ControlSet001\Services\StateRepository,ErrorControl,1
  RegWrite,HKLM,0x2,PE-SYSTEM\ControlSet001\Services\StateRepository,ImagePath,%SystemRoot%\system32\svchost.exe -k appmodel
  RegWrite,HKLM,0x4,PE-SYSTEM\ControlSet001\Services\StateRepository,Start,3
  RegWrite,HKLM,0x4,PE-SYSTEM\ControlSet001\Services\StateRepository,Type,32
  RegWrite,HKLM,0x1,PE-SYSTEM\ControlSet001\Services\StateRepository,Description,@%SystemRoot%\system32\windows.staterepository.dll#$c-2
  RegWrite,HKLM,0x7,PE-SYSTEM\ControlSet001\Services\StateRepository,DependOnService,rpcss
  RegWrite,HKLM,0x1,PE-SYSTEM\ControlSet001\Services\StateRepository,ObjectName,LocalSystem
  RegWrite,HKLM,0x4,PE-SYSTEM\ControlSet001\Services\StateRepository,ServiceSidType,1
  RegWrite,HKLM,0x7,PE-SYSTEM\ControlSet001\Services\StateRepository,RequiredPrivileges,SeTcbPrivilege#$xSeIncreaseBasePriorityPrivilege#$xSeCreatePermanentPrivilege#$xSeSecurityPrivilege#$xSeChangeNotifyPrivilege#$xSeImpersonatePrivilege#$xSeCreateGlobalPrivilege#$xSeAssignPrimaryTokenPrivilege#$xSeRestorePrivilege#$xSeTakeOwnershipPrivilege#$xSeBackupPrivilege
  RegWrite,HKLM,0x3,PE-SYSTEM\ControlSet001\Services\StateRepository,FailureActions,84,03,00,00,00,00,00,00,00,00,00,00,03,00,00,00,14,00,00,00,01,00,00,00,c0,d4,01,00,01,00,00,00,e0,93,04,00,00,00,00,00,00,00,00,00
  RegWrite,HKLM,0x2,PE-SYSTEM\ControlSet001\Services\StateRepository\parameters,ServiceDll,%SystemRoot%\system32\windows.staterepository.dll
  RegWrite,HKLM,0x4,PE-SYSTEM\ControlSet001\Services\StateRepository\parameters,ServiceDllUnloadOnStop,0
  RegWrite,HKLM,0x3,PE-SYSTEM\ControlSet001\Services\StateRepository\Security,Security,01,00,14,80,cc,00,00,00,ec,00,00,00,14,00,00,00,30,00,00,00,02,\\
  00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,00,00,02,00,9c,00,06,00,00,00,00,00,28,00,ff,01,0f,00,01,06,00,00,00,00,00,\\
  05,50,00,00,00,b5,89,fb,38,19,84,c2,cb,5c,6c,23,6d,57,00,77,6e,c0,02,64,87,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,05,12,00,00,00,00,00,18,00,fd,\\
  01,02,00,01,02,00,00,00,00,00,05,20,00,00,00,20,02,00,00,00,00,14,00,9d,01,02,00,01,01,00,00,00,00,00,05,04,00,00,00,00,00,14,00,9d,01,02,00,01,01,00,\\
  00,00,00,00,05,06,00,00,00,00,00,18,00,14,00,00,00,01,02,00,00,00,00,00,0f,02,00,00,00,01,00,00,00,01,06,00,00,00,00,00,05,50,00,00,00,b5,89,fb,38,19,\\
  84,c2,cb,5c,6c,23,6d,57,00,77,6e,c0,02,64,87,01,06,00,00,00,00,00,05,50,00,00,00,b5,89,fb,38,19,84,c2,cb,5c,6c,23,6d,57,00,77,6e,c0,02,64,87
end
if,%WIM_BUILD%,=>,22621,then,Regwrite,HKLM,0x2,PE-SYSTEM\ControlSet001\Services\ProfSvc,ImagePath,#$pSystemRoot#$p\system32\svchost.exe -k UserProfileService -p

if,%WIM_BUILD%.%WIM_SPBUILD%,=>,22621.2792,then
  RegWrite,HKLM,0x4,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,StartMenuInit,13
  Regwrite,HKLM,0x4,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,SeparateProcess,0
  if,%WIM_BUILD%,<,26000,then
    System,Patch,%target_sys%\shell32.dll,RB,e85615baff84c00f84c00000004883,e85615baff30c00f84c00000004883
    System,Patch,%target_sys%\shell32.dll,RB,c62800e8f44cbaff84c00f842001000048,c62800e8f44cbaff30c00f842001000048
    System,Patch,%target_sys%\shell32.dll,RB,2800e8a85abaff84c0740b41bc05400080,2800e8a85abaff30c0740b41bc05400080
    System,Patch,%target_sys%\shell32.dll,RB,2800e88557baff84c0741a488d4dd0e8,2800e88557baff30c0741a488d4dd0e8
  End  
End

RegWrite,HKLM,0x2,PE-Software\Classes\DesktopBackground\Shell\Display\Command,"","PEInit.exe -DisplayGui"
if,ExistRegKey,HKLM,PE-Software\Classes\DesktopBackground\Shell\Display\Command,DelegateExecute,Then,Regdelete,HKLM,PE-Software\Classes\DesktopBackground\Shell\Display\Command,DelegateExecute
RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\CLSID\{C555438B-3C23-4769-A71F-B6D3D9B6053A}\Shell\Open\Command,,"PEInit.exe -DisplayGui"

// Admin Account
//IniWrite,%Target_sys%\PEinit.ini,init,09,Wait|3000

Interface,GetIndex,,pScrollBox1,%Idx%
if,%Idx%,=,1,then
  Set,%PEMode%,PE,Permanent
  IniWrite,%Target_sys%\PEinit.ini,init,15,Shell|explorer.exe||5
//IniWrite,%Target_sys%\PEinit.ini,init,15,Shell|cmd.exe||5
End
if,%Idx%,=,2,then
  Set,%PEMode%,AD,Permanent
  IniWrite,%Target_sys%\PEinit.ini,init,15,Call|InitAdmin
End
if,%Idx%,=,3,then
  Set,%PEMode%,AD,Permanent
  Retrieve,%tmsg1%,ResStr,%boot_sys%\%Distlang%\bootux.dll.mui,,1636
  Retrieve,%tmsg2%,ResStr,%boot_sys%\%Distlang%\shell32.dll.mui,,37417
  IniWrite,%Target_sys%\PEinit.ini,init,15,Message|%tmsg1%:|%tmsg2% ?|8000|InitAdmin|initSystem
End

If,%PEMode%,=,AD,Then

  For,%x%,1,12
    if,ExistFile,%Install_sys%\tsdiscon.exe,Then,Exitloop
    Wim,Extract,MuiFile,%Installwim%,%x%,Windows\system32\tsdiscon.exe,%DistLang%:%FallBack%,%InstallSRC%
  Next
  if,not,ExistFile,%Install_sys%\tsdiscon.exe,Then,Message,'tsdiscon.exe' not found#$c need Education#$c Professional or Enterprise edition,Halt|Switch to Admin

  SetReqFile,%Install_sys%,%Distlang%,%FallBack%,%target_sys%
  ReqFile,AuthExt.dll,1
  ReqFile,FontGlyphAnimator.dll
  ReqFile,LogonUI.exe
  ReqFile,secedit.exe,1
  ReqFile,seclogon.dll,1
  ReqFile,shacct.dll
  ReqFile,threadpoolwinrt.dll,1
  ReqFile,tsdiscon.exe,1
  ReqFile,whoami.exe,1
  ReqFile,Windows.Globalization.Fontgroups.dll
  ReqFile,Windows.UI.Logon.dll,2
  ReqFile,Windows.UI.Xaml.dll,1
  ReqFile,AccessibilityCPL.dll,2
  ReqFile,Windows.System.Launcher.dll,1
  ReqFile,certca.dll,1
  ReqFile,CredProvDataModel.dll
  ReqFile,LogonController.dll,1

  If,%WIM_BUILD%,=>,14393,Then
    ReqFile,Windows.UI.XamlHost.dll
    ReqFile,resourcepolicyclient.dll
  End

  If,%WIM_BUILD%,=,15063,Then
    ReqFile,usermgr.dll
    ReqFile,UserMgrProxy.dll
  End

  If,%WIM_BUILD%,>,15063,Then,ReqFile,CredProv2faHelper.dll,1
  
  If,%WIM_BUILD%,>,17700,Then
   ReqFile,Windows.UI.Xaml.Controls.dll,1
   ReqFile,Windows.ApplicationModel.dll,1
  End
  If,%WIM_BUILD%.%WIM_SPBUILD%,<=,19041.264,Then,CopyFile,imageres.dll,2

  If,%WIM_BUILD%,>,20000,Then,ReqFile,CredProvCommonCore.dll
 
  Set,%ResFiles%,*
  If,%WIM_BUILD%,=,16299,Then,Set,%ResFiles%,
  If,%WIM_BUILD%,>,17000,Then,Set,%ResFiles%,.rs4
  If,%WIM_BUILD%,>,17700,Then,Set,%ResFiles%,.rs5
  If,%WIM_BUILD%,>,18300,Then,Set,%ResFiles%,.19h1
  If,%WIM_BUILD%,>,18500,Then,Set,%ResFiles%,*
  Filecopy,%Install_sys%\Windows.UI.Xaml.Resources%ResFiles%.dll,%target_sys%\

  Dircopy,%Install_win%\SystemResources\Windows.UI.Logon\,%Target_Win%\SystemResources\Windows.UI.Logon\
  Filecopy,%scriptdir%\Explorer\UsrClass.dat,%TargetDir%\Users\Default\AppData\Local\Microsoft\Windows\

  Wim,Extract,File,%Install_sys%\Recovery\Winre.wim,1,Windows\system32\Catroot\,%TargetDir%
  Wim,Extract,File,%Install_sys%\Recovery\Winre.wim,1,Windows\system32\DriverStore\FileRepository\Basic*,%TargetDir%

  // Cursor
  RegWrite,HKLM,0x4,PE-Software\Microsoft\Windows\CurrentVersion\Policies\System,EnableCursorSuppression,0
  RegWrite,HKLM,0x4,PE-Software\Microsoft\Windows\CurrentVersion\Policies\System,EnableLUA,0
  RegWrite,HKLM,0x4,PE-System\ControlSet001\Services\gpsvc,Start,3
  RegWrite,HKLM,0x4,PE-System\ControlSet001\Services\TrustedInstaller,Start,3
  Regwrite,HKLM,0x4,PE-Software\Microsoft\Windows\CurrentVersion\Policies\System,DelayedDesktopSwitchTimeout,0
  //- Disable Acrylic Blur Effect Lock Screen
  RegWrite,HKLM,0x4,PE-Software\Policies\Microsoft\Windows\System,DisableAcrylicBackgroundOnLogon,1
  if,%WIM_BUILD%,=>,22621,then
    RegLoad,%Install_Sys%\config\system,Ins-SYSTEM
    ShellExecute,hide,%WindowsDir%\System32\reg.exe,Copy HKLM\Ins-System\ControlSet001\Services\TextInputManagementService HKLM\PE-System\ControlSet001\Services\TextInputManagementService /s /f
    RegUnLoad,Ins-SYSTEM
  End
  // PEinit
  IniWrite,%Target_sys%\PEinit.ini,initSystem,15,Shell|Explorer.exe||5
  // IniWrite,%Target_sys%\PEinit.ini,initAdmin,4,Text|1|Start Admin
  IniWrite,%Target_sys%\PEinit.ini,initAdmin,5,filecopy|x:\Windows\System32\config\default|X:\Users\Default\NTUSER.DAT
  IniWrite,%Target_sys%\PEinit.ini,initAdmin,6,RegWrite|HKLM|0x1|SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon|AutoAdminLogon|1
  GetDistLang,%DistTmp%,%Install_sys%\certca.dll,%Distlang%:%FallBack%,1
  Retrieve,%Var%,ResStr,%Install_sys%\%DistTmp%\certca.dll.mui,,904
  IniWrite,%Target_sys%\PEinit.ini,initAdmin,7,RegWrite|HKLM|0x1|SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon|DefaultUserName|%var%
  IniWrite,%Target_sys%\PEinit.ini,initAdmin,8,RegWrite|HKLM|0x1|SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon|DefaultPassword|
  IniWrite,%Target_sys%\PEinit.ini,initAdmin,9,RegWrite|HKLM|0x1|SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon|Userinit|userinit.exe,Peinit.exe -StartAdmin
  IniWrite,%Target_sys%\PEinit.ini,initAdmin,10,RegWrite|HKLM|0x1|SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList|Guest|0
  IniWrite,%Target_sys%\PEinit.ini,initAdmin,11,RegWrite|HKLM|0x1|SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon|EnableSIHostIntegration|0
  IniWrite,%Target_sys%\PEinit.ini,initAdmin,12,Runwait|Hide|X:\Windows\System32\secedit.exe|/configure /db %WinDir%\security\database\unattend.sdb /cfg %WinDir%\security\templates\unattend.inf /log %WinDir%\security\logs\unattend.log
  IniWrite,%Target_sys%\PEinit.ini,initAdmin,13,StartService|seclogon
  //IniWrite,%Target_sys%\PEinit.ini,initAdmin,15,Wait|3000
  IniWrite,%Target_sys%\PEinit.ini,initAdmin,15,Shell|%WinDir%\System32\tsdiscon.exe||9

  IniWrite,%Target_sys%\PEinit.ini,StartAdmin,15,Shell|Explorer.exe||5
End

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

DirMake,%Targetdir%\Users\Default\Pin
IniWrite,%Target_sys%\PEinit.ini,Startup,12,Pin|x:\Users\Default\Pin

System,Patch,%Target_sys%\%DistLang%\Shell32.dll.mui,Res1,5,13120


//HKEY_LOCAL_MACHINE\PE-SOFTWARE\Microsoft\Active Setup\Installed Components\{89820200-ECBD-11cf-8B85-00AA005B4383}



[pdummy1]
update,Interfacevar
if,%pdummy1%,=,1,then
 // interface,setpos,pframe3,296
  interface,Set,,pTextBox1,8A5F28
end

if,%pdummy1%,=,2,then
//interface,setpos,pframe3,337
interface,Set,,pTextBox1,9A3801
end

if,%pdummy1%,=,3,then
//interface,setpos,,pframe3,377
interface,Set,,pTextBox1,615700
end

if,%pdummy1%,=,4,then
//interface,setpos,pframe3,417
interface,Set,,pTextBox1,F5E1D0
end
//message,%pdummy1%

[Script-Pic]
0=3196,4084,ZLB64
1=eNqlz2k4FOwaB/AZY4u8hZAlSyoa68ieSJrJ0hhbskteW0L2nYaMsg3GOqEke2OyzEQxKgyNLI1lGCZLUgzZd3G873XO+XK+nOuc//3lfq7/h/v3HI4cTgJOGsOMYADg0dw5GsDhAUDiJlT/uqSVm6unr999Pw8vt0BJI19XRUlriKIyBHA4BjAAsPyfObqixRXl6RLwp6vfg/AoFWUIRAmioqSsLgnR0IZoaitrcVm5BQYpmBlwXYdaQ28izBSUoSr6mjBVwGE78AUAAGQD/h3APwNkAbGysXNwHuPiBgJAwH/lP8qTABYgCMTCCmJjY2U9aqKPOgArLxufFESfnd/cheOs/ykVZEYxp/S12g8CFl+Wz126GxB3jEtQ6LSwyPkLMrIXwapq6hqaWtoG16GwG4ZGxpZWt6xv29jauf7p5u7h6XUvMCg4JDQsPCL+UQIq8fGTpExMVnZObl4+9kXJy9Ky8orKqrr6BgLxTWPT249t7R3kzq5PFOrA4NAwbWSUPjX9beb77I+fc/Mrq2vrG5tb2zu7vEdkFlZWECvHX2QgS+hf/+FlZZOCsPPpm3O4+POfVUFynrqWUVz74Zj0JYtlgbsBX7gEz6lOnV/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