[Main]
Title=Explorer Shell
Description=Desktop and Startmenu as is well known from Windows
Selected=True
Level=2
Author=ChrisR, Kare
Version=14.4
Date=02.09.2025
Sizex86=|77554783:0:0
Sizex64=|90712863:0:0
Disable=Shells\2-OwnShell.srt

[Interface]
Panel=1
pframe1=Settings,707070,0,0,15,25,450,120

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


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

//----Echo
tEcho_1=create folder...
tEcho_2=copy files...
tEcho_3=Systemfiles from 'System32' copy...
tEcho_4=write Registry-settings...
//----Information
pframe2=Computer Shortcut,707070,0,0,15,160,300,100
pcheckbox7=False,Computer on Desktop,0,0,25,185,140,18
pcheckbox8=False,Computer on Startmenu,0,0,25,215,130,18


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

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


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

//----Echo
tEcho_1=Verzeichnisse werden erstellt...
tEcho_2=Dateien werden kopiert...
tEcho_3=Systemdateien aus 'System32' werden kopiert...
tEcho_4=Registry-Einstellungen werden geschrieben...
//----Information

pframe2=Computer Shortcut,707070,0,0,15,160,300,100
pcheckbox7=True,Computer auf Desktop,0,0,25,185,140,18
pcheckbox8=True,Computer im Startmenü,0,0,25,215,130,18

[Process]

if,%os%,=,Win8,then,IniWrite,%Target_sys%\PEinit.ini,init,15,Shell|explorer.exe||1

if,%os%%pemode%,=,Win81PE,then
	filedelete,%target_sys%\winpeshl.ini,1
	IniWriteSection,%target_sys%\winpeshl.ini,LaunchApps,#$qx:\windows\system32\wpeinit.exe#$q

	DirCopy,%ScriptDir%\explorer\PE\%arch%\,%Target_sys%\
	IniWrite,%Target_sys%\PEinit.ini,init,05,Runwait||x:\windows\system32\winpeshl.exe
	IniWrite,%Target_sys%\PEinit.ini,init,06,filedelete|x:\windows\system32\windows.immersiveshell.serviceprovider.dll
	IniWrite,%Target_sys%\PEinit.ini,init,15,Shell|explorer.exe||4
	IniWrite,%Target_sys%\PEinit.ini,Main,RunOnce,1
//	IniWrite,%Target_sys%\PEinit.ini,init,08,Wait|2000
//	IniWrite,%Target_sys%\PEinit.ini,init,10,Runwait||x:\windows\system32\RunOncePE.exe
	IniWrite,%Target_sys%\PEinit.ini,StartUp,04,Runwait||x:\windows\system32\WinT.exe
	IniWrite,%Target_sys%\PEinit.ini,Main,RefreshDeskIcon,1
//	IniWrite,%Target_sys%\PEinit.ini,StartUp,05,Runwait||x:\windows\system32\RefreshF5.exe
end
if,%os%%pemode%,=,Win81OS,then,IniDeleteSection,%Target_sys%\PEinit.ini,init,15

Retrieve,%Var%,ResStr,%Boot_sys%\winlogon.exe,,1008
IniWrite,%Target_sys%\PEinit.ini,Main,StartText,%var%

Echo,%tEcho_1%
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%
If,Not,ExistDir,%TargetDir%\Program Files\Internet Explorer,then,DirMake,%TargetDir%\Program Files\Internet Explorer
SetReqFile,%InstallSRC%,%Distlang%,%FallBack%,%TargetDir%
Copyfile,Program Files\Internet Explorer\ieshims.dll
Copyfile,Program Files\Internet Explorer\ieproxy.dll
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
Copyfile,Windows\Branding\Basebrd\%DistLang%\basebrd.dll.mui
Copyfile,Windows\Branding\ShellBrd\shellbrd.dll

Echo,%tEcho_3%

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

SetReqFile,%Install_sys%,%Distlang%,%FallBack%,%target_sys%
ReqFile,actxprxy.dll
ReqFile,apphelp.dll,1
ReqFile,query.dll
ReqFile,rshx32.dll,1
ReqFile,shsvcs.dll,1
ReqFile,explorerFrame.dll,1
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
ReqFile,chartv.dll,1
ReqFile,shdocvw.dll,1
ReqFile,shfolder.dll
ReqFile,UIRibbon.dll,1
ReqFile,UIRibbonRes.dll
ReqFile,UIAnimation.dll

ReqFile,control.exe
ReqFile,thumbcache.dll,1
ReqFile,networkexplorer.dll,1
ReqFile,ieframe.dll,1
// shutdown !!!
ReqFile,shutdown.exe,1
ReqFile,appwiz.cpl,1
ReqFile,bthprops.cpl,1
ReqFile,desk.cpl,1
ReqFile,Display.dll,1
ReqFile,deskadp.dll,1
ReqFile,deskmon.dll,1
If,%Arch%,=,x86,then,ReqFile,FlashPlayerCPLApp.cpl
ReqFile,hdwwiz.cpl
//- For  Regional and Language Options intl.cpl and BCP47Langs.dll
ReqFile,intl.cpl,1

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

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

If,%Arch%,=,x64,then
  SetReqFile,%Install_wow%,%Distlang%,%FallBack%,%target_wow%
  ReqFile,olecli32.dll,1
end


