[Main]
Title=Common components
Type=Plugin
Author=ChrisR
Description=Common components (MDAC/HTA) - Microsoft Data Access Components / HTML Applications.
Credits=http://TheOven.org
Version=006
Download_Level=0
Level=3
Selected=False
Mandatory=False
NoWarning=False
Contact=http://TheOven.org
Date=2017.10.09
Depend=
Disable=
Web1=http://w7pese.cwcodes.net/Projects/Win7PESE/Components/Common%20Components.script
CertifiedBy=
Certification=
HistoryNotes01=ChrisR - WinPE-Scripting WSH is already in "1 - Copy Files"
History001=ChrisR 2014.03.19 Plugin created
History002=Lancelot Added DU Buttons - Date:2016.02.05
History003=ChrisR Win10 Compatibility - Date:2016.02.07
History004=Lancelot Added Components_PluginCache_Extract - Date:2016.11.10
History005=ChrisR - Multi Fallback Languages support - Date:2016.11.18
History006=ChrisR - icrav03.rat and ticrf.rat does not exist in Win10 1607 - bob.omb http://TheOven.org/index.php?topic=2247.0 - Date:2017.10.09

[Interface]
pTextLabel1="Select components:",1,1,10,10,133,18,8,Bold
pCheckBox2="WinPE-MDAC - Microsoft Data Access Components",1,3,10,30,285,18,True
pCheckBox3="WinPE-HTA - HTML Applications",1,3,10,50,185,18,True
pTextLabel2="Components already in WinPESE base",1,1,10,90,210,18,8,Bold
pTextLabel3=WinPE-Scripting,1,1,10,110,110,18,8,Normal
pTextLabel4=WinPE-WMI,1,1,10,130,110,18,8,Normal
pTextLabel5=WinPE-XML,1,1,10,150,110,18,8,Normal
WebLabel_Plugin="Plugin Page",1,10,338,4,55,18,http://TheOven.org/index.php?board=9
Button_Download=,1,8,403,21,24,24,DownloadXXX,DoubleJDesignRavenna3dArrowDown0016016.bmp,False,False,_DownloadXXX_,False,"__DOWNLOAD Plugin"
Button_Upload=,1,8,403,-1,24,24,UploadXXX,BokehliciaCaptivaSoftwareupload0016016.bmp,False,False,_UploadXXX_,False,"__UPLOAD Plugin (Admins Only)"
Button_CompareEdit=,1,8,426,-1,24,24,CompareEditXXX,AmperossQetto2Move0016016.bmp,False,False,_CompareEditXXX_,False,"__DOWNLOAD and Compare with an Editor"

[Process]
If,ExistFile,%ProjectTemp%\Components_PluginCache_Extract.ini,Echo,"Components PluginCache"
If,Not,ExistFile,%ProjectTemp%\Components_PluginCache_Extract.ini,Run,%ScriptFile%,Process_Normal

[Process_Normal]
If,%pCheckBox2%,Equal,true,Run,%ScriptFile%,FileMDAC
If,%pCheckBox3%,Equal,true,Run,%ScriptFile%,FileHTA

