[Main]
Title=Explorer
Description=Adds Explorer to the PE compilation.
Selected=True
Level=2
Author=Radoi Ovidiu
Version=16.3
Date=01.03.2026
Disable=Shells\2-OwnShell.srt
Sizex86=|12104408:0:0
Sizex64=|28003631:0:0
Translation_DE=MaineCoon

[Interface]
Panel=1
pFrame1=Options:,707070,0,0,10,60,250,110
pCheckBox1=False,Show Windows version on Desktop,0,3,21,86,215,18
pCheckBox2=True,hide 'My Documents on Desktop',0,3,21,104,215,18
pCheckBox3=True,Classic Start Menu (recommended),0,3,21,122,215,18
pCheckBox4=True,Include Windows Picture and Fax Viewer,0,3,21,140,215,18
//
tEcho_1=CopyOrExpanding [Files] ...
tEcho_2=Writing new values on [Registry] ...
tEcho_3=Processing [WinSxS files] ...

[Interface.07]
Description=Integriert den Explorer in WindowsPE.
Panel=1
pframe1=Optionen:,707070,0,0,10,60,260,110
pcheckbox1=False,Windows-Version auf Desktop anzeigen,0,3,21,86,215,18
pcheckbox2=True,'Meine Dokumente' auf Desktop nicht anzeigen,0,3,21,104,240,18
pcheckbox3=True,Klassisches Startmenü (empfohlen),0,3,21,122,215,18
pcheckbox4=False,Windows Bild- und Faxanzeige,0,3,21,140,215,18
//
tEcho_1=Kopiert werden [Dateien] ...
tEcho_2=Aktualisiert wird [Registry] ...
tEcho_3=Kopiert werden [WinSxS-Dateien] ...


[Process]

Echo,%tEcho_1%
require_file,atl.dll
CopyOrExpand,%source_win%\Explorer.EXE,%Target_win%
CopyOrExpand,%source_win%\browseui.dll,%target_sys%
CopyOrExpand,%source_win%\browselc.dll,%target_sys%
CopyOrExpand,%source_win%\shdocvw.dll,%target_sys%
CopyOrExpand,%source_win%\shdoclc.dll,%target_sys%
CopyOrExpand,%source_win%\rpcss.dll,%target_sys%"
CopyOrExpand,%source_win%\iernonce.dll,%target_sys%
CopyOrExpand,%source_win%\iesetup.dll,%target_sys%
CopyOrExpand,%source_win%\runonce.exe,%target_sys%
CopyOrExpand,%source_win%\advpack.dll,%target_sys%
// shutdownfix , copy XPSP2res.dll
If,%OS%,=,WINXP,then
   If,Not,%SP%,=,SP1,then
	set,%xpresfile%,XPSP2RES.dll
	If,Not,%LangID%,=,0409,then,Set,%XpResFile%,SPRT%LangID%.dll
	CopyOrExpand,%source_win%\%XpResFile%,%target_sys%\XPSP2res.dll
   end	

end
CopyOrExpand,%source_win%\uxtheme.dll,%target_sys%
CopyOrExpand,%source_win%\stdole2.tlb,%target_sys%
CopyOrExpand,%source_win%\sysdm.cpl,%target_sys%
CopyOrExpand,%source_win%\svchost.exe,%target_sys%
CopyOrExpand,%source_win%\odbcint.dll,%target_sys%
CopyOrExpand,%source_win%\reg.exe,%target_sys%
If,ExistFile,%source_win%\homepage.in_,then,CopyOrExpand,%source_win%\homepage.inf,%target_sys%

// Reboot
FileDelete,%target_sys%\ginaorg.dll,1
FileDelete,%target_sys%\PEgina.dll,1
FileRename,%target_sys%\msgina.dll,%target_sys%\ginaorg.dll

FileCopy,%Scriptdir%\files\ShutdownRes.dll,%target_sys%
FileCopy,%Scriptdir%\files\PEGina-%Arch%.dll,%target_sys%\msgina.dll

//Startup
IniWrite,%Target_sys%\PEinit.ini,Init,003,CMD|Hide|md #$q%RamDrive%\%doc_and_sett%\Default User\%local_sett%\Temp#$q
IniWrite,%Target_sys%\PEinit.ini,Init,006,DllInstall|shell32.dll
IniWrite,%Target_sys%\PEinit.ini,Init,007,DllInstall|browseui.dll
IniWrite,%Target_sys%\PEinit.ini,Init,008,DllInstall|shdocvw.dll