if,%os%,=,Win8,then

	// Patch Explorer.exe
	ShellExecute,Hide,%Tools%\%HostArch%\xdelta3-3.0.6.exe,-d -f -q -s #$q%Install_Win%\explorer.exe#$q #$q%ScriptDir%\Explorer\%Arch%_RTM_2_17514.xdelta#$q #$q%Target_Win%\explorer.exe#$q
	If,Not,%ExitCode%,=,0,Then,Halt,%THalt09% Explorer.exe.

	// Ex7forWin8 Check for other language (other = 0, not 1 !!)
	String,%OtherLang%,Find,de-DEnl-NLen-US,%DistLang%
	If,%OtherLang%,=,0,Then
	    If,ExistFile,%ScriptDir%\Explorer\Ex7Mui_%Arch%\explorer.exe.mui,Then
	        FileCopy,%ScriptDir%\Explorer\Ex7Mui_%Arch%\explorer.exe.mui,%Target_Win%\%DistLang%\explorer.exe.mui
	    Else
	        // Create explorer.exe.mui en-US out of explorer.exe
	        If,Not,ExistDir,%Target_Win%\en-US,then,DirMake,%Target_Win%\en-US
		ShellExecute,Hide,%Tools%\%HostArch%\xdelta3-3.0.6.exe,-d -f -q -s #$q%Install_Win%\explorer.exe#$q #$q%ScriptDir%\Explorer\%Arch%_Win7Sp1-Other.xdelta#$q #$q%Target_Win%\en-us\explorer.exe.mui#$q
	        If,Not,%ExitCode%,=,0,Then,Halt,%THalt09% Explorer.exe.
 	    End
	Else
		// Patch Explorer.exe.mui
		ShellExecute,Hide,%Tools%\%HostArch%\xdelta3-3.0.6.exe,-d -f -q -s #$q%Install_Win%\%DistLang%\explorer.exe.mui#$q #$q%ScriptDir%\Explorer\%Arch%_Win7Sp1-%DistLang%.xdelta#$q #$q%Target_Win%\%DistLang%\explorer.exe.mui#$q
		If,Not,%ExitCode%,=,0,Then,Halt,%THalt09% Explorer.exe.mui.
	End

	if,%Arch%,=,x86,then
		FileCopy,%ScriptDir%\explorer\wrp32.dll,%TargetDir%\Windows
	else
		FileCopy,%ScriptDir%\explorer\wrp64.dll,%TargetDir%\Windows
	end

	RegLoad,%RegSoftware%,PE-SOFTWARE

	RegWrite,HKLM,0x1,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
	RegUnLoad,PE-SOFTWARE

end

if,%os%,=,Win81,then
	
	SetReqFile,%Install_win%,%Distlang%,%FallBack%,%Target_Win%
	ReqFile,explorer.exe,1

	SetReqFile,%boot_sys%,%Distlang%,%FallBack%,%target_sys%
	ReqFile,kernel.appcore.dll
	ReqFile,workerdd.dll
	ReqFile,dwrite.dll,1

	SetReqFile,%Install_sys%,%Distlang%,%FallBack%,%target_sys%
	ReqFile,appwiz.cpl,1
	ReqFile,bi.dll
	ReqFile,bisrv.dll,1
	ReqFile,biwinrt.dll
	ReqFile,d3d10warp.dll
	ReqFile,d3d11.dll
	ReqFile,dcomp.dll,1
	ReqFile,dxgi.dll
	ReqFile,globcollationhost.dll,1
	ReqFile,globinputhost.dll,1
	ReqFile,iconcodecservice.dll
	ReqFile,idstore.dll,1
	ReqFile,mmdevapi.dll,1
	ReqFile,mycomput.dll,1
	ReqFile,osbaseln.dll,1
	ReqFile,photometadatahandler.dll
	ReqFile,psmsrv.dll,1
	ReqFile,sendmail.dll,1
	ReqFile,settingsynccore.dll,1
	ReqFile,settingsyncpolicy.dll
	ReqFile,shacct.dll
	ReqFile,shgina.dll,1
	ReqFile,twinapi.appcore.dll,1
	ReqFile,twinapi.dll,1
	ReqFile,twinui.appcore.dll,1
	ReqFile,windows.immersiveshell.serviceprovider.dll
	ReqFile,winlangdb.dll,1
	ReqFile,windowscodecsext.dll
	ReqFile,windows.globalization.dll,1
	ReqFile,windows.globalization.fontgroups.dll,1
	ReqFile,windows.graphics.dll,1
	ReqFile,windows.networking.connectivity.dll
	ReqFile,windows.networking.dll,1
	ReqFile,windows.networking.hostname.dll
	ReqFile,windows.ui.dll,1
	ReqFile,wlidprov.dll,1
	ReqFile,wpnapps.dll,1
	ReqFile,wpncore.dll,1
	ReqFile,wpninprc.dll,1
	ReqFile,wpnprv.dll,1

	DirMake,%TargetDir%\ProgramData\Microsoft\User Account Pictures
	Filecopy,%InstallSrc%\ProgramData\Microsoft\User Account Pictures\user.bmp,%TargetDir%\ProgramData\Microsoft\User Account Pictures\user.bmp
end

Echo,%tEcho_4%

RegLoad,%RegSystem%,PE-SYSTEM
RegLoad,%RegSoftware%,PE-SOFTWARE
RegLoad,%RegUser%,PE-USER
if,%os%%pemode%,=,win81os,then,RegLoad,%target_sys%\config\default,PE-DEFAULT

