[Main]
Title=MMC
Description=Adds Managment Console to PE
Selected=True
Author=NightMan, Nikzzzz, 2aCD, Markus Debus
Level=3
Version=19
Date=07.12.2018
Sizex86=|10022708:0:0
Sizex64=|11488564:0:0
Translation_DE=MaineCoon

[Interface]
pFrame1=Desktop Shortcuts,707070,0,0,10,10,170,80
pcheckbox1=True,Device Manager,0,3,20,35,150,18
pcheckbox2=True,Disk Management,0,3,20,60,150,18
//
tEcho_1=Copying files...
tVar_1=Device Manager
tVar_2=Disk Management
tVar_3=Date and Time
tVar_4=Hardware Wizard
tVar_5=PnPUtil
tVar_6=Internet Options
tVar_7=Mouse
tVar_8=Regional and Language Options
tVar_9=System Properties
tVar_10=Shared Folders

[Interface.07]
Description=Integriert die Computer-Managment-Konsole in WindowsPE
pFrame1=Desktop-Verknüpfungen,707070,0,0,10,10,170,80
pcheckbox1=True,Geräte-Manager,0,3,20,35,150,18
pcheckbox2=True,Computerverwaltung,0,3,20,60,150,18
//
tEcho_1=Dateien werden kopiert...
tVar_1=Geräte-Manager
tVar_2=Computerverwaltung
tVar_3=Datum und Zeit
tVar_4=Hardware-Assistent
tVar_5=PnP-Hilfsprogramm
tVar_6=Internet-Optionen
tVar_7=Maus
tVar_8=Regions- und Sprachoptionen
tVar_9=System
tVar_10=Freigegebene Ordner

[Process]
Echo,%tEcho_1%

SetReqFile,%Install_sys%,%Distlang%,%FallBack%,%target_sys%

ReqFile,control.exe,1
ReqFile,intl.cpl,1
ReqFile,timedate.cpl,1
ReqFile,inetcpl.cpl,1
ReqFile,sysdm.cpl,1
ReqFile,main.cpl,1
ReqFile,mshtml.dll,1
ReqFile,ieframe.dll,1

ReqFile,ADSLDPC.dll
ReqFile,CABINET.DLL
ReqFile,activeds.dll
ReqFile,activeds.tlb
ReqFile,atl.dll
ReqFile,cfgmgr32.dll
ReqFile,cfgbkend.dll,1
ReqFile,clbcatq.dll
ReqFile,clusapi.dll
ReqFile,compmgmt.msc
ReqFile,comres.dll
ReqFile,credui.dll
ReqFile,devmgmt.msc
ReqFile,devmgr.dll,1
ReqFile,diskmgmt.msc
ReqFile,dmdlgs.dll
ReqFile,dmdskmgr.dll
ReqFile,dmdskres.dll,1
ReqFile,dmintf.dll
ReqFile,dmocx.dll,1
ReqFile,dmutil.dll,1
ReqFile,dmvdsitf.dll
ReqFile,dmview.ocx
ReqFile,filemgmt.dll,1
ReqFile,fmifs.dll
ReqFile,fsmgmt.msc
ReqFile,fsutil.exe,1
ReqFile,hhsetup.dll
ReqFile,ifsutil.dll
ReqFile,ifsutilx.dll
ReqFile,ipsecsnp.dll,1
ReqFile,ipsecsvc.dll
ReqFile,lpk.dll
ReqFile,mfc42u.dll
ReqFile,mlang.dat
ReqFile,mlang.dll
ReqFile,mmc.exe,1
ReqFile,mmcbase.dll,1
ReqFile,mmcndmgr.dll,1
ReqFile,mmcshext.dll,1
ReqFile,msxml3.dll
ReqFile,msxml3r.dll
ReqFile,msxml6.dll
ReqFile,msxml6r.dll
ReqFile,mycomput.dll,1
ReqFile,ntmarta.dll
ReqFile,oleacc.dll
ReqFile,oleaccrc.dll
ReqFile,osuninst.dll
ReqFile,polstore.dll
ReqFile,services.msc
ReqFile,services.exe
ReqFile,srvsvc.dll,1
ReqFile,urlmon.dll
ReqFile,usp10.dll
ReqFile,wmi.dll
ReqFile,apphelp.dll


ReqFile,batt.dll
ReqFile,hid.dll
ReqFile,msports.dll
ReqFile,pnpsetup.dll
ReqFile,pnpts.dll
ReqFile,pnpui.dll
ReqFile,PNPXAssoc.dll
ReqFile,PNPXAssocPrx.dll,1
ReqFile,PnPUnattend.exe,1
ReqFile,PnPutil.exe,1
ReqFile,grpconv.exe,1
ReqFile,iologmsg.dll,1
ReqFile,hdwwiz.exe,1
ReqFile,msinfo32.exe,1
ReqFile,Netplwiz.exe,1
//system
ReqFile,systemcpl.dll,1
ReqFile,thumbcache.dll
ReqFile,SystemPropertiesAdvanced.exe,1
ReqFile,SystemPropertiesComputerName.exe,1
ReqFile,SystemPropertiesHardware.exe,1
ReqFile,netplwiz.dll
ReqFile,hdwwiz.cpl,1