[FileHTA]
Echo,"Processing HTA files..."
// Windows\System32\catroot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\WinPE-HTA-Package*
If,ExistFile,%Source_Sys%\icrav03.rat,Require_FileQ,icrav03.rat
If,ExistFile,%Source_Sys%\edgehtml.dll,Require_FileQ,edgehtml.dll
Require_FileQ,ieframe.dll
// ieui.dll not in Win10 WinPE-HTA.cab
Require_FileQ,ieui.dll
Require_FileQ,imgutil.dll
Require_FileQ,inetcomm.dll
Require_FileQ,INETRES.dll
Require_FileQ,mshta.exe
Require_FileQ,mshtml.dll
Require_FileQ,mshtml.tlb
Require_FileQ,mshtmled.dll
Require_FileQ,msimtf.dll
Require_FileQ,msrating.dll
Require_FileQ,oledlg.dll
Require_FileQ,pngfilt.dll
If,ExistFile,%Source_Sys%\ticrf.rat,Require_FileQ,ticrf.rat
If,ExistFile,%Source_Sys%\readingviewresources.dll,Require_FileQ,readingviewresources.dll
//-
Require_FileQ,d2d1.dll
Require_FileQ,d3d8thk.dll
Require_FileQ,d3d9.dll
Require_FileQ,d3d10.dll
Require_FileQ,d3d10_1.dll
Require_FileQ,d3d10_1core.dll
Require_FileQ,d3d10core.dll
Require_FileQ,d3d10level9.dll
Require_FileQ,d3d10warp.dll
Require_FileQ,d3d11.dll
If,ExistFile,%Source_Sys%\d3d12.dll,Require_FileQ,d3d12.dll
If,ExistFile,%Source_Sys%\D3DCompiler_47.dll,Require_FileQ,D3DCompiler_47.dll
Require_FileQ,dwrite.dll
Require_FileQ,dxgi.dll
Require_FileQ,fntcache.dll
Require_FileQ,mlang.dat
Require_FileQ,mlang.dll
Require_FileQ,windowscodecs.dll
//-
ExtractFile,%ScriptFile%,Folder,hta_%OS%.7z,%ProjectTemp%
ShellExecute,Hide,%Tools%\7z.exe,"x -y #$q%ProjectTemp%\hta_%OS%.7z#$q -o#$q%ProjectTemp%#$q"
FileDelete,%ProjectTemp%\hta_%OS%.7z
RegHiveLoad,Tmp_system,%RegSystem%
RegHiveLoad,Tmp_software,%RegSoftware%
ShellExecute,hide,regedit.exe,"/s #$q%ProjectTemp%\hta_%OS%.reg#$q"
RegHiveUnLoad,Tmp_software
RegHiveUnLoad,Tmp_system
FileDelete,%ProjectTemp%\hta_%OS%.reg