System,FileRedirect,Off
ShellExecute,Hide,%WindowsDir%\regedit.exe, /s #$q%ScriptDir%\Explorer\ProductOptions_%os%.reg#$q
If,Not,%ExitCode%,=,0,Then,Halt,Error importing ProductOptions.reg....
if,%os%,=,Win8,then
	ShellExecute,Hide,%WindowsDir%\system32\reg.exe, import #$q%ScriptDir%\Explorer\Expl_Win8_%Arch%.reg#$q
	If,Not,%ExitCode%,=,0,Then,Halt,Error importing Explorer_%Arch%.reg....
	ShellExecute,Hide,%WindowsDir%\system32\reg.exe, import #$q%ScriptDir%\Explorer\Expl Pol_Win8_%Arch%.reg#$q
	If,Not,%ExitCode%,=,0,Then,Halt,Error importing Explorer_%Arch%.reg....
	ShellExecute,Hide,%WindowsDir%\system32\reg.exe, import #$q%ScriptDir%\Explorer\Winlogon_Win8.reg#$q
	If,Not,%ExitCode%,=,0,Then,Halt,Error importing WinLogon.reg....
end
System,FileRedirect,On

// Add Run to My Computer
RegWrite,HKLM,0x0,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{2559A1F3-21D7-11D4-BDAF-00C04F60B9F0}

// 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,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,ServerAdminUI,0
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,ShowCompColor,1
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,DontPrettyPath,0
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,ShowInfoTip,1
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,HideIcons,0
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,MapNetDrvBtn,0
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,WebView,1
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,Filter,0
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,AutoCheckSelect,0
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,IconsOnly,0
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,ShowTypeOverlay,1
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,ShowStatusBar,1
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,StartMenuInit,4
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,Start_ShowMyGames,0
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,Start_ShowRun,1
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,Start_MinMFU,8
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,Start_JumpListItems,8
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,Start_AdminToolsRoot,0
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,StartMenuAdminTools,0
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,Start_PowerButtonAction,2
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,Start_ShowHelp,0
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,Start_ShowMyDocs,0
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,Start_ShowUser,0
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,Start_ShowMyPics,0
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,Start_ShowMyMusic,0
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,Start_ShowPrinters,0
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,Start_ShowRecentDocs,0
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,StartMenuFavorites,1
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,Start_ShowSetProgramAccessAndDefaults,0
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,Start_ShowNetConn,0
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,Start_ShowNetPlaces,1
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,DisablePreviewDesktop,0
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,Start_TrackDocs,0
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,AlwaysShowMenus,1
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,NavPaneShowAllFolders,1
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,ListviewShadow,1
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,Start_PowerButtonAction,2

// Control Panel applet
RegWrite,HKLM,0x4,"PE-Software\Microsoft\Windows\CurrentVersion\Control Panel\Cpls\desk.cpl",RunLevel,0
RegWrite,HKLM,0x4,"PE-Software\Microsoft\Windows\CurrentVersion\Control Panel\Cpls\inetcpl.cpl",RunLevel,0
RegWrite,HKLM,0x4,"PE-Software\Microsoft\Windows\CurrentVersion\Control Panel\Cpls\intl.cpl",RunLevel,0
RegWrite,HKLM,0x4,"PE-Software\Microsoft\Windows\CurrentVersion\Control Panel\Cpls\joy.cpl",RunLevel,0
RegWrite,HKLM,0x4,"PE-Software\Microsoft\Windows\CurrentVersion\Control Panel\Cpls\ncpa.cpl",RunLevel,0
RegWrite,HKLM,0x4,"PE-Software\Microsoft\Windows\CurrentVersion\Control Panel\Cpls\powercfg.cpl",RunLevel,0
RegWrite,HKLM,0x4,"PE-Software\Microsoft\Windows\CurrentVersion\Control Panel\Cpls\sysdm.cpl",RunLevel,2
RegWrite,HKLM,0x4,"PE-Software\Microsoft\Windows\CurrentVersion\Control Panel\Cpls\systemcpl.dll",RunLevel,0
RegWrite,HKLM,0x4,"PE-Software\Microsoft\Windows\CurrentVersion\Control Panel\Cpls\tabletpc.cpl",RunLevel,0
RegWrite,HKLM,0x4,"PE-Software\Microsoft\Windows\CurrentVersion\Control Panel\Cpls\timedate.cpl",RunLevel,0
//
RegWrite,HKLM,0x1,"PE-Software\Microsoft\Windows\CurrentVersion\Control Panel\don't load",appwiz.cpl,
RegWrite,HKLM,0x1,"PE-Software\Microsoft\Windows\CurrentVersion\Control Panel\don't load",bthprops.cpl,
RegWrite,HKLM,0x1,"PE-Software\Microsoft\Windows\CurrentVersion\Control Panel\don't load",desk.cpl,
RegWrite,HKLM,0x1,"PE-Software\Microsoft\Windows\CurrentVersion\Control Panel\don't load",Firewall.cpl,
RegWrite,HKLM,0x1,"PE-Software\Microsoft\Windows\CurrentVersion\Control Panel\don't load",hdwwiz.cpl,
RegWrite,HKLM,0x1,"PE-Software\Microsoft\Windows\CurrentVersion\Control Panel\don't load",inetcpl.cpl,
RegWrite,HKLM,0x1,"PE-Software\Microsoft\Windows\CurrentVersion\Control Panel\don't load",intl.cpl,
RegWrite,HKLM,0x1,"PE-Software\Microsoft\Windows\CurrentVersion\Control Panel\don't load",irprops.cpl,
RegWrite,HKLM,0x1,"PE-Software\Microsoft\Windows\CurrentVersion\Control Panel\don't load",joy.cpl,
RegWrite,HKLM,0x1,"PE-Software\Microsoft\Windows\CurrentVersion\Control Panel\don't load",main.cpl,
RegWrite,HKLM,0x1,"PE-Software\Microsoft\Windows\CurrentVersion\Control Panel\don't load",mmsys.cpl,
RegWrite,HKLM,0x1,"PE-Software\Microsoft\Windows\CurrentVersion\Control Panel\don't load",ncpa.cpl,
RegWrite,HKLM,0x1,"PE-Software\Microsoft\Windows\CurrentVersion\Control Panel\don't load",powercfg.cpl,
RegWrite,HKLM,0x1,"PE-Software\Microsoft\Windows\CurrentVersion\Control Panel\don't load",sysdm.cpl,
RegWrite,HKLM,0x1,"PE-Software\Microsoft\Windows\CurrentVersion\Control Panel\don't load",tabletpc.cpl,
RegWrite,HKLM,0x1,"PE-Software\Microsoft\Windows\CurrentVersion\Control Panel\don't load",telephon.cpl,
RegWrite,HKLM,0x1,"PE-Software\Microsoft\Windows\CurrentVersion\Control Panel\don't load",timedate.cpl,