IniWrite,%Target_sys%\PEinit.ini,Init,009,Regdelete|HKLM|SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{7007ACC7-3202-11D1-AAD2-00805FC1270E}
IniWrite,%Target_sys%\PEinit.ini,Init,010,Regdelete|HKLM|SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}

IniWrite,%Target_sys%\PEinit.ini,Init,049,Broadcast
//IniWrite,%Target_sys%\PEinit.ini,Init,039,BROADCAST

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

// Shell Loader
if,%arch%,=,x86,then
	filecopy,%ScriptDir%\files\PELoader.exe,%target_sys%\
	RegWrite,HKLM,0x1,PE-SYSTEM\Setup,CmdLine,PELoader.exe explorer.exe
Else
	
	filecopy,%ScriptDir%\files\XPELogon.exe,%target_sys%\
	RegWrite,HKLM,0x1,PE-SYSTEM\Setup,CmdLine,XPELogon.exe -n -x

	RegWrite,HKLM,0x0,PE-Software\Sherpya\XPEinit\Safe
	RegWrite,HKLM,0x4,PE-Software\Sherpya\XPELogon,Eject,0
	RegWrite,HKLM,0x4,PE-Software\Sherpya\XPELogon,EjectPrompt,0
	RegWrite,HKLM,0x4,PE-Software\Sherpya\XPELogon,HideTray,1
	RegWrite,HKLM,0x2,PE-Software\Sherpya\XPELogon,Shell,Explorer.exe
End

//******** Settings ************
Echo,%tEcho_2%

// 'Internet Explorer question'
RegWrite,HKLM,0x1,"PE-USER\Software\Microsoft\Internet Explorer\Main","Check_Associations","No"
RegWrite,HKLM,0x1,"PE-USER\Software\Microsoft\Internet Explorer\Main","IgnoreDefCheck","Yes"

// 'Windows Tour'
RegWrite,HKLM,0x4,"PE-Software\Microsoft\Windows\CurrentVersion\Applets\Tour","RunCount","00000000"

// Show Desktopversion
If,%pCheckBox1%,=,true,then,RegWrite,HKLM,0x4,"PE-USER\Control Panel\Desktop","PaintDesktopVersion","1"

// classic Startmenü
If,%pCheckBox3%,=,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,0D,00,00,00,00,00,00,00,00,00,00,00

// 'my docs on desktop'
If,%pCheckBox2%,=,true,then
   RegWrite,HKLM,0x4,"PE-Software\Microsoft\Windows\CurrentVersion\Policies\nonenum","{450D8FBA-AD25-11D0-98A8-0800361B1103}","1"
   RegWrite,HKLM,0x4,"PE-Software\Microsoft\Windows\CurrentVersion\Policies\Explorer","nosmmydocs","1"
end

// Windows Picture and Fax Viewer
If,%pCheckBox4%,=,true,then
	CopyOrExpand,%source_win%\shimgvw.dll,%target_sys%
	RegWrite,HKLM,0x1,"PE-Software\Microsoft\Windows\CurrentVersion\RunOnceEx\500","202","regsvr32.exe /s shimgvw.dll"
	CopyOrExpand,%source_win%\regsvr32.exe,%target_sys%
end

// Transparent Desktopicon
Regwrite,HKLM,0x4,PE-User\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced,ListviewShadow,1

// Remove Trash Bin from Desktop
If,EXISTREGKEY,HKLM,PE-Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{645FF040-5081-101B-9F08-00AA002F954E},then,Regdelete,HKLM,PE-Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{645FF040-5081-101B-9F08-00AA002F954E}

