[main]
Title=Common components (WSH/MDAC/HTA/WMI/XML)
Type=Script
Selected=False
Locked=false
level=3
Description=Needs Windows Vista DVD as source
Author=NightMan
Date=12.10.2008
Version=12
Download_Level=2
Mandatory=False

[process]
IniRead,%VistaInfo%,"VistaInfo","SourceType","%SourceType%"
If,"%SourceType%",NotEqual,"VistaCD",Exit,"Requires Windows Vista installfiles or DVD..."
IniRead,%VistaInfo%,"VistaInfo","Language","%DistLang%"
If,%pCheckBox1%,Equal,true,Run,%ScriptFile%,FileWSH
If,%pCheckBox2%,Equal,true,Run,%ScriptFile%,FileMDAC
If,%pCheckBox3%,Equal,true,Run,%ScriptFile%,FileHTA
If,%pCheckBox4%,Equal,true,Run,%ScriptFile%,FileWMI
If,%pCheckBox5%,Equal,true,Run,%ScriptFile%,FileXML
Run,%ScriptFile%,FileCommon

[FileCommon]
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\framedynos.dll",FileCopy,"%InstallSRC%\Windows\System32\wbem\framedynos.dll","%TargetDir%\Windows\System32"
If,NotExistFile,"%TargetDir%\Windows\System32\framedynos.dll",Require_File,"framedynos.dll"

[FileWSH]
Echo,"Processing WSH files..."
FileCopy,"%InstallSRC%\Windows\System32\cscript.exe","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\dispex.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\jscript.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\msscript.ocx","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\scrobj.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\scrrun.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\vbscript.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\wscript.exe","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\wshcon.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\wshom.ocx","%TargetDir%\Windows\System32"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\cscript.exe.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\cscript.exe.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\jscript.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\jscript.dll.mui","%TargetDir%\Windows\System32\%DistLang%"
#If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\msscript.ocx.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\msscript.ocx.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\scrobj.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\scrobj.dll.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\scrrun.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\scrrun.dll.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\vbscript.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\vbscript.dll.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\wscript.exe.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\wscript.exe.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\wshom.ocx.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\wshom.ocx.mui","%TargetDir%\Windows\System32\%DistLang%"
#
ExtractFile,%ScriptFile%,"Folder","wsh.7z","%TempFolder%"
ShellExecute,Hide,#$q%Tools%\7z.exe#$q,"x -y #$q%TempFolder%\wsh.7z#$q -o#$q%TempFolder%#$q"
RegHiveLoad,Tmp_system,%RegSystem%
RegHiveLoad,Tmp_software,%RegSoftware%
ShellExecute,"hide","regedit.exe","/s #$q%TempFolder%\wsh.reg#$q"
RegHiveUnLoad,Tmp_software
RegHiveUnLoad,Tmp_system
FileDelete,"%TempFolder%\wsh.reg"
FileDelete,"%TempFolder%\wsh.7z"

[FileHTA]
Echo,"Processing HTA files..."
FileCopy,"%InstallSRC%\Windows\System32\icrav03.rat","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\ieframe.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\ieui.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\imgutil.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\inetcomm.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\INETRES.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\mshta.exe","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\mshtml.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\mshtml.tlb","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\mshtmled.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\msimtf.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\msrating.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\oledlg.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\pngfilt.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\ticrf.rat","%TargetDir%\Windows\System32"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\ieframe.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\ieframe.dll.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\ieui.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\ieui.dll.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\inetres.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\inetres.dll.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\mshta.exe.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\mshta.exe.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\mshtml.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\mshtml.dll.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\mshtmled.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\mshtmled.dll.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\msimtf.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\msimtf.dll.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\msrating.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\msrating.dll.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\oledlg.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\oledlg.dll.mui","%TargetDir%\Windows\System32\%DistLang%"
ExtractFile,%ScriptFile%,"Folder","hta.7z","%TempFolder%"
ShellExecute,Hide,#$q%Tools%\7z.exe#$q,"x -y #$q%TempFolder%\hta.7z#$q -o#$q%TempFolder%#$q"
RegHiveLoad,Tmp_system,%RegSystem%
RegHiveLoad,Tmp_software,%RegSoftware%
ShellExecute,"hide","regedit.exe","/s #$q%TempFolder%\hta.reg#$q"
RegHiveUnLoad,Tmp_software
RegHiveUnLoad,Tmp_system
FileDelete,"%TempFolder%\hta.reg"
FileDelete,"%TempFolder%\hta.7z"