//- 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

//- Always combine, hide labels
//If,%pCheckBox2%,=,false,then,RegWrite,HKLM,0x4,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,TaskbarGlomLevel,0
//- Combine when taskbar is full
//If,%pCheckBox2%,=,1,then,RegWrite,HKLM,0x4,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,TaskbarGlomLevel,1
//- Never combine
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 icons on desktop
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
If,%pcheckbox8%,=,True,Then
	RegWrite,HKLM,0x1,PE-User\Software\IvoSoft\ClassicStartMenu\Settings,Computer,show
Else
	RegWrite,HKLM,0x1,PE-User\Software\IvoSoft\ClassicStartMenu\Settings,Computer,Hide
End


// Network
//If,%pcheckbox2%,=,True,Then
//    RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu,{F02C1A0D-BE21-4350-88B0-7367FC96EF3C},0
//    RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel,{F02C1A0D-BE21-4350-88B0-7367FC96EF3C},0
//Else
//    RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu,{F02C1A0D-BE21-4350-88B0-7367FC96EF3C},1
//    RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel,{F02C1A0D-BE21-4350-88B0-7367FC96EF3C},1
//End
// Recycle Bin
//If,%pcheckbox6%,=,True,Then
//    RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoRecycleFiles,0
//    RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu,{645FF040-5081-101B-9F08-00AA002F954E},0
//    RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel,{645FF040-5081-101B-9F08-00AA002F954E},0
//Else
    RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoRecycleFiles,1
    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
//End

//_____/Desktop Settings\_____
// Horizontal IconSpacing: Standard
RegWrite,HKLM,0x1,PE-USER\Control Panel\Desktop\WindowMetrics,IconSpacing,-1710


// Confirm Deletion
//If,%CheckBox15%,=,True,then
	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
//Else
//	RegWrite,HKLM,0x3,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer,ShellState,24,00,00,00,37,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
//end


//If,%pcheckbox18%,=,True,Then,Add_ShortCut,Desktop,              ,X:\Windows\explorer.exe,Explorer,X:\

// Automatically expand to current folder, ...
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,NavPaneExpandToCurrentFolder,1

// Show all tray icons
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer,EnableAutoTray,0


//_____/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


Run,%Scriptfile%,Reg%os%

RegUnLoad,PE-SYSTEM
RegUnLoad,PE-SOFTWARE
RegUnLoad,PE-USER
RegUnLoad,PE-DEFAULT

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

[RegWin8]

RegWrite,HKLM,0x1,PE-Software\RegisteredApplications,"File Explorer",SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Capabilities

//- Default Config win8pese
RegWrite,HKLM,0x7,PE-System\ControlSet001\Control\ProductOptions,ProductSuite,"Terminal Server"



//- Add Administrative Tools to My Computer
//If,%pCheckBox115%,Equal,True,If,ExistDir,"%TargetDir%\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools",Begin
//RegWrite,HKLM,0x0,Tmp_Software\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace
//RegWrite,HKLM,0x0,Tmp_Software\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{D20EA4E1-3957-11D2-A40B-0C5020524153}
//End
//- Show Menu bar in explorer
RegWrite,HKLM,0x4,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,AlwaysShowMenus,1
// Show all folders
RegWrite,HKLM,0x4,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,NavPaneShowAllFolders,1