[FileMDAC]
Echo,"Processing MDAC files..."
AddVariables,%ProjectDir%\script.project,MuiLang
StrFormat,Split,%MuiLangAll%,|,0,%NbLang%
// Windows\System32\catroot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\WinPE-MDAC-Package*
If,Not,ExistDir,"%TargetDir%\Program Files\Common Files\System",DirMake,"%TargetDir%\Program Files\Common Files\System"
DirCopy,"%InstallSRC%\Program Files\Common Files\System","%TargetDir%\Program Files\Common Files\"
//DirCopy,"%InstallSRC%\Program Files\Common Files\System\ado","%TargetDir%\Program Files\Common Files\System\"
//DirCopy,"%InstallSRC%\Program Files\Common Files\System\msadc","%TargetDir%\Program Files\Common Files\System\"
//DirCopy,"%InstallSRC%\Program Files\Common Files\System\Ole DB","%TargetDir%\Program Files\Common Files\System\"
//-
FileCopy,%Source_Win%\hh.exe,%Target_Win%
If,ExistFile,%Source_Win%\msdfmap.ini,FileCopy,%Source_Win%\msdfmap.ini,%Target_Win%
If,ExistFile,%Source_Win%\PLA\Templates\WDAC_Diagnostics.xml,Begin
If,Not,ExistDir,%Target_Win%\PLA\Templates,DirMake,%Target_Win%\PLA\Templates
FileCopy,%Source_Win%\PLA\Templates\WDAC_Diagnostics.xml,%Target_Win%\PLA\Templates
End
If,%SourceArch%,Equal,x86,Begin
Require_FileQ,12520437.cpx
Require_FileQ,12520850.cpx
Require_FileQ,ds16gt.dLL
Require_FileQ,ds32gt.dll
Require_FileQ,mscpx32r.dLL
Require_FileQ,msjet40.dll
Require_FileQ,msjint40.dll
Require_FileQ,msjter40.dll
Require_FileQ,msjtes40.dll
Require_FileQ,msorc32r.dll
Require_FileQ,msorcl32.dll
Require_FileQ,mswstr10.dll
Require_FileQ,odbc16gt.dll
Require_FileQ,odbcji32.dll
Require_FileQ,odbcjt32.dll
Require_FileQ,oddbse32.dll
Require_FileQ,odexl32.dll
Require_FileQ,odfox32.dll
Require_FileQ,odpdx32.dll
Require_FileQ,odtext32.dll
Require_FileQ,sqlunirl.dll
Require_FileQ,sqlwid.dll
Require_FileQ,sqlwoa.dll
End
Require_FileQ,catsrv.dll
Require_FileQ,catsrvut.dll
Require_FileQ,clbcatq.dll
Require_FileQ,cliconfg.dll
Require_FileQ,cliconfg.exe
Require_FileQ,cliconfg.rll
Require_FileQ,colbact.dll
Require_FileQ,comsvcs.dll
Require_FileQ,cscript.exe
Require_FileQ,dbnetlib.dll
Require_FileQ,dbnmpntw.dll
Require_FileQ,dispex.dll
Require_FileQ,Faultrep.dll
Require_FileQ,hhctrl.ocx
Require_FileQ,hhsetup.dll
Require_FileQ,mlang.dat
Require_FileQ,mlang.dll
//Require_FileQ,mqad.dll
//Require_FileQ,mqcmiplugin.dll
//Require_FileQ,mqmigplugin.dll
//Require_FileQ,mqrt.dll
//Require_FileQ,mqsec.dll
Require_FileQ,msdadiag.dll
Require_FileQ,msdart.dll
Require_FileQ,msdatsrc.tlb
Require_FileQ,msdtcprx.dll
Require_FileQ,msxml3.dll
Require_FileQ,msxml3r.dll
Require_FileQ,msxml6.dll
Require_FileQ,msxml6r.dll
If,ExistFile,%Source_Sys%\mswdat10.dll,Require_FileQ,mswdat10.dll
Require_FileQ,mtstocom.exe
Require_FileQ,mtxclu.dll
If,ExistFile,%Source_Sys%\odbc32gt.dll,Require_FileQ,odbc32gt.dll
Require_FileQ,odbcad32.exe
Require_FileQ,odbcbcp.dll
Require_FileQ,odbcconf.dll
Require_FileQ,odbcconf.exe
Require_FileQ,odbcconf.rsp
Require_FileQ,odbccr32.dll
Require_FileQ,odbccu32.dll
Require_FileQ,scrobj.dll
Require_FileQ,scrrun.dll
Require_FileQ,simpdata.tlb
Require_FileQ,sqlsrv32.dll
Require_FileQ,sqlsrv32.rll
Require_FileQ,stclient.dll
If,ExistFile,%Source_Sys%\vfpodbc.dll,Require_FileQ,vfpodbc.dll
Require_FileQ,wer.dll
Require_FileQ,werdiagcontroller.dll
Require_FileQ,WerFault.exe
Require_FileQ,WerFaultSecure.exe
If,ExistFile,%Source_Sys%\weretw.dll,Require_FileQ,weretw.dll
If,ExistFile,%Source_Sys%\werkernel.sys,Require_FileQ,werkernel.sys
Require_FileQ,wermgr.exe
Require_FileQ,werui.dll
Require_FileQ,wscript.exe
Require_FileQ,wshcon.dll
Require_FileQ,wshom.ocx
Require_FileQ,xolehlp.dll
//-
If,Not,ExistDir,%Target_Sys%\Com,DirMake,%Target_Sys%\Com
FileCopy,%Source_Sys%\Com\comadmin.dll,%Target_Sys%\Com
FileCopy,%Source_Sys%\Com\MigRegDB.exe,%Target_Sys%\Com
Loop,%ScriptFile%,CopyMigRegDBexemui_Loop,1,%NbLang%
//-
If,Not,ExistDir,%Target_Sys%\migration,DirMake,%Target_Sys%\migration
FileCopy,%Source_Sys%\migration\commig.dll,%Target_Sys%\migration
If,Not,ExistDir,%Target_Sys%\setup,DirMake,%Target_Sys%\setup
FileCopy,%Source_Sys%\setup\comsetup.dll,%Target_Sys%\setup
If,Not,ExistDir,%Target_Sys%\SMI\Store\Machine,DirMake,%Target_Sys%\SMI\Store\Machine
If,Not,ExistFile,%Target_Sys%\SMI\Store\Machine\SCHEMA.DAT,FileCopy,%Source_Sys%\SMI\Store\Machine\SCHEMA.DAT,%Target_Sys%\SMI\Store\Machine
If,ExistFile,%Source_Sys%\wbem\wdacetwprov.mof,Begin
If,Not,ExistDir,%Target_Sys%\wbem,DirMake,%Target_Sys%\wbem
FileCopy,%Source_Sys%\wbem\wdacetwprov.mof,%Target_Sys%\wbem
End
//-
ExtractFile,%ScriptFile%,Folder,mdac_%OS%.7z,%ProjectTemp%
ShellExecute,Hide,%Tools%\7z.exe,"x -y #$q%ProjectTemp%\mdac_%OS%.7z#$q -o#$q%ProjectTemp%#$q"
FileDelete,%ProjectTemp%\mdac_%OS%.7z
RegHiveLoad,Tmp_system,%RegSystem%
RegHiveLoad,Tmp_software,%RegSoftware%
ShellExecute,hide,regedit.exe,"/s #$q%ProjectTemp%\mdac_%OS%.reg#$q"
RegHiveUnLoad,Tmp_software
RegHiveUnLoad,Tmp_system
FileDelete,%ProjectTemp%\mdac_%OS%.reg