[FileMDAC]
Echo,"Processing MDAC files..."
DirMake,"%TargetDir%\Program Files\Common Files\System\ado"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\ado\adojavas.inc","%TargetDir%\Program Files\Common Files\System\ado"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\ado\adovbs.inc","%TargetDir%\Program Files\Common Files\System\ado"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\ado\MDACReadme.htm","%TargetDir%\Program Files\Common Files\System\ado"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\ado\msader15.dll","%TargetDir%\Program Files\Common Files\System\ado"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\ado\msado15.dll","%TargetDir%\Program Files\Common Files\System\ado"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\ado\msado20.tlb","%TargetDir%\Program Files\Common Files\System\ado"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\ado\msado21.tlb","%TargetDir%\Program Files\Common Files\System\ado"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\ado\msado25.tlb","%TargetDir%\Program Files\Common Files\System\ado"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\ado\msado26.tlb","%TargetDir%\Program Files\Common Files\System\ado"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\ado\msado27.tlb","%TargetDir%\Program Files\Common Files\System\ado"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\ado\msado28.tlb","%TargetDir%\Program Files\Common Files\System\ado"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\ado\msadomd.dll","%TargetDir%\Program Files\Common Files\System\ado"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\ado\msador15.dll","%TargetDir%\Program Files\Common Files\System\ado"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\ado\msadox.dll","%TargetDir%\Program Files\Common Files\System\ado"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\ado\msadrh15.dll","%TargetDir%\Program Files\Common Files\System\ado"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\ado\msjro.dll","%TargetDir%\Program Files\Common Files\System\ado"
DirMake,"%TargetDir%\Program Files\Common Files\System\ado\%DistLang%"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\ado\%DistLang%\msader15.dll.mui","%TargetDir%\Program Files\Common Files\System\ado\%DistLang%"
DirMake,"%TargetDir%\Program Files\Common Files\System\msadc"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\msadc\adcjavas.inc","%TargetDir%\Program Files\Common Files\System\msadc"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\msadc\adcvbs.inc","%TargetDir%\Program Files\Common Files\System\msadc"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\msadc\handler.reg","%TargetDir%\Program Files\Common Files\System\msadc"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\msadc\handsafe.reg","%TargetDir%\Program Files\Common Files\System\msadc"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\msadc\msadce.dll","%TargetDir%\Program Files\Common Files\System\msadc"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\msadc\msadcer.dll","%TargetDir%\Program Files\Common Files\System\msadc"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\msadc\msadcf.dll","%TargetDir%\Program Files\Common Files\System\msadc"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\msadc\msadcfr.dll","%TargetDir%\Program Files\Common Files\System\msadc"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\msadc\msadco.dll","%TargetDir%\Program Files\Common Files\System\msadc"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\msadc\msadcor.dll","%TargetDir%\Program Files\Common Files\System\msadc"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\msadc\msadcs.dll","%TargetDir%\Program Files\Common Files\System\msadc"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\msadc\msadds.dll","%TargetDir%\Program Files\Common Files\System\msadc"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\msadc\msaddsr.dll","%TargetDir%\Program Files\Common Files\System\msadc"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\msadc\msdaprsr.dll","%TargetDir%\Program Files\Common Files\System\msadc"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\msadc\msdaprst.dll","%TargetDir%\Program Files\Common Files\System\msadc"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\msadc\msdarem.dll","%TargetDir%\Program Files\Common Files\System\msadc"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\msadc\msdaremr.dll","%TargetDir%\Program Files\Common Files\System\msadc"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\msadc\msdfmap.dll","%TargetDir%\Program Files\Common Files\System\msadc"
DirMake,"%TargetDir%\Program Files\Common Files\System\msadc\%DistLang%"
If,ExistFile,"%InstallSRC%\Program Files\Common Files\System\msadc\%DistLang%\msadcer.dll.mui",FileCopy,"%InstallSRC%\Program Files\Common Files\System\msadc\%DistLang%\msadcer.dll.mui","%TargetDir%\Program Files\Common Files\System\msadc\%DistLang%"
If,ExistFile,"%InstallSRC%\Program Files\Common Files\System\msadc\%DistLang%\msadcfr.dll.mui",FileCopy,"%InstallSRC%\Program Files\Common Files\System\msadc\%DistLang%\msadcfr.dll.mui","%TargetDir%\Program Files\Common Files\System\msadc\%DistLang%"
If,ExistFile,"%InstallSRC%\Program Files\Common Files\System\msadc\%DistLang%\msadcor.dll.mui",FileCopy,"%InstallSRC%\Program Files\Common Files\System\msadc\%DistLang%\msadcor.dll.mui","%TargetDir%\Program Files\Common Files\System\msadc\%DistLang%"
If,ExistFile,"%InstallSRC%\Program Files\Common Files\System\msadc\%DistLang%\msaddsr.dll.mui",FileCopy,"%InstallSRC%\Program Files\Common Files\System\msadc\%DistLang%\msaddsr.dll.mui","%TargetDir%\Program Files\Common Files\System\msadc\%DistLang%"
If,ExistFile,"%InstallSRC%\Program Files\Common Files\System\msadc\%DistLang%\msdaprsr.dll.mui",FileCopy,"%InstallSRC%\Program Files\Common Files\System\msadc\%DistLang%\msdaprsr.dll.mui","%TargetDir%\Program Files\Common Files\System\msadc\%DistLang%"
If,ExistFile,"%InstallSRC%\Program Files\Common Files\System\msadc\%DistLang%\msdaremr.dll.mui",FileCopy,"%InstallSRC%\Program Files\Common Files\System\msadc\%DistLang%\msdaremr.dll.mui","%TargetDir%\Program Files\Common Files\System\msadc\%DistLang%"
DirMake,"%TargetDir%\Program Files\Common Files\System\Ole DB"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\Ole DB\msdadc.dll","%TargetDir%\Program Files\Common Files\System\Ole DB"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\Ole DB\msdaenum.dll","%TargetDir%\Program Files\Common Files\System\Ole DB"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\Ole DB\msdaer.dll","%TargetDir%\Program Files\Common Files\System\Ole DB"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\Ole DB\msdaora.dll","%TargetDir%\Program Files\Common Files\System\Ole DB"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\Ole DB\msdaorar.dll","%TargetDir%\Program Files\Common Files\System\Ole DB"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\Ole DB\msdaosp.dll","%TargetDir%\Program Files\Common Files\System\Ole DB"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\Ole DB\msdaps.dll","%TargetDir%\Program Files\Common Files\System\Ole DB"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\Ole DB\msdasc.dll","%TargetDir%\Program Files\Common Files\System\Ole DB"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\Ole DB\msdasql.dll","%TargetDir%\Program Files\Common Files\System\Ole DB"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\Ole DB\msdasqlr.dll","%TargetDir%\Program Files\Common Files\System\Ole DB"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\Ole DB\msdatl3.dll","%TargetDir%\Program Files\Common Files\System\Ole DB"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\Ole DB\msdatt.dll","%TargetDir%\Program Files\Common Files\System\Ole DB"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\Ole DB\msdaurl.dll","%TargetDir%\Program Files\Common Files\System\Ole DB"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\Ole DB\msxactps.dll","%TargetDir%\Program Files\Common Files\System\Ole DB"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\Ole DB\oledb32.dll","%TargetDir%\Program Files\Common Files\System\Ole DB"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\Ole DB\oledb32r.dll","%TargetDir%\Program Files\Common Files\System\Ole DB"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\Ole DB\oledbjvs.inc","%TargetDir%\Program Files\Common Files\System\Ole DB"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\Ole DB\oledbvbs.inc","%TargetDir%\Program Files\Common Files\System\Ole DB"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\Ole DB\sqloledb.dll","%TargetDir%\Program Files\Common Files\System\Ole DB"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\Ole DB\sqloledb.rll","%TargetDir%\Program Files\Common Files\System\Ole DB"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\Ole DB\sqlxmlx.dll","%TargetDir%\Program Files\Common Files\System\Ole DB"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\Ole DB\sqlxmlx.rll","%TargetDir%\Program Files\Common Files\System\Ole DB"
DirMake,"%TargetDir%\Program Files\Common Files\System\Ole DB\%DistLang%"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\Ole DB\%DistLang%\msdaorar.dll.mui","%TargetDir%\Program Files\Common Files\System\Ole DB\%DistLang%"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\Ole DB\%DistLang%\msdasqlr.dll.mui","%TargetDir%\Program Files\Common Files\System\Ole DB\%DistLang%"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\Ole DB\%DistLang%\oledb32r.dll.mui","%TargetDir%\Program Files\Common Files\System\Ole DB\%DistLang%"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\Ole DB\%DistLang%\sqloledb.rll.mui","%TargetDir%\Program Files\Common Files\System\Ole DB\%DistLang%"
FileCopy,"%InstallSRC%\Program Files\Common Files\System\Ole DB\%DistLang%\sqlxmlx.rll.mui","%TargetDir%\Program Files\Common Files\System\Ole DB\%DistLang%"
FileCopy,"%InstallSRC%\Windows\hh.exe","%TargetDir%\Windows"
FileCopy,"%InstallSRC%\Windows\msdfmap.ini","%TargetDir%\Windows"
FileCopy,"%InstallSRC%\Windows\%DistLang%\hh.exe.mui","%TargetDir%\Windows\%DistLang%"
FileCopy,"%InstallSRC%\Windows\System32\12520437.cpx","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\12520850.cpx","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\catsrv.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\catsrvut.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\clbcatq.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\cliconfg.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\cliconfg.exe","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\cliconfg.rll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\colbact.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\comsvcs.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\cscript.exe","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\dbnetlib.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\dbnmpntw.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\dispex.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\ds16gt.dLL","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\ds32gt.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\Faultrep.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\hhctrl.ocx","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\hhsetup.dll","%TargetDir%\Windows\System32"
#FileCopy,"%InstallSRC%\Windows\System32\mqad.dll","%TargetDir%\Windows\System32"
#FileCopy,"%InstallSRC%\Windows\System32\mqcmiplugin.dll","%TargetDir%\Windows\System32"
#FileCopy,"%InstallSRC%\Windows\System32\mqmigplugin.dll","%TargetDir%\Windows\System32"
#FileCopy,"%InstallSRC%\Windows\System32\mqrt.dll","%TargetDir%\Windows\System32"
#FileCopy,"%InstallSRC%\Windows\System32\mqsec.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\mscpx32r.dLL","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\msdadiag.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\msdart.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\msdatsrc.tlb","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\msdtcprx.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\msjet40.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\msjint40.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\msjter40.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\msjtes40.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\msorc32r.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\msorcl32.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\mswdat10.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\mswstr10.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\msxml3.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\msxml3r.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\msxml6.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\msxml6r.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\mtstocom.exe","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\mtxclu.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\odbc16gt.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\odbc32gt.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\odbcad32.exe","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\odbcbcp.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\odbcconf.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\odbcconf.exe","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\odbcconf.rsp","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\odbccr32.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\odbccu32.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\odbcji32.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\odbcjt32.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\oddbse32.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\odexl32.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\odfox32.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\odpdx32.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\odtext32.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\scrobj.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\scrrun.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\simpdata.tlb","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\sqlsrv32.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\sqlsrv32.rll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\sqlunirl.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\sqlwid.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\sqlwoa.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\stclient.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\vfpodbc.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\wer.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\werdiagcontroller.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\WerFault.exe","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\WerFaultSecure.exe","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\wermgr.exe","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\wscript.exe","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\wshcon.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\wshom.ocx","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\xolehlp.dll","%TargetDir%\Windows\System32"
DirMake,"%TargetDir%\Windows\System32\Com"
FileCopy,"%InstallSRC%\Windows\System32\Com\comadmin.dll","%TargetDir%\Windows\System32\Com"
FileCopy,"%InstallSRC%\Windows\System32\Com\MigRegDB.exe","%TargetDir%\Windows\System32\Com"
DirMake,"%TargetDir%\Windows\System32\Com\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\Com\%DistLang%\MigRegDB.exe.mui",FileCopy,"%InstallSRC%\Windows\System32\Com\%DistLang%\MigRegDB.exe.mui","%TargetDir%\Windows\System32\Com\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\cliconfg.rll.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\cliconfg.rll.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\cscript.exe.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\cscript.exe.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\faultrep.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\faultrep.dll.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\hhctrl.ocx.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\hhctrl.ocx.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\msjint40.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\msjint40.dll.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\msorc32r.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\msorc32r.dll.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\mswstr10.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\mswstr10.dll.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\msxml3r.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\msxml3r.dll.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\msxml6r.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\msxml6r.dll.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\mtstocom.exe.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\mtstocom.exe.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\odbcad32.exe.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\odbcad32.exe.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\odbcad32.exe.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\odbcconf.exe.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\odbcji32.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\odbcji32.dll.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\scrobj.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\scrobj.dll.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\scrrun.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\scrrun.dll.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\sqlsrv32.rll.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\sqlsrv32.rll.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\wer.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\wer.dll.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\WerFault.exe.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\WerFault.exe.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\WerFaultSecure.exe.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\WerFaultSecure.exe.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\wscript.exe.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\wscript.exe.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\wshom.ocx.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\wshom.ocx.mui","%TargetDir%\Windows\System32\%DistLang%"
DirMake,"%TargetDir%\Windows\System32\migration"
FileCopy,"%InstallSRC%\Windows\System32\migration\commig.dll","%TargetDir%\Windows\System32\migration"
DirMake,"%TargetDir%\Windows\System32\setup"
FileCopy,"%InstallSRC%\Windows\System32\setup\comsetup.dll","%TargetDir%\Windows\System32\setup"
DirMake,"%TargetDir%\Windows\System32\SMI\Store\Machine"
FileCopy,"%InstallSRC%\Windows\System32\SMI\Store\Machine\SCHEMA.DAT","%TargetDir%\Windows\System32\SMI\Store\Machine"
#FileCopy,"%InstallSRC%\Windows\System32\SMI\Store\Machine\SCHEMA.DAT.LOG","%TargetDir%\Windows\System32\SMI\Store\Machine"
#FileCopy,"%InstallSRC%\Windows\winsxs\FileMaps\$$_*_40104e69a1d105cc.cdf-ms","%TargetDir%\Windows\winsxs\FileMaps"
#FileCopy,"%InstallSRC%\Windows\winsxs\FileMaps\$$_help_mui_*_*.cdf-ms","%TargetDir%\Windows\winsxs\FileMaps"
#FileCopy,"%InstallSRC%\Windows\winsxs\FileMaps\$$_system32_*.cdf-ms","%TargetDir%\Windows\winsxs\FileMaps"
#FileCopy,"%InstallSRC%\Windows\winsxs\FileMaps\program_files_common_files_system_ado_*.cdf-ms","%TargetDir%\Windows\winsxs\FileMaps"
#FileCopy,"%InstallSRC%\Windows\winsxs\FileMaps\program_files_common_files_system_msadc_*.cdf-ms","%TargetDir%\Windows\winsxs\FileMaps"
#FileCopy,"%InstallSRC%\Windows\winsxs\FileMaps\program_files_common_files_system_ole_db_*.cdf-ms","%TargetDir%\Windows\winsxs\FileMaps"
#
ExtractFile,%ScriptFile%,"Folder","mdac.7z","%TempFolder%"
ShellExecute,Hide,#$q%Tools%\7z.exe#$q,"x -y #$q%TempFolder%\mdac.7z#$q -o#$q%TempFolder%#$q"
RegHiveLoad,Tmp_system,%RegSystem%
RegHiveLoad,Tmp_software,%RegSoftware%
ShellExecute,"hide","regedit.exe","/s #$q%TempFolder%\mdac.reg#$q"
RegHiveUnLoad,Tmp_software
RegHiveUnLoad,Tmp_system
FileDelete,"%TempFolder%\mdac.reg"
FileDelete,"%TempFolder%\mdac.7z"