//- Open the ribbon by default
//If,%CheckBox_Ribbon%,=,True,then,
RegWrite,HKLM,0x3,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\Ribbon,QatItems,3c,73,69,71,3a,63,75,\\
73,74,6f,6d,55,49,20,78,6d,6c,6e,73,3a,73,69,71,3d,22,68,74,74,70,3a,2f,2f,73,63,68,65,6d,61,73,2e,6d,69,63,72,6f,73,6f,66,74,2e,63,6f,6d,2f,77,69,6e,64,\\
6f,77,73,2f,32,30,30,39,2f,72,69,62,62,6f,6e,2f,71,61,74,22,3e,3c,73,69,71,3a,72,69,62,62,6f,6e,20,6d,69,6e,69,6d,69,7a,65,64,3d,22,66,61,6c,73,65,22,3e,\\
3c,73,69,71,3a,71,61,74,20,70,6f,73,69,74,69,6f,6e,3d,22,30,22,3e,3c,73,69,71,3a,73,68,61,72,65,64,43,6f,6e,74,72,6f,6c,73,3e,3c,73,69,71,3a,63,6f,6e,74,\\	
72,6f,6c,20,69,64,51,3d,22,73,69,71,3a,31,36,31,32,38,22,20,76,69,73,69,62,6c,65,3d,22,66,61,6c,73,65,22,20,61,72,67,75,6d,65,6e,74,3d,22,30,22,20,2f,3e,\\
3c,73,69,71,3a,63,6f,6e,74,72,6f,6c,20,69,64,51,3d,22,73,69,71,3a,31,36,31,32,39,22,20,76,69,73,69,62,6c,65,3d,22,66,61,6c,73,65,22,20,61,72,67,75,6d,65,\\
6e,74,3d,22,30,22,20,2f,3e,3c,73,69,71,3a,63,6f,6e,74,72,6f,6c,20,69,64,51,3d,22,73,69,71,3a,31,32,33,35,32,22,20,76,69,73,69,62,6c,65,3d,22,66,61,6c,73,\\
65,22,20,61,72,67,75,6d,65,6e,74,3d,22,30,22,20,2f,3e,3c,73,69,71,3a,63,6f,6e,74,72,6f,6c,20,69,64,51,3d,22,73,69,71,3a,31,32,33,38,34,22,20,76,69,73,69,\\
62,6c,65,3d,22,74,72,75,65,22,20,61,72,67,75,6d,65,6e,74,3d,22,30,22,20,2f,3e,3c,73,69,71,3a,63,6f,6e,74,72,6f,6c,20,69,64,51,3d,22,73,69,71,3a,31,32,33,\\
33,36,22,20,76,69,73,69,62,6c,65,3d,22,74,72,75,65,22,20,61,72,67,75,6d,65,6e,74,3d,22,30,22,20,2f,3e,3c,73,69,71,3a,63,6f,6e,74,72,6f,6c,20,69,64,51,3d,\\
22,73,69,71,3a,31,32,33,35,37,22,20,76,69,73,69,62,6c,65,3d,22,66,61,6c,73,65,22,20,61,72,67,75,6d,65,6e,74,3d,22,30,22,20,2f,3e,3c,2f,73,69,71,3a,73,68,\\
61,72,65,64,43,6f,6e,74,72,6f,6c,73,3e,3c,2f,73,69,71,3a,71,61,74,3e,3c,2f,73,69,71,3a,72,69,62,62,6f,6e,3e,3c,2f,73,69,71,3a,63,75,73,74,6f,6d,55,49,3e
//-
//- Show QuickLaunch