[CopyMigRegDBexemui_Loop]
StrFormat,Split,%MuiLangAll%,|,#c,#9
If,ExistFile,%Source_Sys%\Com\#9\MigRegDB.exe.mui,Begin
If,Not,ExistDir,%Target_Sys%\Com\#9,DirMake,%Target_Sys%\Com\#9
FileCopy,%Source_Sys%\Com\#9\MigRegDB.exe.mui,%Target_Sys%\Com\#9
Loop,BREAK
End

[AuthorEncoded]
Common.jpg=3554,4739
Logo=Common.jpg

[EncodedFile-AuthorEncoded-Common.jpg]
lines=1
[encoded data, 4743 characters]

[EncodedFolders]
Folder

[Folder]
hta_Win7.7z=24074,32099
hta_Win8.1.7z=35826,47768
hta_Win8.7z=35477,47303
hta_Win10.7z=34345,45794
mdac_Win7.7z=28595,38127
mdac_Win8.1.7z=28260,37680
mdac_Win8.7z=28250,37667
mdac_Win10.7z=27349,36466

[EncodedFile-Folder-hta_Win7.7z]
lines=7
[encoded data, 32115 characters]

[EncodedFile-Folder-hta_Win8.1.7z]
lines=11
[encoded data, 47794 characters]

[EncodedFile-Folder-hta_Win8.7z]
lines=11
[encoded data, 47329 characters]

[EncodedFile-Folder-hta_Win10.7z]
lines=11
[encoded data, 45820 characters]

[EncodedFile-Folder-mdac_Win7.7z]
lines=9
[encoded data, 38147 characters]

[EncodedFile-Folder-mdac_Win8.1.7z]
lines=9
[encoded data, 37700 characters]

[EncodedFile-Folder-mdac_Win8.7z]
lines=9
[encoded data, 37687 characters]

[EncodedFile-Folder-mdac_Win10.7z]
lines=8
[encoded data, 36484 characters]

[DownloadXXX]
Call,DownloadXQ

[UploadXXX]
Call,UploadXMultiQ,,%ProjectDir%\Utils\WebRoots_SE.Script||WebRoot

[InterfaceEncoded]
DoubleJDesignRavenna3dArrowDown0016016.bmp=622,830
BokehliciaCaptivaSoftwareupload0016016.bmp=676,902
AmperossQetto2Move0016016.bmp=893,1191

[EncodedFile-InterfaceEncoded-DoubleJDesignRavenna3dArrowDown0016016.bmp]
lines=0
0=eJzNk09Ik2Ecxw06BF2KqG5ih1EgYZZu7+v7vnu3d++2MpelRFHgQZEaJLVIXSxrW4Wauf7Nwha2rQ7dOgT9IQT1EkQHi+hSHfRSUZrMcp389PjSoUib3vrB9/I8fD78fr+Hxwi0LS+yyi6ySWSVyGqRZUUl1rnr1/3vBfy3+TTxkabuAzx4dp+lsu/G31LRXIrjaCmeVjtfpj4v2jH+YQwpWIYc3orctgUptJkT/UcWxc/1rLXYqYpKqGcklEglcns5DuF48uLhPx2TUxOYIRWlU8PZraOdU1GjMsop4RO9+DucfM1NzuvIfctR3Wai9hq4rvrREybOCy608xpqrAqlQzhObiOSbv2Ln8nPsDvsZ33dSoob1mE7XIIsetAvCUePG63TiRpXUE47rJ0MvRz8wzH9fZqR0SHSj1LUhn2s8a6gMi7hTm7HddmLftHA2aVT2mJjY3Mx7naJ/I/8vHN0Zc5avKNLw+gP4O7bgeuKD73XQyDqI5QM8ur96IJ7jKUiFi8nDDwDezBuCsf1amsnA4Opgm8Y7jtu8UrSj3lnL+btOjypXRg3dpIdThfkjyWCFu9M1eC7tx/vXeFIC8etWjKL4IPdTRZfFqtAvua1PJ5sPWamnuxIpiD/9Plj4ukIh3oaqGk3KG+0sWHfWhp7DvJm7PWS/9FcZmdnF+R+AlbU23p4nNNyyS9Nykn1ckktzkzPC0osS83LSzROcSwqyi93yS/P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