[FileWMI]
Echo,"Processing WMI files..."
FileCopy,"%InstallSRC%\Windows\hh.exe","%TargetDir%\Windows"
FileCopy,"%InstallSRC%\Windows\%DistLang%\hh.exe.mui","%TargetDir%\Windows\%DistLang%"
FileCopy,"%InstallSRC%\Windows\System32\bcdprov.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\cscript.exe","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\dfrgifc.exe","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\dfrgifps.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\dispex.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\dskquota.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\hhctrl.ocx","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\hhsetup.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\scrobj.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\scrrun.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\tcpmib.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\WmiMgmt.msc","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\wscript.exe","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\wshcon.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\wshom.ocx","%TargetDir%\Windows\System32"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\cscript.exe.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\cscript.exe.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\dfrgifc.exe.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\dfrgifc.exe.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\dfrgifps.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\dfrgifps.dll.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\dskquota.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\dskquota.dll.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\hhctrl.ocx.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\hhctrl.ocx.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\scrobj.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\scrobj.dll.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\scrrun.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\scrrun.dll.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\WmiMgmt.msc",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\WmiMgmt.msc","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\wscript.exe.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\wscript.exe.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\wshom.ocx.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\wshom.ocx.mui","%TargetDir%\Windows\System32\%DistLang%"
DirMake,"%TargetDir%\Windows\System32\migration"
FileCopy,"%InstallSRC%\Windows\System32\migration\WMIMigrationPlugin.dll","%TargetDir%\Windows\System32\migration"
DirMake,"%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\bcd.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\CbsCore.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\cimwin32.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\cimwin32.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\cli.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\cliegaliases.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\esscli.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\fastprox.dll","%TargetDir%\Windows\System32\wbem"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\framedyn.dll",FileCopy,"%InstallSRC%\Windows\System32\wbem\framedyn.dll","%TargetDir%\Windows\System32\wbem"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\framedynos.dll",FileCopy,"%InstallSRC%\Windows\System32\wbem\framedynos.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\IMAPIv2-Base.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\IMAPIv2-FileSystemSupport.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\IMAPIv2-LegacyShim.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\kerberos.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\KrnlProv.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\krnlprov.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\Microsoft-Windows-Remote-FileSystem.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\mofcomp.exe","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\mofd.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\mofinstall.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\msv1_0.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\NCProv.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\ncprov.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\ncsi.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\nlasvc.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\ntfs.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\PolicMan.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\PolicMan.mof","%TargetDir%\Windows\System32\wbem"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\provthrd.dll",FileCopy,"%InstallSRC%\Windows\System32\wbem\provthrd.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\rawxml.xsl","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\regevent.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\repdrvfs.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\rsop.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\schannel.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\scm.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\scrcons.exe","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\scrcons.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\secrcw32.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\SMTPCons.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\smtpcons.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\stdprov.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\subscrpt.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\system.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\tcpip.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\texttable.xsl","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\textvaluelist.xsl","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\unsecapp.exe","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\vds.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\vdswmi.dll","%TargetDir%\Windows\System32\wbem"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\wbemcomn.dll",FileCopy,"%InstallSRC%\Windows\System32\wbem\wbemcomn.dll","%TargetDir%\Windows\System32\wbem"
If,ExistFile,"%InstallSRC%\Windows\System32\wbemcomn.dll",FileCopy,"%InstallSRC%\Windows\System32\wbemcomn.dll","%TargetDir%\Windows\System32\wbem"
If,ExistFile,"%InstallSRC%\Windows\System32\wbemcomn.dll",FileCopy,"%InstallSRC%\Windows\System32\wbemcomn.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\wbem\wbemcons.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\WBEMCons.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\wbemcore.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\wbemdisp.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\wbemdisp.tlb","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\wbemess.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\wbemprox.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\wbemsvc.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\wbemtest.exe","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\Wdf01000.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\Wdf01000Uninstall.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\wdigest.mof","%TargetDir%\Windows\System32\wbem"
#FileCopy,"%InstallSRC%\Windows\System32\wbem\Win32_EncryptableVolume.dll","%TargetDir%\Windows\System32\wbem"
#FileCopy,"%InstallSRC%\Windows\System32\wbem\win32_encryptablevolume.mof","%TargetDir%\Windows\System32\wbem"
#FileCopy,"%InstallSRC%\Windows\System32\wbem\Win32_EncryptableVolumeUninstall.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\Win32_Tpm.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\Win32_Tpm.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\wininit.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\winlogon.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\WinMgmt.exe","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\WinMgmtR.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\wmi.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\WMIADAP.exe","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\WmiApRes.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\WmiApRpl.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\WmiApSrv.exe","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\WMIC.exe","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\WMICOOKR.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\WmiDcPrv.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\wmipcima.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\wmipcima.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\wmipdfs.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\wmipdfs.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\wmipdskq.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\wmipdskq.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\WMIPICMP.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\wmipicmp.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\wmiprov.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\WmiPrvSD.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\WmiPrvSE.exe","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\WMIPSESS.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\wmipsess.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\WMIsvc.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\wmiutils.dll","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\WMI_Tracing.mof","%TargetDir%\Windows\System32\wbem"
FileCopy,"%InstallSRC%\Windows\System32\wbem\xsl-mappings.xml","%TargetDir%\Windows\System32\wbem"
DirMake,"%TargetDir%\Windows\System32\wbem\%DistLang%"
DirMake,"%TargetDir%\Windows\System32\wbem\en-us"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\cimwin32.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\cimwin32.dll.mui","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\cimwin32.mfl",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\cimwin32.mfl","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\cliegaliases.mfl",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\cliegaliases.mfl","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\csv.xsl",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\csv.xsl","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\hform.xsl",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\hform.xsl","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\htable.xsl",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\htable.xsl","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\KrnlProv.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\KrnlProv.dll.mui","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\krnlprov.mfl",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\krnlprov.mfl","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\mof.xsl",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\mof.xsl","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\mofcomp.exe.mui",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\mofcomp.exe.mui","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\mofd.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\mofd.dll.mui","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\NCProv.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\NCProv.dll.mui","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\ncprov.mfl",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\ncprov.mfl","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\PolicMan.mfl",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\PolicMan.mfl","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\regevent.mfl",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\regevent.mfl","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\rsop.mfl",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\rsop.mfl","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\scrcons.exe.mui",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\scrcons.exe.mui","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\ScrCons.mfl",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\ScrCons.mfl","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\secrcw32.mfl",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\secrcw32.mfl","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\smtpcons.mfl",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\smtpcons.mfl","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\subscrpt.mfl",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\subscrpt.mfl","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\system.mfl",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\system.mfl","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\vds.mfl",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\vds.mfl","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\vdswmi.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\vdswmi.dll.mui","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\WbemCons.mfl",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\WbemCons.mfl","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\wbemcore.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\wbemcore.dll.mui","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\wbemtest.exe.mui",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\wbemtest.exe.mui","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\win32_tpm.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\win32_tpm.dll.mui","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\WinMgmt.exe.mui",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\WinMgmt.exe.mui","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\WinMgmtR.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\WinMgmtR.dll.mui","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\wmi.mfl",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\wmi.mfl","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\WmiApRes.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\WmiApRes.dll.mui","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\WmiApRpl.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\WmiApRpl.dll.mui","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\WmiApSrv.exe.mui",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\WmiApSrv.exe.mui","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\WMIC.exe.mui",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\WMIC.exe.mui","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\wmipcima.mfl",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\wmipcima.mfl","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\wmipdfs.mfl",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\wmipdfs.mfl","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\wmipdskq.mfl",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\wmipdskq.mfl","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\WMIPICMP.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\WMIPICMP.dll.mui","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\wmipicmp.mfl",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\wmipicmp.mfl","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\wmipsess.mfl",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\wmipsess.mfl","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\WMIsvc.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\WMIsvc.dll.mui","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\wmiutils.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\wmiutils.dll.mui","%TargetDir%\Windows\System32\wbem\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\wbem\%DistLang%\xml.xsl",FileCopy,"%InstallSRC%\Windows\System32\wbem\%DistLang%\xml.xsl","%TargetDir%\Windows\System32\wbem\%DistLang%"
DirMake,"%TargetDir%\Windows\System32\wbem\Repository"
FileCopy,"%InstallSRC%\Windows\System32\wbem\Repository\INDEX.BTR","%TargetDir%\Windows\System32\wbem\Repository"
FileCopy,"%InstallSRC%\Windows\System32\wbem\Repository\MAPPING1.MAP","%TargetDir%\Windows\System32\wbem\Repository"
FileCopy,"%InstallSRC%\Windows\System32\wbem\Repository\MAPPING2.MAP","%TargetDir%\Windows\System32\wbem\Repository"
FileCopy,"%InstallSRC%\Windows\System32\wbem\Repository\OBJECTS.DATA","%TargetDir%\Windows\System32\wbem\Repository"
DirMake,"%TargetDir%\Windows\System32\wbem\tmf"
FileCopy,"%InstallSRC%\Windows\System32\wbem\tmf\esscli.tmf","%TargetDir%\Windows\System32\wbem\tmf"
FileCopy,"%InstallSRC%\Windows\System32\wbem\tmf\fastprox.tmf","%TargetDir%\Windows\System32\wbem\tmf"
FileCopy,"%InstallSRC%\Windows\System32\wbem\tmf\mofcomp.tmf","%TargetDir%\Windows\System32\wbem\tmf"
FileCopy,"%InstallSRC%\Windows\System32\wbem\tmf\mofd.tmf","%TargetDir%\Windows\System32\wbem\tmf"
FileCopy,"%InstallSRC%\Windows\System32\wbem\tmf\ncprov.tmf","%TargetDir%\Windows\System32\wbem\tmf"
FileCopy,"%InstallSRC%\Windows\System32\wbem\tmf\repdrvfs.tmf","%TargetDir%\Windows\System32\wbem\tmf"
FileCopy,"%InstallSRC%\Windows\System32\wbem\tmf\wbemcomn.tmf","%TargetDir%\Windows\System32\wbem\tmf"
FileCopy,"%InstallSRC%\Windows\System32\wbem\tmf\wbemcore.tmf","%TargetDir%\Windows\System32\wbem\tmf"
FileCopy,"%InstallSRC%\Windows\System32\wbem\tmf\wbemess.tmf","%TargetDir%\Windows\System32\wbem\tmf"
FileCopy,"%InstallSRC%\Windows\System32\wbem\tmf\wbemprox.tmf","%TargetDir%\Windows\System32\wbem\tmf"
FileCopy,"%InstallSRC%\Windows\System32\wbem\tmf\wmiadap.tmf","%TargetDir%\Windows\System32\wbem\tmf"
FileCopy,"%InstallSRC%\Windows\System32\wbem\tmf\wmiprvsd.tmf","%TargetDir%\Windows\System32\wbem\tmf"
FileCopy,"%InstallSRC%\Windows\System32\wbem\tmf\wmiprvse.tmf","%TargetDir%\Windows\System32\wbem\tmf"
FileCopy,"%InstallSRC%\Windows\System32\wbem\tmf\wmisvc.tmf","%TargetDir%\Windows\System32\wbem\tmf"
DirMake,"%TargetDir%\Windows\System32\wbem\xml"
FileCopy,"%InstallSRC%\Windows\System32\wbem\xml\cim20.dtd","%TargetDir%\Windows\System32\wbem\xml"
FileCopy,"%InstallSRC%\Windows\System32\wbem\xml\wmi20.dtd","%TargetDir%\Windows\System32\wbem\xml"
FileCopy,"%InstallSRC%\Windows\System32\wbem\xml\wmi2xml.dll","%TargetDir%\Windows\System32\wbem\xml"
#FileCopy,"%InstallSRC%\Windows\winsxs\FileMaps\$$_system32_*.cdf-ms","%TargetDir%\Windows\winsxs\FileMaps"
#FileCopy,"%InstallSRC%\Windows\winsxs\FileMaps\$$_system32_migration_*.cdf-ms","%TargetDir%\Windows\winsxs\FileMaps"
#FileCopy,"%InstallSRC%\Windows\winsxs\FileMaps\$$_system32_wbem_*.cdf-ms","%TargetDir%\Windows\winsxs\FileMaps"
#
ExtractFile,%ScriptFile%,"Folder","wmi.7z","%TempFolder%"
ShellExecute,Hide,#$q%Tools%\7z.exe#$q,"x -y #$q%TempFolder%\wmi.7z#$q -o#$q%TempFolder%#$q"
RegHiveLoad,Tmp_system,%RegSystem%
RegHiveLoad,Tmp_software,%RegSoftware%
ShellExecute,"hide","regedit.exe","/s #$q%TempFolder%\wmi.reg#$q"
RegHiveUnLoad,Tmp_software
RegHiveUnLoad,Tmp_system
FileDelete,"%TempFolder%\wmi.reg"
FileDelete,"%TempFolder%\wmi.7z"