RegWrite,HKLM,0x3,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop,TaskbarWinXP,0c,00,00,00,08,00,00,00,02,00,00,00,00,00,\\
00,00,b0,e2,2b,d8,64,57,d0,11,a9,6e,00,c0,4f,d7,05,a2,22,00,1c,00,0a,11,00,00,1a,00,00,00,01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,4c,00,00,00,01,\\
14,02,00,00,00,00,00,c0,00,00,00,00,00,00,46,81,01,00,00,10,00,00,00,17,7a,89,cc,cf,0c,c8,01,b8,40,ac,6a,e2,0c,c8,01,7f,9b,a1,ee,cf,0c,c8,01,00,00,00,00,\\
00,00,00,00,01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,35,03,14,00,1f,50,e0,4f,d0,20,ea,3a,69,10,a2,d8,08,00,2b,30,30,9d,19,00,2f,58,3a,5c,00,00,00,\\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,4e,00,31,00,00,00,00,00,39,37,23,72,10,00,57,69,6e,64,6f,77,73,00,38,00,07,00,04,00,ef,be,39,37,a5,71,39,\\
37,36,72,26,00,00,00,06,00,00,00,1f,fb,0f,fb,00,00,00,00,00,00,00,00,00,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,00,00,16,00,52,00,31,00,00,00,00,00,\\
39,37,25,72,10,00,53,79,73,74,65,6d,33,32,00,00,3a,00,07,00,04,00,ef,be,39,37,a5,71,39,37,36,72,26,00,00,00,26,00,00,00,1f,fb,0f,fb,00,00,00,00,00,00,00,\\
00,00,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,00,00,18,00,4c,00,31,00,00,00,00,00,39,37,c2,71,10,00,63,6f,6e,66,69,67,00,00,36,00,07,00,04,00,\\
ef,be,39,37,a5,71,39,37,b6,81,26,00,00,00,e4,03,00,00,1f,fb,0f,fb,00,00,00,00,00,00,00,00,00,00,63,00,6f,00,6e,00,66,00,69,00,67,00,00,00,16,00,60,00,31,\\
00,00,00,00,00,39,37,ec,71,10,00,53,59,53,54,45,4d,7e,31,73,74,65,6d,70,00,44,00,07,00,04,00,ef,be,39,37,a6,71,39,37,b6,81,26,00,00,00,49,05,00,00,1f,fb,\\
0f,fb,00,00,00,00,00,00,00,00,00,00,73,00,79,00,73,00,74,00,65,00,6d,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,00,00,00,1c,00,4e,00,31,00,00,00,00,00,39,\\
37,ec,71,10,00,41,70,70,44,61,74,61,00,38,00,07,00,04,00,ef,be,39,37,ec,71,39,37,b6,81,26,00,00,00,17,0e,00,00,1f,fb,0f,fb,00,00,00,00,00,00,00,00,00,00,\\
41,00,70,00,70,00,44,00,61,00,74,00,61,00,00,00,16,00,4e,00,31,00,00,00,00,00,39,37,23,72,10,00,52,6f,61,6d,69,6e,67,00,38,00,07,00,04,00,ef,be,39,37,ec,\\
71,39,37,13,81,26,00,00,00,19,0e,00,00,1f,fb,0f,fb,00,00,00,00,00,00,00,00,00,00,52,00,6f,00,61,00,6d,00,69,00,6e,00,67,00,00,00,16,00,58,00,31,00,00,00,\\
00,00,39,37,24,72,10,00,4d,49,43,52,4f,53,7e,31,73,74,65,6d,70,00,3c,00,07,00,04,00,ef,be,39,37,23,72,39,37,13,81,26,00,00,00,1b,0e,00,00,1f,fb,0f,fb,00,\\
00,00,00,00,00,00,00,00,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,00,00,1c,00,68,00,31,00,00,00,00,00,39,37,23,72,10,00,49,4e,54,45,52,4e,\\
7e,31,73,74,65,6d,70,00,4c,00,07,00,04,00,ef,be,39,37,23,72,39,37,13,81,26,00,00,00,1d,0e,00,00,1f,fb,0f,fb,00,00,00,00,00,00,00,00,00,00,49,00,6e,00,74,\\
00,65,00,72,00,6e,00,65,00,74,00,20,00,45,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,00,00,1c,00,5e,00,31,00,00,00,00,00,39,37,23,72,10,00,51,55,49,43,\\
4b,4c,7e,31,73,74,65,6d,70,00,42,00,07,00,04,00,ef,be,39,37,23,72,39,37,13,81,26,00,00,00,aa,10,00,00,1f,fb,0f,fb,00,00,00,00,00,00,00,00,00,00,51,00,75,\\
00,69,00,63,00,6b,00,20,00,4c,00,61,00,75,00,6e,00,63,00,68,00,00,00,1c,00,00,00,1c,00,00,00,0b,00,00,a0,21,f0,a4,52,75,7b,a9,48,9f,6b,4b,87,a2,10,bc,8f,\\
33,03,00,00,00,00,00,00,08,00,00,00,02,00,00,00,7e,02,00,00,01,00,00,00,05,00,00,00,7c,00,00,00,00,00,00,00,6e,00,32,00,4f,00,00,00,c1,34,a3,66,20,00,44,\\
45,53,4b,54,4f,7e,31,2e,53,43,46,00,00,52,00,07,00,04,00,ef,be,4c,37,20,68,4c,37,58,75,26,00,00,00,6b,17,00,00,1f,fb,0f,fb,00,00,00,00,00,00,00,00,00,00,\\
44,00,65,00,73,00,6b,00,74,00,6f,00,70,00,20,00,61,00,6e,00,7a,00,65,00,69,00,67,00,65,00,6e,00,2e,00,73,00,63,00,66,00,00,00,1c,00,00,00,00,00,00,00,8c,\\
00,00,00,02,00,00,00,7e,00,32,00,cd,01,00,00,42,37,64,b4,20,00,46,49,52,45,46,4f,7e,31,2e,4c,4e,4b,00,00,62,00,07,00,04,00,ef,be,4c,37,01,68,4c,37,58,75,\\
26,00,00,00,6c,17,00,00,1f,fb,0f,fb,00,00,00,00,00,00,00,00,00,00,46,00,69,00,72,00,65,00,46,00,6f,00,78,00,20,00,49,00,6e,00,74,00,65,00,72,00,6e,00,65,\\
00,74,00,20,00,42,00,72,00,6f,00,77,00,73,00,65,00,72,00,2e,00,6c,00,6e,00,6b,00,00,00,1c,00,00,00,00,00,00,00,62,00,00,00,04,00,00,00,54,00,32,00,73,02,\\
00,00,4c,37,3b,79,20,00,48,57,50,6e,70,2e,6c,6e,6b,00,3c,00,07,00,04,00,ef,be,4c,37,69,79,4c,37,75,79,26,00,00,00,42,2c,00,00,1f,fb,0f,fb,00,00,00,00,00,\\
00,00,00,00,00,48,00,57,00,50,00,6e,00,70,00,2e,00,6c,00,6e,00,6b,00,00,00,18,00,00,00,00,00,00,00,9c,00,00,00,03,00,00,00,8e,00,32,00,d9,02,00,00,3e,37,\\
83,84,20,00,4c,41,55,4e,43,48,7e,31,2e,4c,4e,4b,00,00,72,00,07,00,04,00,ef,be,4c,37,20,68,4c,37,58,75,26,00,00,00,6d,17,00,00,1f,fb,0f,fb,00,00,00,00,00,\\
00,00,00,00,00,4c,00,61,00,75,00,6e,00,63,00,68,00,20,00,49,00,6e,00,74,00,65,00,72,00,6e,00,65,00,74,00,20,00,45,00,78,00,70,00,6c,00,6f,00,72,00,65,00,\\
72,00,20,00,42,00,72,00,6f,00,77,00,73,00,65,00,72,00,2e,00,6c,00,6e,00,6b,00,00,00,1c,00,00,00,00,00,00,00,6c,00,00,00,01,00,00,00,5e,00,32,00,db,01,00,\\
00,42,37,9a,b4,20,00,50,45,4e,65,74,43,66,67,2e,6c,6e,6b,00,00,42,00,07,00,04,00,ef,be,4c,37,1a,68,4c,37,58,75,26,00,00,00,6e,17,00,00,1f,fb,0f,fb,00,00,\\
00,00,00,00,00,00,00,00,50,00,45,00,4e,00,65,00,74,00,43,00,66,00,67,00,2e,00,6c,00,6e,00,6b,00,00,00,1c,00,00,00,00,00,00,00,87,00,00,00,c0,06,00,00,00,\\
00,00,00,16,00,00,00,00,00,00,00,00,00,00,00,16,00,00,00,00,00,00,00,01,00,00,00,01,00,00,00,aa,4f,28,68,48,6a,d0,11,8c,78,00,c0,4f,d9,18,b4,fe,02,00,00,\\
c0,0c,00,00,00,00,00,00,16,00,00,00,00,00,00,00,00,00,00,00,16,00,00,00,00,00,00,00,01,00,00,00