//History 13
If,ExistFile,%boot_sys%\vmstorfltres.dll,Then
	SetReqFile,%boot_sys%,%Distlang%,%FallBack%,%target_sys%
	ReqFile,vmstorfltres.dll
end

RegLoad,%RegSoftware%,PE-Software
System,FILEREDIRECT,off
ShellExecute,hide,%WindowsDir%\system32\reg.exe, import #$q%ScriptDir%\MMC\MMC.reg#$q
System,FILEREDIRECT,on
RegUnLoad,PE-SOFTWARE

GetDistLang,%DistTmp%,%Install_sys%\devmgr.dll,%Distlang%:%FallBack%
Retrieve,%dev%,ResStr,%target_sys%\%DistTmp%\devmgr.dll.mui,,4

GetDistLang,%DistTmp%,%Install_sys%\timedate.cpl,%Distlang%:%FallBack%
Retrieve,%date%,ResStr,%target_sys%\%DistTmp%\timedate.cpl.mui,,51

GetDistLang,%DistTmp%,%Install_sys%\mycomput.dll,%Distlang%:%FallBack%
Retrieve,%commgm%,ResStr,%target_sys%\%DistTmp%\mycomput.dll.mui,,300

GetDistLang,%DistTmp%,%Install_sys%\inetcpl.cpl,%Distlang%:%FallBack%
Retrieve,%inet%,ResStr,%target_sys%\%DistTmp%\inetcpl.cpl.mui,,105

GetDistLang,%DistTmp%,%Boot_sys%\shell32.dll,%Distlang%:%FallBack%
Retrieve,%var%,ResStr,%target_sys%\%DistTmp%\shell32.dll.mui,,32016
//message,%var%
String,%lang%,SPLIT,%var%,#$c,2
string,%lang%,strip,%lang%,,3

GetDistLang,%DistTmp%,%Install_sys%\filemgmt.dll,%Distlang%:%FallBack%
Retrieve,%share%,ResStr,%target_sys%\%DistTmp%\filemgmt.dll.mui,%LCID%,4

GetDistLang,%DistTmp%,%Install_sys%\main.cpl,%Distlang%:%FallBack%
Retrieve,%mouse%,ResStr,%target_sys%\%DistTmp%\main.cpl.mui,,100

If,%pCheckBox1%,=,True,Then,Add_ShortCut,Desktop,,X:\Windows\System32\mmc.exe,%dev%,,/b X:\Windows\System32\devmgmt.msc,devmgr.dll#$c4
If,%pCheckBox2%,=,True,Then,Add_ShortCut,Desktop,,X:\Windows\system32\compmgmt.msc,%tVar_2%,,/s,X:\Windows\system32\mycomput.dll

Add_ShortCut,Startmenu,%commgm%, X:\Windows\System32\mmc.exe,%dev%,,/b X:\Windows\System32\devmgmt.msc,devmgr.dll#$c4
Add_ShortCut,Startmenu,%commgm%, X:\Windows\system32\compmgmt.msc,%commgm%,,/s,X:\Windows\system32\mycomput.dll
Add_ShortCut,Startmenu,%commgm%, X:\Windows\system32\timedate.cpl,%date%,,,#$pSystemRoot#$p\System32\control.exe
Add_ShortCut,Startmenu,%commgm%, X:\Windows\system32\inetcpl.cpl,%inet%,,,X:\Windows\system32\inetcpl.cpl#$c27
Add_ShortCut,Startmenu,%commgm%, X:\Windows\system32\main.cpl,%mouse%,,,X:\Windows\system32\setupapi.dll#$c1
Add_ShortCut,Startmenu,%commgm%, X:\Windows\system32\intl.cpl,%lang%,,,X:\Windows\System32\intl.cpl#$c-200
Add_ShortCut,Startmenu,%commgm%, X:\windows\system32\fsmgmt.msc,%share%,,,X:\Windows\System32\shrpubw.exe

[Script-Pic]
0=4242,5456,ZLB64
1=eNqllGdQ0+u2xv8IiKBIlyIS6TU06fWCAiaRYuhdQEqIEEBKwCiiIFbYBpIIAkGkF0EJhKpS3YCABEMENl2qookghJYc9pl7z9yZ8+XMvc9a88675lkz6/d+eBf7C3sWEITaQmwBjsO4chgAmwWALtlYXTjrEhwUFom6hgpFBF8/C4kM0jzrpqOprQOwJ4HzwJH/pw6nGPNhwgJirgahohIxuto6OlqHqa1zVkfbRFffRF+bzyX4eizY6TzfBRs3m0uOTmBtG10rI1s9gN3NUQQAHNwc/xTw3+I4wsnFfZTnGC/fcQ6Ak+N/9G+mIHCEg5PzCBcnNzcX16Fz89ADuIS4hWV1rI6KXA7gkYsW1U15+uKYvPXrDjH4CF3hXGDMHV6+U+ISklKKSsoqqmp6+gaGRsYm5y/Y2NpdhECdXVzd3D08vYKuBoeEhiHCr8fGxSegE5Pupq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