[FileXML]
Echo,"Processing XML files..."
FileCopy,"%InstallSRC%\Windows\System32\msxml3.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\msxml3r.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\msxml6.dll","%TargetDir%\Windows\System32"
FileCopy,"%InstallSRC%\Windows\System32\msxml6r.dll","%TargetDir%\Windows\System32"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\msxml3r.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\msxml3r.dll.mui","%TargetDir%\Windows\System32\%DistLang%"
If,ExistFile,"%InstallSRC%\Windows\System32\%DistLang%\msxml6r.dll.mui",FileCopy,"%InstallSRC%\Windows\System32\%DistLang%\msxml6r.dll.mui","%TargetDir%\Windows\System32\%DistLang%"
#FileCopy,"%InstallSRC%\Windows\winsxs\FileMaps\$$_system32_*.cdf-ms","%TargetDir%\Windows\winsxs\FileMaps"
#
ExtractFile,%ScriptFile%,"Folder","xml.7z","%TempFolder%"
ShellExecute,Hide,#$q%Tools%\7z.exe#$q,"x -y #$q%TempFolder%\xml.7z#$q -o#$q%TempFolder%#$q"
RegHiveLoad,Tmp_system,%RegSystem%
RegHiveLoad,Tmp_software,%RegSoftware%
ShellExecute,"hide","regedit.exe","/s #$q%TempFolder%\xml.reg#$q"
RegHiveUnLoad,Tmp_software
RegHiveUnLoad,Tmp_system
FileDelete,"%TempFolder%\xml.reg"
FileDelete,"%TempFolder%\xml.7z"