[RegWin81]

//_____/Desktop Icons\_____

// User
//If,%pcheckbox3%,=,True,Then
//    RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu,{59031a47-3f72-44a7-89c5-5595fe6b30ee},0
//    RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel,{59031a47-3f72-44a7-89c5-5595fe6b30ee},0
//Else
//    RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu,{59031a47-3f72-44a7-89c5-5595fe6b30ee},1
//    RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel,{59031a47-3f72-44a7-89c5-5595fe6b30ee},1
//End

// Control Panel
//If,%pcheckbox4%,=,True,Then
//    RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu,{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0},0
//    RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel,{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0},0
//Else
//    RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu,{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0},1
//    RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel,{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0},1
//End

// Libaries
//If,%pcheckbox5%,=,True,Then
//    RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu,{031E4825-7B94-4dc3-B131-E946B44C8DD5},0
//    RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel,{031E4825-7B94-4dc3-B131-E946B44C8DD5},0
//Else
//    RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu,{031E4825-7B94-4dc3-B131-E946B44C8DD5},1
//    RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel,{031E4825-7B94-4dc3-B131-E946B44C8DD5},1
//End


//_____/Desktop Settings\_____

//_____/Misc Settings\_____

// No Low Disk Space Check
If,%pCheckBox10%,=,True,Then,RegWrite,HKLM,0x4,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoLowDiskSpaceChecks,1

// Show new plugged USB drives, visible in "My Computer"
If,%pCheckBox11%,=,True,Then,RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,SeparateProcess,1

//_____/Taskbar Settings\_____


// Auto hide taskbar
//If,%pcheckbox13%,=,True,Then,RegWrite,HKLM,0x3,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2,Settings,28,00,00,00,ff,ff,ff,ff,03,00,00,00,03,00,00,00,3c,00,00,00,1e,00,00,00,fe,ff,ff,ff,e4,02,00,00,02,04,00,00,02,03,00,00

// Show quicklaunch on taskbar
RegWrite,HKLM,0x3,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop,TaskbarWinXP,0c,00,00,00,08,00,00,00,01,00,00,00,00,00,00,00,aa,4f,28,68,48,6a,d0,11,8c,78,00,c0,4f,d9,18,b4,00,00,00,00,40,0d,00,00,00,00,00,00,30,00,00,00,00,00,00,00,00,00,00,00,30,00,00,00,00,00,00,00,01,00,00,00

//_____/Start Menu\_____
// Removes the Documents menu from the Start menu
RegWrite,HKLM,0x4,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoRecentDocsMenu,1
RegWrite,HKLM,0x4,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoRecentDocsHistory,1

// Removes Help from the Start menu
RegWrite,HKLM,0x4,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoSMHelp,1

// Removes Search from the Start menu
//RegWrite,HKLM,0x4,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer,NoFind,1


// Send to desktop
RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\.DeskLink,,CLSID\{9E56BE61-C50F-11CF-9A2C-00A0C90A90CE}
RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\.DeskLink\PersistentHandler,,{098f2470-bae0-11cd-b579-08002b30bfeb}
RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\CLSID\{9E56BE61-C50F-11CF-9A2C-00A0C90A90CE}\DefaultIcon,,"#$pSystemRoot#$p\system32\imageres.dll,-110"
RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\CLSID\{9E56BE61-C50F-11CF-9A2C-00A0C90A90CE}\InProcServer32,,#$pSystemRoot#$p\System32\sendmail.dll
RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\CLSID\{9E56BE61-C50F-11CF-9A2C-00A0C90A90CE}\InProcServer32,ThreadingModel,Apartment
RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\CLSID\{9E56BE61-C50F-11CF-9A2C-00A0C90A90CE}\shellex\DropHandler,,{9E56BE61-C50F-11CF-9A2C-00A0C90A90CE}

// Send to zip
RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\.zfsendtotarget,,CLSID\{888DCA60-FC0A-11CF-8F0F-00C04FD7D062}
RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\.zfsendtotarget\PersistentHandler,,{098f2470-bae0-11cd-b579-08002b30bfeb}
RegWrite,HKLM,0x4,PE-SOFTWARE\Classes\CLSID\{888DCA60-FC0A-11CF-8F0F-00C04FD7D062},EditFlags,1
RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\CLSID\{888DCA60-FC0A-11CF-8F0F-00C04FD7D062}\DefaultIcon,,#$pSystemRoot#$p\system32\zipfldr.dll
RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\CLSID\{888DCA60-FC0A-11CF-8F0F-00C04FD7D062}\InProcServer32,,#$pSystemRoot#$p\system32\zipfldr.dll
RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\CLSID\{888DCA60-FC0A-11CF-8F0F-00C04FD7D062}\InProcServer32,ThreadingModel,Apartment
RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\CLSID\{888DCA60-FC0A-11CF-8F0F-00C04FD7D062}\ShellEx\DropHandler,,{888DCA60-FC0A-11CF-8F0F-00C04FD7D062}