RegWrite,HKLM,0x4,"PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu","{871C5380-42A0-1069-A2EA-08002B30309D}","1"
RegWrite,HKLM,0x4,"PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel","{871C5380-42A0-1069-A2EA-08002B30309D}","1"
RegWrite,HKLM,0x3,"PE-USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop","Taskbar",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,10,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,00,00,00,11,00,00,00,80,f3,5d,ea,f2,35,c4,\\
	 01,00,c0,3b,92,58,35,c4,01,00,32,58,eb,f2,35,c4,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,53,02,14,00,1f,50,e0,4f,d0,20,ea,3a,69,10,a2,d8,08,00,2b,30,30,9d,19,\\
	 00,2f,42,3a,5c,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,4c,00,31,00,00,00,00,00,a9,30,27,93,11,00,54,45,4d,50,00,00,20,00,03,00,04,00,ef,be,a9,30,61,92,a9,30,00,00,14,00,00,00,\\
	 54,00,65,00,6d,00,70,00,00,00,14,00,18,00,00,00,06,00,ef,be,53,00,59,00,53,00,54,00,45,00,4d,00,00,00,14,00,66,00,31,00,00,00,00,00,a9,30,61,92,10,00,44,4f,4b,55,4d,45,7e,31,00,00,4e,00,03,00,\\
	 04,00,ef,be,a9,30,61,92,a9,30,00,00,14,00,00,00,44,00,6f,00,6b,00,75,00,6d,00,65,00,6e,00,74,00,65,00,20,00,75,00,6e,00,64,00,20,00,45,00,69,00,6e,00,73,00,74,00,65,00,6c,00,6c,00,75,00,6e,00,\\
	 67,00,65,00,6e,00,00,00,18,00,48,00,31,00,00,00,00,00,a9,30,61,92,10,00,44,45,46,41,55,4c,7e,31,00,00,30,00,03,00,04,00,ef,be,a9,30,61,92,a9,30,00,00,14,00,00,00,44,00,65,00,66,00,61,00,75,00,\\
	 6c,00,74,00,20,00,55,00,73,00,65,00,72,00,00,00,18,00,4e,00,31,00,00,00,00,00,a9,30,19,93,10,00,41,4e,57,45,4e,44,7e,31,00,00,36,00,03,00,04,00,ef,be,a9,30,19,93,a9,30,00,00,14,00,00,00,41,00,\\
	 6e,00,77,00,65,00,6e,00,64,00,75,00,6e,00,67,00,73,00,64,00,61,00,74,00,65,00,6e,00,00,00,18,00,42,00,31,00,00,00,00,00,a9,30,1a,93,10,00,4d,49,43,52,4f,53,7e,31,00,00,2a,00,03,00,04,00,ef,be,\\
	 a9,30,1a,93,a9,30,00,00,14,00,00,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,00,00,18,00,52,00,31,00,00,00,00,00,a9,30,1a,93,10,00,49,4e,54,45,52,4e,7e,31,00,00,3a,00,03,00,04,00,\\
	 ef,be,a9,30,1a,93,a9,30,00,00,14,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,18,00,48,00,31,00,00,00,00,00,a9,30,1a,93,\\
	 11,00,51,55,49,43,4b,4c,7e,31,00,00,30,00,03,00,04,00,ef,be,a9,30,1a,93,a9,30,00,00,14,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,18,00,00,00,10,00,\\
	 00,00,05,00,00,a0,1a,00,00,00,75,01,00,00,00,00,00,00,00,00,00,00,e0,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,0c,03,00,00,e0,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


If,EXISTREGKEY,HKLM,PE-SYSTEM\ControlSet001\Services\i8042prt\Parameters,EnableWheelDetection,then,RegDelete,HKLM,PE-SYSTEM\ControlSet001\Services\i8042prt\Parameters,EnableWheelDetection
RegWrite,HKLM,0x4,"PE-SYSTEM\ControlSet001\Services\i8042prt\Parameters","EnableWheelDetection","2"

RegWrite,HKLM,0x4,"PE-SYSTEM\ControlSet001\Services\VgaSave\Device0","DefaultSettings.BitsPerPel","32"
RegWrite,HKLM,0x4,"PE-SYSTEM\ControlSet001\Services\VgaSave\Device0","DefaultSettings.XResolution","800"
RegWrite,HKLM,0x4,"PE-SYSTEM\ControlSet001\Services\VgaSave\Device0","DefaultSettings.YResolution","600"

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

IniDeleteSection,%Target_sys%\PEinit.ini,init,15


[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/5S/03+r8zx/1P6H+b/00+fA/g5QRoAjRBwCM9LwDECzikA46DgEePo10P8Hv/ObuYx/IhQCTfuXt0zNl5/sNAV59IaiLWZc+xMVs4o2StxFYgawqZQlzWn0xt+tE/W5+UFFIOg0dXrpIMdyjW3413HQnV/Jv+WzUYtAm+izArc/pcnArnzJ3INA5ixGZlcxbu9sjH3HD4DcRT1imlBHy6/BfkB50QwApmcWBCE9TiIyR+a6HJUa9uciDZmXFvjjmaS8n1a852iJDo3gcTFv3ew88TSAad07rP0VQk91Veo87XnU5tlRsCApabEbEqAz508YKayxI9+MWhlYFpjYTWewox3e+/aq5IoHCq+BNzgqEhEdYlqiLe80JCGvTq3k15cbJJkzyB54p7gcGP08OcMxnZhnpDB7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