[Interface]
pCheckBox1="Enable WSH",1,3,10,40,200,18,True
pCheckBox2="Enable MDAC",1,3,10,63,200,18,True
pCheckBox3="Enable HTA",1,3,10,82,200,18,True
pCheckBox4="Enable WMI",1,3,10,102,200,18,True
pCheckBox5="Enable XML",1,3,10,122,200,18,True
pTextLabel1="Select components:",1,1,10,13,230,18,8,Bold
pTextLabel2="ALL components reqest Windows Vista DVD as source",1,1,10,153,418,20,8,Bold

[EncodedFolders]
Folder

[EncodedFile-Folder-xml.7z]
lines=2
[encoded data, 9557 characters]

[Folder]
xml.7z=6Kb,9Kb
hta.7z=40Kb,53Kb
mdac.7z=34Kb,46Kb
wmi.7z=17Kb,22Kb
wsh.7z=6Kb,8Kb

[EncodedFile-Folder-hta.7z]
lines=13
[encoded data, 54858 characters]

[EncodedFile-Folder-mdac.7z]
lines=11
[encoded data, 47168 characters]

[EncodedFile-Folder-wmi.7z]
lines=5
[encoded data, 23526 characters]

[EncodedFile-Folder-wsh.7z]
lines=2
[encoded data, 8916 characters]