// Boot To Desktop
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StartPage,OpenAtLogon,0
if,%pemode%,=,os,then,RegWrite,HKLM,0x4,PE-DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\StartPage,OpenAtLogon,0

// Show Desktop background as Start screen background
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Accent,MotionAccentId_v1.00,219
if,%pemode%,=,os,then,RegWrite,HKLM,0x4,PE-DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\Accent,MotionAccentId_v1.00,219

// Show the All Apps view when I go to Start
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StartPage,MakeAllAppsDefault,1
if,%pemode%,=,os,then,RegWrite,HKLM,0x4,PE-DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\StartPage,MakeAllAppsDefault,1

// List Desktop Apps first in the Apps view when it's sorted by category
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StartPage,DesktopFirst,1
if,%pemode%,=,os,then,RegWrite,HKLM,0x4,PE-DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\StartPage,DesktopFirst,1

// Disable Charms Bar and the Apps Switcher
//RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell\EdgeUI,DisableCharmsHint,1
//RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell\EdgeUI,DisableTRcorner,1
//RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell\EdgeUI,DisableTLcorner,1

// Make desktop menus snappier
RegWrite,HKLM,0x1,"PE-USER\Control Panel\Desktop",MenuShowDelay,200

// Enable Metro Apps to Work on In-Built Administrator Account
RegWrite,HKLM,0x4,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System,FilterAdministratorToken,1

// User Account Control
RegWrite,HKLM,0x4,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System,EnableUIADesktopToggle,1
RegWrite,HKLM,0x4,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System,EnableUIPI,1
RegWrite,HKLM,0x4,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System,FilterSystemToken,1

// Pin Everything
RegWrite,HKLM,0x1,PE-USER\Software\Classes\*\shellex\ContextMenuHandlers\PintoStartScreen,,{470C0EBD-5D73-4d58-9CED-E91E22E23282}
RegWrite,HKLM,0x1,PE-USER\Software\Classes\AllFileSystemObjects\shellex\ContextMenuHandlers\PintoStartScreen,,{470C0EBD-5D73-4d58-9CED-E91E22E23282}

// Shortcuts without 'shortcut' name
RegWrite,HKLM,0x3,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer,link,00,00,00,00

// UserAssist for recent programs in Startmenu
RegWrite,HKLM,0x4,PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{F4E57C4B-2036-45F0-A9AB-443BCFE33D9F},Version,5

if,%pemode%,=,os,then
	// SetupType (0=Do nothing, show login screen,  1=Run CMDLine then REBOOT, 2=Run CMDLine then show login screen)
	RegWrite,HKLM,0x4,PE-SYSTEM\Setup,SetupType,2
	RegWrite,HKLM,0x1,PE-SYSTEM\Setup,CmdLine,winpeshl.exe
else
	RegWrite,HKLM,0x1,PE-SYSTEM\Setup,CmdLine,"Peinit.exe"

	RegWrite,HKLM,0x4,PE-SYSTEM\Setup,SetupPhase,0
	RegWrite,HKLM,0x4,PE-SYSTEM\Setup,OOBEInProgress,0
	RegWrite,HKLM,0x4,PE-SYSTEM\Setup,SystemPartition,X:
	RegWrite,HKLM,0x4,PE-SYSTEM\Setup,SystemSetupInProgress,1
	RegWrite,HKLM,0x4,PE-SYSTEM\Setup,SetupType,1
end
//If,%pcheckbox18%,=,True,Then,Add_ShortCut,Desktop,              ,X:\Windows\explorer.exe,%ptextbox2%,X:\
//If,%pcheckbox19%,=,True,Then,Add_ShortCut,QuickLaunch,          ,X:\Windows\explorer.exe,%ptextbox2%,X:\
//If,%pcheckbox20%,=,True,Then,Add_ShortCut,Startmenu,%ptextbox1% ,X:\Windows\explorer.exe,%ptextbox2%,X:\

//Add_ShortCut,Startmenu,.,X:\Windows\explorer.exe,Arbeitsplatz,X:\

[Script-Pic]
0=3196,4084,ZLB64
1=eNqlz2k4FOwaB/AZY4u8hZAlSyoa68ieSJrJ0hhbskteW0L2nYaMsg3GOqEke2OyzEQxKgyNLI1lGCZLUgzZd3G873XO+XK+nOuc//3lfq7/h/v3HI4cTgJOGsOMYADg0dw5GsDhAUDiJlT/uqSVm6unr999Pw8vt0BJI19XRUlriKIyBHA4BjAAsPyfObqixRXl6RLwp6vfg/AoFWUIRAmioqSsLgnR0IZoaitrcVm5BQYpmBlwXYdaQ28izBSUoSr6mjBVwGE78AUAAGQD/h3APwNkAbGysXNwHuPiBgJAwH/lP8qTABYgCMTCCmJjY2U9aqKPOgArLxufFESfnd/cheOs/ykVZEYxp/S12g8CFl+Wz126GxB3jEtQ6LSwyPkLMrIXwapq6hqaWtoG16GwG4ZGxpZWt6xv29jauf7p5u7h6XUvMCg4JDQsPC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