[Main]
Title=0 - PreConfig
Type=Plugin
Author=NightMan, yahooUK, JFX, ChrisR, Lancelot
Description=Mounting source and more...
Credits=http://www.7-zip.org/ , r3incarnat0r
Version=070
Download_Level=0
Level=1
Selected=True
Mandatory=True
NoWarning=False
Contact=http://TheOven.org
Date=2017.11.22
Depend=
Disable=
Web1=http://w7pese.cwcodes.net/Projects/Win7PESE/Build/0-preconfig.script
Web1C=
Web1CS=http://gena.cwcodes.net/Projects/Tools/Gena/Download_Pack.7z
CertifiedBy=
Certification=
HistoryNotes01=
History027=ChrisR - Win8pese. The old Win7pese history is stored in the section [History]
History028=ChrisR - Check Win8 RTM version
History029=ChrisR - Writing simplified of CheckWimTools
History030=ChrisR - Install WIMMount driver changed. It also uses WimMountInstall now. Except ADK8 version on XP Host where wimmount.inf is used. Same version number for Win7pese/Win8pese Plugin
History031=ChrisR - Error during installation of InstallWimSYS.exe, parameter sent with a quote, a mistake
History034=ChrisR - fix my previous error and same version number winpese
History035=ChrisR - Win8.1 compatibility
History036=ChrisR - Change Echo, Message with "Win8" for "Win8 or Win8.1"
History037=Lancelot - MyPlugins Project Add and MyPlugins Direct Project Add
History038=Lancelot - Added ClearTarget_CheckBox (to get clean TargetDir before Copy Files - Same option also exists (and required) at Copy Files besides this has other purpose)
History040=Lancelot - Added Clear_TargetImageWim
History041=Lancelot - Backup at first run (See Echo,"--------------- Plugin Manager" )
History042a=Lancelot - [History] --> [History_Old] ( [History] is now a special section ..... )
History042b=Lancelot - Call,DirDelete --> Call,DirDeleteE (deletes all Files/Folders inside a Directory. It does not delete the Directory.)
History042=Lancelot - Avoid deleting BaseDir - Halt -  Tony4219 Case: http://TheOven.org/index.php?topic=1427
History043=Kyhi - Moved create Custom Folder to copy files Plugin - interface change - added checkbox option to backup project
History045=ChrisR - Synchronize Plugin between SE projects
History046=ChrisR updated v046
History047=Lancelot Added ShowHide // Added Update_DLPlugins_CheckBox
History048=Lancelot Added PrepareCodeBox
History049=JFX - Added Hidden feature ("Main Configuration" + "PreConfig") Reason behind, I'm playing with different wimmount and wofadk drivers and everytime I build a project they get set to ADK 5 one.  -> IniWrite,%projectdir%\script.project,IniVariables,InstallWimSYSMount,1 + IniRead,%projectdir%\script.project,IniVariables,InstallWimSYSMount,%t% ....
History050=ChrisR check Windows 10 RTM 10.0.10240.16384
History051=Lancelot Implement Call,TargetVersion,,4x Call,HostOSVersion,,4x to avoid version bug and ease maintain in future etc. ;)
History052=Lancelot Added DownloadXXX_Container_Small to give instruction on getting latest Download_Pack.7z for new "Download Plugin" files on server
History053=Lancelot Hidden (later remove) DownloadXXX_Container_Small Auto_CheckBox DownloadXXX_Container_Bevel --> not required anymore Utils\Plugin Link Organisations now available on SE
History054=Lancelot Added Verify_Dependencies to have early halt (before 1 - Copy ;)) if something wrong (ex: .net long path)
History055=Lancelot Added halt when TargetDir is rootdisk -> "TargetDir can not be root drive (ex: D: )"
History056=ChrisR Install wimmount driver only if service is not installed and without extracted wim folders. - Date:2016.02.28
History057=ChrisR Check ProjectDir Subfolder for the first run backup - Date:2016.03.10
History059=JFX - If Wimmount ImagePath points to a not existing location delete this entry. - Date:2016.03.22 - Date:2016.04.06
History060=ChrisR - Implemented HostOSVersion - Date:2016.09.02
History061=Lancelot - Implemented Call,BackupProject Call,CreateCodeBox,,NoOverWrite - Date:2016.09.17
History062=Lancelot - Fixed section names PrepareCodeBox_P - Oscar Reply 2 http://TheOven.org/index.php?topic=1882.msg21336#msg21336 - Date:2016.09.18
History064=Lancelot - Changed %ISODir%\TargetImage -> %ISODir%\TI - Date:2016.11.11 // Delete %ISODir%\TI - Date:2016.11.15
History065=Lancelot - Check Win10 version at the end of [CheckWin10RTM] - halt if bigger than 10.0.xxxx.0 (eg: Windows 10 v1607 Redstone 1 Jul 2016 - http://TheOven.org/index.php?topic=2176.0 -- http://windowsiso.net/windows-10-iso/windows-10-anniversary-update-1607-download-build-14393-0/windows-10-anniversary-update-1607-iso-download-standard/ -- https://tb.rg-adguard.net/index.php) - Date:2017.08.06
History066=ChrisR - Compatible with Win10 1703 build 15063 - Date:2017.08.24
History067=Lancelot - Add NOCheck_CheckBox to test others sources easily - JFX R 1470 - what's the best way to disable the version check in Win10PESE? To easier test Insider versions. - Date:2017.09.23
History068=ChrisR - Compatible with Win10 1709 build 16299.15 - Date:2017.10.13
History069=Lancelot Fixed typo - Thanks to ied206 PEBakery Auto Syntax Checking Reply 3 http://TheOven.org/index.php?topic=2271.msg24582#msg24582 - Date:2017.11.08
History070=Lancelot %ISODir% deprecated - Date:2017.11.22

[Interface]
DownloadXXX_Container_Bevel=pBevel1,0,12,327,64,124,36
pTextLabel1="Preconfiguration Plugin, Mounting source and more...",1,1,12,20,304,18,8,Bold
ManualInstallWimSYS_Button="Install / UnInstall WIM Drivers manually",1,8,12,46,265,30,ManualInstallWimSYS,0,False,False,_ManualInstallWimSYS_,False
ManualInstallWimSYS_Label="in Host System32\Drivers Folder",1,1,18,76,165,18,8,Normal
PreRequesthtm_Button="PreRequest Files Info",1,8,12,96,130,20,PreRequesthtm,_PreRequesthtm_,False
WaikTroubles_Button="Waik Troubles (ReadMe)",1,8,147,96,130,20,WaikTroubles_ReadMe,0,False,False,_WaikTroubles_ReadMe_,False
Bevel_Options=pBevel1,0,12,209,126,340,139
PrepareCodeBox_CheckBox="Prepare CodeBox (531 miliseconds - 313 miliseconds)",0,3,233,203,292,18,True
PrepareCodeBox_Button=P,0,8,215,202,16,16,PrepareCodeBox_P,0,False,False,_PrepareCodeBox_P_,False
BackupProject_CheckBox="Backup Project Files on First Run (2nd run: 266 miliseconds)",0,3,233,129,311,18,True
BackupProject_Button=P,0,8,215,129,16,16,FirstRun_Copy_P,0,False,False,_FirstRun_Copy_P_,False,"__Process ''Backup Project Files on First Run (266 miliseconds 2nd run)''"
ClearTarget_CheckBox="Clear Target Folder Before Each Build",0,3,233,221,220,18,True
Clear_TargetImageWim_CheckBox="Clear Target Wim Folder Before Each Build",0,3,233,239,230,18,True
ClearTarget_Button="Clear Target Folder Now",1,8,12,175,155,20,ClearTarget,False,False,_ClearTarget_,False,"__Clear Target Folder"
Clear_TargetImageWim_Button="Clear Target Wim Folder Now",1,8,12,198,155,20,Clear_TargetImageWim,False,False,_Clear_TargetImageWim_,False,"__Clear TargetImage\Wim Folder"
FInstallwimmount_CheckBox="Force Install wimmount driver",0,3,16,148,178,18,False
DetectLangMethod_CheckBox="Detect Source DVD Language OLD School",0,3,12,301,327,18,False
Update_DLPlugins_Button=P,0,8,215,153,16,16,Update_DLPlugins_P,0,False,False,_Update_DLPlugins_P_,False,"__Process ''Update Download Plugins (610 milliseconds)''"
Update_DLPlugins_CheckBox="Update Download Plugins (2nd run: 156 miliseconds                  1st run: 1.360/2.656 Small/Big seconds)",0,3,232,147,307,30,True
DL_Download_Pack_Big_Button="DL Download_Pack_Big.7z (~20 MB)",0,8,328,178,198,25,DL_Download_Pack_Big_Button_B,DesignboltsThinDownloadDownloadButton0016016.bmp,False,False,_DL_Download_Pack_Big_Button_B_,False,"__Download - 'Download_Pack_Big.7z' (~20 MB)"
pButton_Show_Second_Gui=a,1,8,403,274,16,16,Show_Second_Gui,True,False,False,_Show_Second_Gui_,False,"__Advanced Options"
pButton_Show_First_Gui="<<--- Basic Options",0,8,403,274,114,21,Show_First_Gui,True,False,False,_Show_First_Gui_,False,"__Basic Options"
Button_Download=,1,8,403,21,24,24,DownloadXXX,DoubleJDesignRavenna3dArrowDown0016016.bmp,False,False,_DownloadXXX_,False,"__DOWNLOAD Plugin"
Button_Upload=,0,8,403,-1,24,24,UploadXXX,BokehliciaCaptivaSoftwareupload0016016.bmp,False,False,_UploadXXX_,False,"__UPLOAD Plugin (Admins Only)"
Button_CompareEdit=,0,8,426,-1,24,24,CompareEditXXX,AmperossQetto2Move0016016.bmp,False,False,_CompareEditXXX_,False,"__DOWNLOAD and Compare with an Editor"
DownloadXXX_Container_Small=,0,8,330,68,28,28,DownloadXXX_Container_Small,DesignboltsThinDownloadDownloadButton0016016.bmp,False,False,_DownloadXXX_Container_Small_,False,"__1-2 MB - Download Container Plugin"
Auto_CheckBox=AutoRefresh,0,3,360,75,85,16,True
pVerifyCheckBox="Verify Plugin dependencies",0,3,31,126,154,18,True
pVerify_Button=V,0,8,14,126,16,16,Verify_Dependencies_B,0,False,False,_Verify_Dependencies_B_,False,"__Verify Plugin dependencies"
NOCheck_CheckBox="BETA TEST - Test NOT SUPPORTED SOURCE",0,3,12,279,245,18,False,"__Test NOT SPORTED SOURCE"

[Variables]
%cmdexeFolder%=
%FileContainer%=%Tools%\Download_Pack.7z

[Process_INFORMATION]
//--
//InstWimFltr INFO:
//Always execute InstWimFltr.exe with AU3381.exe to be safeside (else if hostos do not have autoit installed InstWimFltr.exe will fail)
//InstWimFltr.exe v1 parameters
//InstWimFltr.exe -install
//InstWimFltr.exe -uninstall
//InstWimFltr.exe v1 modified 20101029 additional parameter
//InstWimFltr.exe -checkinstall -log:"C:\bu bir test\InstWimFltr.ini" --> [Info] hostoswimfltr=YES/NO // hostoswimfltrinstall=YES/NO
//InstWimFltr.exe v1 modified 20101030 --> now if you start with AU3381_x64.exe there will be no fileredirection :>.
//InstWimFltr.exe v1 modified 20110404 additional parameter [-wimfltr or -wimmount] [-status]
//InstallWimSYS.exe -status --> returns to the calling program : 0=service not installed, 1 =stopped, 4 =Running
//InstallWimSYS.exe both -wimfltr and -wimmount availability --> InstallWimSYS.exe -wimmount -checkinstall -log:"C:\bu bir test\InstWimFltr.ini"
//InstallWimSYS.exe Additional parameters Architecture (optional), to install the x86 drivers on a HostOS x64, if needed.
//--
//InstWimFltr.exe previous method--Begin
//Set,%wimfiltrsyshostos%,No
//Call,HostSystemDir
//System,FILEREDIRECT,OFF
//If,ExistFile,%HostSystemDir%\drivers\wimfltr.sys,Set,%wimfiltrsyshostos%,Yes
//System,FILEREDIRECT,ON
//If,Not,%wimfiltrsyshostos%,Equal,Yes,ShellExecute,Hide,%Tools%\AU3381.exe,"#$q%Tools%\InstWimFltr.exe#$q -install"
//InstWimFltr.exe previous method--End

[ManualInstallWimSYS]
System,FILEREDIRECT,OFF
ShellExecute,Open,%Tools%\InstallWimSYS.exe
System,FILEREDIRECT,ON

[Process]
Echo,"%ScriptTitle% For %ProjectName%"
//--
StrFormat,Path,%IsoFile%,%IsoFolder%
StrFormat,CTrim,%IsoFolder%,\,%IsoFolder%
//--
If,%TargetDir%,Equal,%BaseDir%,Call,Echo,"TargetDir=BaseDir SOMETHING REALLY WRONG - Report Log to http://TheOven.org",Warn,,MessageError,,Halt
If,%TargetDir%,Equal,%BaseDir%,Halt,"TargetDir=BaseDir SOMETHING REALLY WRONG - Report Log to http://TheOven.org"
If,%IsoFolder%,Equal,%BaseDir%,Call,Echo,"IsoFolder=BaseDir SOMETHING REALLY WRONG - Report Log to http://TheOven.org",Warn,,MessageError,,Halt
If,%IsoFolder%,Equal,%BaseDir%,Halt,"IsoFolder=BaseDir SOMETHING REALLY WRONG - Report Log to http://TheOven.org"
If,%IsoFolder%\TI\WIM,Equal,%BaseDir%,Call,Echo,"IsoFolder\TI\WIM=BaseDir SOMETHING REALLY WRONG - Report Log to http://TheOven.org",Warn,,MessageError,,Halt
If,%IsoFolder%\TI\WIM,Equal,%BaseDir%,Halt,"IsoFolder\TI\WIM=BaseDir SOMETHING REALLY WRONG - Report Log to http://TheOven.org"
//-
Set,%t%,-
StrFormat,SPLIT,%TargetDir%,\,0,%t%
If,%t%,Equal,1,Call,Echo,"TargetDir can not be root drive (ex: D: )",Warn,,MessageError,,Halt
If,%t%,Equal,1,Halt,"TargetDir can not be root drive (ex: D: )"
If,%t%,Equal,2,StrFormat,SPLIT,%TargetDir%,\,2,%t%
If,%t%-,Equal,-,Call,Echo,"TargetDir can not be root drive (ex: D:\ )",Warn,,MessageError,,Halt
If,%t%-,Equal,-,Halt,"TargetDir can not be root drive (ex: D:\ )"
//--
If,%pVerifyCheckBox%,Equal,True,Run,%ScriptFile%,Verify_Dependencies
//--
Call,TargetVersion,,4x
Echo,TargetVersion:%TargetVersion%-----%TargetVersion1%---%TargetVersion2%---%TargetVersion3%---%TargetVersion4%
Call,HostOSVersion,,4x
Echo,HostOSVersion:%HostOSVersion%-----%HostOSVersion1%---%HostOSVersion2%---%HostOSVersion3%---%HostOSVersion4%
//-
If,%PrepareCodeBox_CheckBox%,Equal,True,Run,%ScriptFile%,PrepareCodeBox_P
//-
If,%BackupProject_CheckBox%,Equal,True,Run,%ScriptFile%,FirstRun_Copy_P
//-
If,%Update_DLPlugins_CheckBox%,Equal,True,Run,%ScriptFile%,Update_DLPlugins_P
//-
Echo,"Preparing system..."
IniRead,%projectdir%\script.project,IniVariables,OS,%OS%
IniRead,%projectdir%\script.project,IniVariables,WIMEditionID,%WIMEditionID%
IniRead,%projectdir%\script.project,IniVariables,WimToolsMode,%WimToolsMode%
IniRead,%projectdir%\script.project,IniVariables,WIMDriver,%WIMDriver%
IniRead,%projectdir%\script.project,IniVariables,ShowImageX,%ShowImageX%
IniRead,%projectdir%\script.project,IniVariables,ExtractWimFolder,%ExtractWimFolder%
If,ExistFile,%ProjectTemp%\HostOSTools\cmd.exe,Set,%CmdexeFolder%,%ProjectTemp%\HostOSTools\
//-- utility peimg for WinVista
If,%OS%,Equal,WinVista,Run,%ScriptFile%,CheckPEimg
//-- check wim tools
Run,%ScriptFile%,CheckWimTools
//-- Install WimFilter (wimfltr or wimmount) except for Extracted Wim folder (driver used only for debug Plugins), building works without ANY driver.
If,Not,%ExtractWimFolder%,Equal,Yes,Run,%ScriptFile%,InstallWimSYS
//-- Save Settings before mounted
Run,%ScriptFile%,SaveSettings
//-- As is name, make Directory
Run,%ScriptFile%,MakeDirectory
// If not extracted wim folder - Mount and check that mounted successfully
If,Not,%ExtractWimFolder%,Equal,Yes,Begin
Run,%ScriptFile%,MountWin
Run,%ScriptFile%,CheckMountInstallWim
Run,%ScriptFile%,CheckMountBootWim
End
//-
//If,%OS%,Equal,Win7,Run,%ScriptFile%,CheckWin7RTM
//If,%OS%,Equal,Win8,Run,%ScriptFile%,CheckWin8RTM
//If,%OS%,Equal,Win8.1,Run,%ScriptFile%,CheckWin8.1RTM
//If,%OS%,Equal,Win10,Run,%ScriptFile%,CheckWin10RTM
If,%NOCheck_CheckBox%,Equal,True,Echo,"BETA TEST for NOT SUPPORTED SOURCE - End User responsible with the result.",Warn
If,%TargetVersion1%.%TargetVersion2%_%NOCheck_CheckBox%,Equal,6.1_False,Run,%ScriptFile%,CheckWin7RTM
If,%TargetVersion1%.%TargetVersion2%_%NOCheck_CheckBox%,Equal,6.2_False,Run,%ScriptFile%,CheckWin8RTM
If,%TargetVersion1%.%TargetVersion2%_%NOCheck_CheckBox%,Equal,6.3_False,Run,%ScriptFile%,CheckWin8.1RTM
If,%TargetVersion1%.%TargetVersion2%_%NOCheck_CheckBox%,Equal,10.0_False,Run,%ScriptFile%,CheckWin10RTM
//-- Check Bcdedit exist
Run,%ScriptFile%,CheckBCDedit
//-- DetectLang OLD School
If,%DetectLangMethod_CheckBox%,Equal,True,Run,%ScriptFile%,DetectLang_OLD_School
//--  MyPlugins Project Add and MyPlugins Direct Project Add
If,ExistFile,%ProjectDir%\Utils\MyPlugins_Project_Add.script,Run,%ProjectDir%\Utils\MyPlugins_Project_Add.script,MyPlugins_Add,%ProjectDir%\Utils\MyPlugins_Project_Add.script,Direct
If,ExistFile,%ProjectDir%\Utils\MyPlugins_Project_Add.script,Run,%ProjectDir%\Utils\MyPlugins_Project_Add.script,MyPlugins_Add,%ProjectDir%\Utils\MyPlugins_Project_Add.script,MyPlugins
//--
If,%ClearTarget_CheckBox%,Equal,True,Run,%ScriptFile%,ClearTarget
If,%Clear_TargetImageWim_CheckBox%,Equal,True,Run,%ScriptFile%,Clear_TargetImageWim

[CheckWimTools]
Set,%WimTools%,""
Set,%IMAGEX%,""
Set,%WIMUTIL%,""
Set,%WimGapiFound%,Noo
Set,%WimtoolsFound%,Noo
Set,%WimtoolsArch%,%OSArch%
//--
Run,%ScriptFile%,CheckWimToolsArch
// If Hostos x64 and wim tools not found in %tools%\x64 then try with the x86 version
If,Not,%WimtoolsFound%,Equal,Yes,If,%OSArch%,Equal,x64,Begin
Set,%WimtoolsArch%,x86
Run,%ScriptFile%,CheckWimToolsArch
End
If,Not,%WimGapiFound%,Equal,Yes,Run,%ScriptFile%,WimGapiNotFound
//
If,Not,%WimtoolsFound%,Equal,Yes,Run,%ScriptFile%,ImageToolsNotFound
// additional check (not really necessary)
If,%WimTools%,Equal,ImageX,If,Not,ExistFile,%IMAGEX%,Run,%ScriptFile%,ImageToolsNotFound
If,%WimTools%,Equal,WimUtil,If,Not,ExistFile,%WIMUTIL%,Run,%ScriptFile%,ImageToolsNotFound

[CheckWimToolsArch]
If,%OS%,Equal,Win7,Begin
If,ExistFile,%Tools%\%WimtoolsArch%\wimgapi.dll,FileDelete,%Tools%\%WimtoolsArch%\wimgapi.dll
If,%WIMDriver%,Equal,Wimfltr,Begin
If,ExistFile,%Tools%\%WimtoolsArch%\wimgapi6.0.dll,FileCopy,%Tools%\%WimtoolsArch%\wimgapi6.0.dll,%Tools%\%WimtoolsArch%\wimgapi.dll
End
If,%WIMDriver%,Equal,Wimmount,Begin
If,ExistFile,%Tools%\%WimtoolsArch%\wimgapi6.2.dll,FileCopy,%Tools%\%WimtoolsArch%\wimgapi6.2.dll,%Tools%\%WimtoolsArch%\wimgapi.dll
End
End
//-
If,ExistFile,%Tools%\%WimtoolsArch%\wimgapi.dll,Begin
Set,%WimGapiFound%,Yes
If,%WIMToolsMode%,Equal,Auto,Begin
Run,%ScriptFile%,FoundImageX
If,Not,%WimtoolsFound%,Equal,Yes,Run,%ScriptFile%,FoundWimUtil
End
If,%WIMToolsMode%,Equal,ImageX,Run,%ScriptFile%,FoundImageX
If,%WIMToolsMode%,Equal,WimUtil,Run,%ScriptFile%,FoundWimUtil
End

[FoundImageX]
If,%OS%,Equal,Win7,Begin
If,ExistFile,%Tools%\%WimtoolsArch%\imagex.exe,FileDelete,%Tools%\%WimtoolsArch%\imagex.exe
If,%WIMDriver%,Equal,Wimfltr,Begin
If,ExistFile,%Tools%\%WimtoolsArch%\imagex6.0.exe,FileCopy,%Tools%\%WimtoolsArch%\imagex6.0.exe,%Tools%\%WimtoolsArch%\imagex.exe
End
If,%WIMDriver%,Equal,Wimmount,Begin
If,ExistFile,%Tools%\%WimtoolsArch%\imagex6.2.exe,FileCopy,%Tools%\%WimtoolsArch%\imagex6.2.exe,%Tools%\%WimtoolsArch%\imagex.exe
End
End
//-
If,ExistFile,%Tools%\%WimtoolsArch%\imagex.exe,Begin
Set,%IMAGEX%,%Tools%\%WimtoolsArch%\imagex.exe
Set,%WimTools%,ImageX
Set,%WimtoolsFound%,Yes
End

[FoundWimUtil]
If,ExistFile,%Tools%\%WimtoolsArch%\WimUtil.exe,Begin
Set,%WIMUTIL%,%Tools%\%WimtoolsArch%\WimUtil.exe
Set,%WimTools%,WimUtil
Set,%WimtoolsFound%,Yes
End

[WimGapiNotFound]
Message,"Wimgapi was not found.#$x#$xCheck Wimgapi.dll file, mandatory for %OS% !!!#$x#$xExiting...",Error
Run,%ScriptFile%,PreRequesthtm
Halt,"Wimgapi was not found. Exiting..."

[ImageToolsNotFound]
Message,"Image Tools ImageX/WimUtil was not found.#$x#$xCheck Imagex.exe/WimUtil.exe files, mandatory for %OS% !!!#$x#$xExiting...",Error
Run,%ScriptFile%,PreRequesthtm
Halt,"Image Tools ImageX/WimUtil was not found. Exiting..."

[InstallWimSYS]
Set,%InstallDriver%,Noo
If,%WIMDriver%,Equal,Wimfltr,Run,%ScriptFile%,InstallWimSYSFltr
//-
If,%WIMDriver%,Equal,Wimmount,Begin
If,%FInstallwimmount_CheckBox%,Equal,True,Run,%ScriptFile%,InstallWimSYSMount
Else,Begin
// Install wimmount driver only if service is not installed: status=0
ShellExecute,Hide,%Tools%\%OSArch%\AU3381.exe,"#$q%Tools%\InstallWimSYS.exe#$q -wimmount -status"
If,%ExitCode%,Equal,0,Run,%ScriptFile%,InstallWimSYSMount
Else,Begin
// If Wimmount service ImagePath points to a not existing location delete this entry. Thanks JFX
If,ExistRegKey,HKLM,SYSTEM\CurrentControlSet\services\WIMMount,ImagePath,Begin
RegRead,HKLM,SYSTEM\CurrentControlSet\services\WIMMount,ImagePath,%WIMMountImagePath%
Set,%WIMMountImagePathExist%,No
Call,HostWindowsDir
System,FILEREDIRECT,OFF
If,ExistFile,%WIMMountImagePath%,Set,%WIMMountImagePathExist%,Yes
If,ExistFile,%HostWindowsDir%\%WIMMountImagePath%,Set,%WIMMountImagePathExist%,Yes
System,FILEREDIRECT,ON
If,%WIMMountImagePathExist%,Equal,No,RegDelete,HKLM,SYSTEM\CurrentControlSet\services\WIMMount,ImagePath
End
Set,%InstallDriver%,Yes
End
End
End
//-
// No Message and No Halt If Extracted Wim folder (test done before), building works without ANY driver (driver used only for debug Plugins)
If,Not,%InstallDriver%,Equal,Yes,Run,%ScriptFile%,WimDriverNotInstalled

[InstallWimSYSFltr]
Echo,"Install WimFltr filter ..."
If,ExistFile,%Tools%\%OSArch%\wimfltr.inf,Set,%winfltrinf%,Yes
If,ExistFile,%Tools%\%OSArch%\wimfltr.sys,Set,%winfltrsys%,Yes
If,%winfltrinf%%winfltrsys%,Equal,YesYes,Begin
ShellExecute,Hide,%Tools%\%OSArch%\AU3381.exe,"#$q%Tools%\InstallWimSYS.exe#$q -wimfltr -checkinstall -log:#$q%ProjectTemp%\InstallWimSYS.ini#$q"
IniRead,%ProjectTemp%\InstallWimSYS.ini,Info,hostoswimfltr,%CheckFltr%
IniRead,%ProjectTemp%\InstallWimSYS.ini,Info,hostoswimfltrinstall,%CheckFltrInstall%
If,%CheckFltr%,Equal,YES,Set,%InstallDriver%,Yes
If,%CheckFltrInstall%,Equal,YES,Set,%InstallDriver%,Yes
End
Else,Begin
//WimFltr not a must BUT project always tested with this so better a warning on log to ease supporting
Echo,"WimFltr Driver - Files Not ALL found in Tools\%OSArch%",Warn
Echo,"WimFltr Driver - Files Not ALL found in Tools\%OSArch%",Warn
Echo,"WimFltr Driver - Files Not ALL found in Tools\%OSArch%",Warn
// If all the required files are not present check -status (returns to the calling program : 0=service not installed, 1 =stopped), 4 =Running)
ShellExecute,Hide,%Tools%\%OSArch%\AU3381.exe,"#$q%Tools%\InstallWimSYS.exe#$q -wimfltr -status"
If,Not,%ExitCode%,Equal,0,Set,%InstallDriver%,Yes
End

[InstallWimSYSMount]
Echo,"Install Wimmount filter ..."
If,ExistFile,%Tools%\%OSArch%\wimmount.inf,Set,%wimmountinf%,Yes
If,ExistFile,%Tools%\%OSArch%\wimmount.sys,Set,%wimmountsys%,Yes
If,ExistFile,%Tools%\%OSArch%\WimMountInstall.exe,Set,%WimMountInstallexe%,Yes
If,ExistFile,%Tools%\%OSArch%\wimserv.exe,Set,%wimservexe%,Yes
//-
If,%wimmountinf%%wimmountsys%%WimMountInstallexe%%wimservexe%,Equal,YesYesYesYes,Begin
// Always install to get the driver Waik/ADK suitable to the source OS version
// Install via wimmount.inf: the driver is installed System32\drivers and wimmount service use this Path
// Install via Win7 Waik WimMountInstall.exe: the driver is installed System32\drivers and wimmount service use this Path (same as wimmount.inf)
// Install via Win8 or Win8.1 ADK WimMountInstall.exe: wimmount service uses the existing driver in tools, without copying it
// Warning: Win8 ADK doesn't support XP, Win8.1 ADK doesn't support Vista in addition. In this case, use wimmount.inf install method.
//Set,%XP2k3HostOS%,No
//If,%HostOSVersion1%,Equal,5,Set,%XP2k3HostOS%,Yes
//If,%XP2k3HostOS%,Equal,Yes,Begi-n
If,%HostOSVersion1%,Smaller,6,Begin
ShellExecute,Hide,%Tools%\%OSArch%\AU3381.exe,"#$q%Tools%\InstallWimSYS.exe#$q -wimmount -install"
End
Else,Begin
ShellExecute,Hide,%Tools%\%OSArch%\WimMountInstall.exe,/install
End
// Check that the service/driver is properly installed. If not retry the installation with wimmount.inf method
ShellExecute,Hide,%Tools%\%OSArch%\AU3381.exe,"#$q%Tools%\InstallWimSYS.exe#$q -wimmount -checkinstall -log:#$q%ProjectTemp%\InstallWimSYS.ini#$q"
IniRead,%ProjectTemp%\InstallWimSYS.ini,Info,hostoswimmount,%CheckMount%
IniRead,%ProjectTemp%\InstallWimSYS.ini,Info,hostoswimmountinstall,%CheckMountInstall%
If,%CheckMount%,Equal,YES,Set,%InstallDriver%,Yes
If,%CheckMountInstall%,Equal,YES,Set,%InstallDriver%,Yes
End
Else,Begin
// Wimmount not a must BUT project always tested with this so better a warning on log to ease supporting
Echo,"wimmount Driver - Files Not ALL found in Tools\%OSArch%",Warn
Echo,"wimmount Driver - Files Not ALL found in Tools\%OSArch%",Warn
Echo,"wimmount Driver - Files Not ALL found in Tools\%OSArch%",Warn
// If all the required files are not present check -status (returns to the calling program : 0=service not installed, 1 =stopped), 4 =Running)
ShellExecute,Hide,%Tools%\%OSArch%\AU3381.exe,"#$q%Tools%\InstallWimSYS.exe#$q -wimmount -status"
If,Not,%ExitCode%,Equal,0,Set,%InstallDriver%,Yes
End
//
//-->Here better check Wimftlr service if running or not (reg check not enough) (credits JFX & Wimb: sc.exe query wimfltr can be used to check, Status 4 (4=Running --> trouble with imagex 6.1 // 1=Stopped --> good)
// No check if Wimftlr service running and Extracted Wim folder (driver used only for debug Plugins), building works without ANY driver
If,Not,%ExtractWimFolder%,Equal,Yes,Begin
If,%InstallDriver%,Equal,Yes,Begin
ShellExecute,Hide,%Tools%\%OSArch%\AU3381.exe,"#$q%Tools%\InstallWimSYS.exe#$q -wimfltr -status"
If,%ExitCode%,Equal,4,Begin
Message,"Wimfltr Service Running #$x#$xWimgapi.dll not compatible with Wimfltr Running#$xTo fix Read 'Waik Troubles'.#$x#$xExiting...",Error
Echo,"Wimfltr Service Running - Wimgapi.dll not compatible with Wimfltr Running - To fix Read 'Waik Troubles' on Preconfig. Exiting..."
Run,%ScriptFile%,WaikTroubles_ReadMe
Halt,"Wimfltr Service Running - Wimgapi.dll not compatible with Wimfltr Running - To fix Read 'Waik Troubles' on Preconfig. Exiting..."
End
End
End

[WimDriverNotInstalled]
If,%WIMDriver%,Equal,Wimfltr,Begin
Message,"WimFltr driver NOT Installed. Check WimFltr files !!!#$x#$xExiting...",Error
Run,%ScriptFile%,PreRequesthtm
Halt,"Check WimFltr driver NOT Installed. Check WimFltr.sys, Wimfltr.inf files. Exiting..."
End
//-
If,%WIMDriver%,Equal,Wimmount,Begin
Message,"Wimmount driver NOT Installed. Check Wimmount files !!!#$x#$xExiting...",Error
Run,%ScriptFile%,PreRequesthtm
Halt,"Check Wimmount driver NOT Installed. Check Wimmount.sys, Wimmount.inf, Wimserv.exe files. Exiting..."
End

[CheckWin7RTM]
//Retrieve,FILEVERSION,%Source_Win%\explorer.exe,%ExplorerexeVer%
//If,Not,%ExplorerexeVer%,Equal,6.1.7601.17514,If,Not,%ExplorerexeVer%,Equal,6.1.7600.16385,Run,%ScriptFile%,Win7RTMNotFound,"explorer.exe %ExplorerexeVer%"
//Retrieve,FILEVERSION,%Source_Sys%\UXInit.dll,%UXInitdllVer%
//If,Not,%UXInitdllVer%,Equal,6.1.7601.17514,If,Not,%UXInitdllVer%,Equal,6.1.7600.16385,Run,%ScriptFile%,Win7RTMNotFound,"UXInit.dll %UXInitdllVer%"
//Retrieve,FILEVERSION,%Source_Sys%\tzres.dll,%tzresdllVer%
//If,Not,%tzresdllVer%,Equal,6.1.7601.17514,If,Not,%tzresdllVer%,Equal,6.1.7600.16385,Run,%ScriptFile%,Win7RTMNotFound,"tzres.dll %tzresdllVer%"
//--
//If,Not,%TargetVersion%,Equal,6.1.7601.17514,Run,%ScriptFile%,Win7RTMNotFound,"TargetVersion %TargetVersion%"

[CheckWin8RTM]
Retrieve,FILEVERSION,%Source_Win%\explorer.exe,%ExplorerexeVer%
If,Not,%ExplorerexeVer%,Equal,6.2.9200.16384,Run,%ScriptFile%,Win8RTMNotFound,"explorer.exe %ExplorerexeVer%"
Retrieve,FILEVERSION,%Source_Sys%\UXInit.dll,%UXInitdllVer%
If,Not,%UXInitdllVer%,Equal,6.2.9200.16384,Run,%ScriptFile%,Win8RTMNotFound,"UXInit.dll %UXInitdllVer%"
Retrieve,FILEVERSION,%Source_Sys%\tzres.dll,%tzresdllVer%
If,Not,%tzresdllVer%,Equal,6.2.9200.16384,Run,%ScriptFile%,Win8RTMNotFound,"tzres.dll %tzresdllVer%"
//--
//If,Not,%TargetVersion%,Equal,6.2.9200.16384,Run,%ScriptFile%,Win8RTMNotFound,"TargetVersion %TargetVersion%"

[CheckWin8.1RTM]
// Windows 8.1, no check for now
//Retrieve,FILEVERSION,%InstallSRC%\Windows\System32\ntdll.dll,%ntdlldllVer%
//If,Not,%ntdlldllVer%,Equal,6.3.9600.16384,Run,%ScriptFile%,Win8.1RTMNotFound,"ntdll.dll %ntdlldllVer%"
//Retrieve,FILEVERSION,%InstallSRC%\Windows\explorer.exe,%ExplorerexeVer%
//If,Not,%ExplorerexeVer%,Equal,6.3.9600.16384,Run,%ScriptFile%,Win8.1RTMNotFound,"explorer.exe %ExplorerexeVer%"
//--
//If,Not,%TargetVersion%,Equal,6.3.9600.16384,Run,%ScriptFile%,Win8.1RTMNotFound,"TargetVersion %TargetVersion%"

[CheckWin10RTM]
//Retrieve,FILEVERSION,%InstallSRC%\Windows\System32\ntdll.dll,%ntdlldllVer%
//If,Not,%ntdlldllVer%,Equal,10.0.10240.16384,Run,%ScriptFile%,Win10RTMNotFound,"ntdll.dll %ntdlldllVer%"
//Retrieve,FILEVERSION,%InstallSRC%\Windows\explorer.exe,%ExplorerexeVer%
//If,Not,%ExplorerexeVer%,Equal,10.0.10240.16384,Run,%ScriptFile%,Win10RTMNotFound,"explorer.exe %ExplorerexeVer%"
//--
//If,Not,%TargetVersion%,Equal,10.0.10240.16384,Run,%ScriptFile%,Win10RTMNotFound,"TargetVersion %TargetVersion%"
//--
//Call,TargetVersion
// Test Latest Win 10 compatible version: Win10 1709 build 16299.15
Call,CompareVersions,%TargetVersion%,10.0.16300.0,Win10_1709
If,Not,%Win10_1709%,Equal,Smaller,Call,Echo,"Your Windows 10 Source version %TargetVersion% is not supported !!!#$x#$xYou must select a folder with Win10 v 10.0.16299.15 or below#$x#$xTip: Download Windows 10 v1709 Fall Creator Update#$x#$xhttps://tb.rg-adguard.net/index.php#$x#$xhttp://windowsiso.net",Warn,,MessageError,,Halt

[Win7RTMNotFound]
Message,"#1 detected. Your Windows 7 source version is not supported !!!#$x#$xYou must select a folder with Windows 7 RTM SP0 or SP1 files in 'Source Directory'#$x#$xTo download an official version of Windows 7 SP0 or SP1, use the button in the main Win7PESE plugin#$xExiting...",Error
Halt,"#1 detected. Your Windows 7 source version is not supported. You must select a folder with Windows 8 RTM SP0 or SP1 files in 'Source Directory'. To download an official version of Windows 7 SP0 or SP1, use the button in the main Win7PESE plugin. Exiting..."

[Win8RTMNotFound]
Message,"#1 detected. Your Windows 8 source version is not supported !!!#$x#$xYou must select a folder with Windows 8 RTM 6.2.9200.16384 files in 'Source Directory'#$x#$xTo download an official version of Windows 8 RTM 6.2.9200.16384, use the button in the main Win8PESE plugin#$xExiting...",Error
Halt,"#1 detected. Your Windows 8 source version is not supported. You must select a folder with Windows 8 RTM 6.2.9200.16384 files in 'Source Directory'. To download an official version of Windows 8 RTM 6.2.9200.16384, use the button in the main Win8PESE plugin. Exiting..."

[Win8.1RTMNotFound]
Message,"#1 detected. Your Windows 8.1 source version is not supported !!!#$x#$xYou must select a folder with Windows 8.1 RTM in 'Source Directory'#$x#$xTo download an official version of Windows 8.1, use the button in the main Win8.1SE plugin#$xExiting...",Error
Halt,"#1 detected. Your Windows 8.1 source version is not supported. You must select a folder with Windows 8.1 RTM files in 'Source Directory'. To download an official version of Windows 8.1, use the button in the main Win8.1SE plugin. Exiting..."

[Win10RTMNotFound]
Message,"#1 detected. Your Windows 10 source version is not supported !!!#$x#$xYou must select a folder with Windows 10 RTM 10.0.10240.16384 files in 'Source Directory'#$x#$xTo download an official version of Windows 10 RTM 10.0.10240.16384, use the button in the main Win10PESE plugin#$xExiting...",Error
Halt,"#1 detected. Your Windows 10 source version is not supported. You must select a folder with Windows 10 RTM 10.0..10240.16384 files in 'Source Directory'. To download an official version of Windows 10 RTM 10.0.10240.16384, use the button in the main Win10PESE plugin. Exiting..."

[Find-Win]
Echo,"Detecting Microsoft Windows Windows DVD..."
Set,%WinCDFound%,Noo
If,ExistFile,%SourceDir%\sources\boot.wim,,Set,%WinCDFound%,Yes
If,ExistFile,%SourceDir%\sources\install.wim,Set,%WinCDFound%,Yes
If,Not,%WinCDFound%,Equal,Yes,Run,%ScriptFile%,SourceWinNotFound

[SourceWinNotFound]
Message,"Can not detect %OS% Source !!!#$x#$xYou must select a folder with %OS% files in 'Source Directory'#$x#$xExiting...",Error
Halt,"Can not detect %OS% Source. Exiting..."

[MountWin]
// Find Win already done in config Plugin
//Run,%ScriptFile%,Find-Win
//-
IniRead,%projectdir%\script.project,IniVariables,WIMIndex,%WIMIndex%
If,%WimTools%,Equal,ImageX,Begin
Echo,"Mounting Windows %OS% boot.wim with %WimTools%..."
ShellExecute,%ShowImageX%,%IMAGEX%,"/mount #$q%SourceDir%\sources\boot.wim#$q 2 #$q%BootSRC%#$q"
Echo,"%WimTools% mount boot.wim return : %ExitCode%"
//-
Echo,"Mounting Windows %OS% install.wim (Index : %WIMIndex% - %WIMEditionID%) with %WimTools%..."
ShellExecute,%ShowImageX%,%IMAGEX%,"/mount #$q%SourceDir%\sources\install.wim#$q %WIMIndex% #$q%InstallSRC%#$q"
Echo,"%WimTools% mount install.wim return : %ExitCode%"
End
//-
If,%WimTools%,Equal,WimUtil,Begin
Echo,"Mounting Windows %OS% boot.wim with %WimTools%..."
IniRead,%projectdir%\script.project,IniVariables,ShowWimUtil,%ShowWimUtil%
ShellExecute,Hide,%WIMUTIL%,"/mount #$q%SourceDir%\sources\boot.wim#$q 2 #$q%BootSRC%#$q %ShowWimUtil%"
Echo,"%WimTools% mount boot.wim return : %ExitCode%"
//-
Echo,"Mounting Windows %OS% install.wim (Index : %WIMIndex% - %WIMEditionID%) with %WimTools%..."
ShellExecute,Hide,%WIMUTIL%,"/mount #$q%SourceDir%\sources\install.wim#$q %WIMIndex% #$q%InstallSRC%#$q %ShowWimUtil%"
Echo,"%WimTools% mount install.wim return : %ExitCode%"
End

[CheckMountBootWim]
If,Not,ExistFile,%BootSRC%\Windows\regedit.exe,Message,"Error with mounting source! (Boot.wim)",ERROR
If,Not,ExistFile,%BootSRC%\Windows\regedit.exe,Halt,"Error with mounting source! (Boot.wim)"

[CheckMountInstallWim]
If,Not,ExistFile,%Source_Win%\explorer.exe,Message,"Error with mounting source! (Install.wim)",ERROR
If,Not,ExistFile,%Source_Win%\explorer.exe,Halt,"Error with mounting source! (Install.wim)"

[SaveSettings]
Echo,"Saving settings..."
IniWrite,%projectdir%\script.project,IniVariables,WIMTool,%WimTools%
If,%WimTools%,Equal,ImageX,Set,%WIMToolFile%,%IMAGEX%
If,%WimTools%,Equal,WimUtil,Set,%WIMToolFile%,%WIMUTIL%
//--
IniWrite,%projectdir%\script.project,IniVariables,WIMToolFile,%WIMToolFile%
If,ExistVar,%ProjectInfo%,Begin
If,Not,ExistFile,%ProjectInfo%,FileCreateBlank,%ProjectInfo%
IniAddSection,%ProjectInfo%,ProjectInfo
IniWrite,%ProjectInfo%,ProjectInfo,WimTools,%WimTools%
IniWrite,%ProjectInfo%,ProjectInfo,ImageX,%IMAGEX%
IniWrite,%ProjectInfo%,ProjectInfo,WimUtil,%WIMUTIL%
End
If,ExistSection,%projectdir%\script.project,VariablesReadEnv,Begin
IniWrite,%projectdir%\script.project,VariablesReadEnv,#$pWimTools#$p,%WimTools%
IniWrite,%projectdir%\script.project,VariablesReadEnv,#$pImageX#$p,%IMAGEX%
IniWrite,%projectdir%\script.project,VariablesReadEnv,#$pWimUtil#$p,%WIMUTIL%
End
If,ExistSection,%projectdir%\script.project,IniVariablesReadEnv,Begin
IniWrite,%projectdir%\script.project,IniVariablesReadEnv,WimTools,%WimTools%
IniWrite,%projectdir%\script.project,IniVariablesReadEnv,ImageX,%IMAGEX%
IniWrite,%projectdir%\script.project,IniVariablesReadEnv,WimUtil,%WIMUTIL%
End

[CheckBCDedit]
If,Not,ExistFile,%Tools%\%SourceArch%\bcdedit.exe,FileCopy,%Source_Sys%\bcdedit.exe,%Tools%\%SourceArch%
If,Not,ExistFile,%Tools%\%OSArch%\bcdedit.exe,If,ExistFile,%ProjectTemp%\HostOSTools\bcdedit.exe,FileCopy,%ProjectTemp%\HostOSTools\bcdedit.exe,%Tools%\%OSArch%
//
// Use bcdedit.exe (x86) on a x64 HostOS works, but not the reverse
If,%OSArch%,Equal,x86,If,Not,ExistFile,%Tools%\%OSArch%\bcdedit.exe,Begin
Message,"%Tools%\%OSArch%\bcdedit.exe NOT found. Build Stop Now",Error
Run,%ScriptFile%,PreRequesthtm
Halt,"%Tools%\%OSArch%\bcdedit.exe NOT found. Build Stop Now"
End
//
Set,%BcdEditExe%,%Tools%\%OSArch%\bcdedit.exe
If,Not,ExistFile,%BcdEditExe%,Set,%BcdEditExe%,%Tools%\x86\bcdedit.exe
//
If,%OS%,Equal,Win7,Set,%CheckBcdeditVer%,6.1.7600.16385
If,%OS%,Equal,Win8,Set,%CheckBcdeditVer%,6.2.9200.16384
If,%OS%,Equal,Win8.1,Set,%CheckBcdeditVer%,6.3.9600.16384
If,%OS%,Equal,Win10,Set,%CheckBcdeditVer%,10.0.10240.16384
Retrieve,FileVersion,%BcdEditExe%,%bcdedit_Ver%
Call,CompareVersions,%bcdedit_Ver%,%CheckBcdeditVer%
If,%CompareVersions%,Equal,Smaller,Echo,"INFO: bcdedit.exe is NOT v%CheckBcdeditVer% or later",Warn

[CheckPEimg]
If,Not,ExistFile,%Tools%\peimg.exe,Message,"%Tools%\peimg.exe NOT found. Build Stop Now",Error
If,Not,ExistFile,%Tools%\peimg.exe,Run,%ScriptFile%,PreRequesthtm
If,Not,ExistFile,%Tools%\peimg.exe,Halt,"%Tools%\peimg.exe NOT found. Build Stop Now"

[MakeDirectory]
Echo,"Make Directory..."
If,Not,ExistDir,%BaseDir%\Temp,DirMake,%BaseDir%\Temp
If,Not,ExistDir,%BootSRC%,DirMake,%BootSRC%
If,Not,ExistDir,%InstallSRC%,DirMake,%InstallSRC%
If,Not,ExistDir,%IsoFolder%,DirMake,%IsoFolder%
If,Not,ExistDir,%TargetDir%,DirMake,%TargetDir%

[PreRequesthtm]
If,Not,ExistDir,%ProjectTemp%,DirMake,%ProjectTemp%
If,%OS%,Equal,Win7,Set,%PreRequest7z%,PreRequestWin7.7z
Else,Set,%PreRequest7z%,PreRequest.7z
ExtractFile,%ScriptFile%,Folder,%PreRequest7z%,%ProjectTemp%
ShellExecute,Hide,%Tools%\7z.exe,"x #$q%ProjectTemp%\%PreRequest7z%#$q -y -o#$q%ProjectTemp%#$q"
System,FILEREDIRECT,OFF
ShellExecuteex,Hide,cmd.exe,"/C #$q%ProjectTemp%\PreRequest.htm#$q",%ProjectTemp%
System,FILEREDIRECT,ON

[WaikTroubles_ReadMe]
If,Not,ExistDir,%ProjectTemp%,DirMake,%ProjectTemp%
ExtractFile,%ScriptFile%,Folder,Waik_Troubles.htm,%ProjectTemp%
System,FILEREDIRECT,OFF
ShellExecuteex,Hide,cmd.exe,"/C #$q%ProjectTemp%\Waik_Troubles.htm#$q",%ProjectTemp%
System,FILEREDIRECT,ON

[DetectLang_OLD_School]
Set,%searchfile%,winload.exe.mui
Set,%w%,%ProjectTemp%\InfoSourceOS_ISRC.au3
Set,%InfoSourceOSIni%,InfoSourceOS_ISRCini.ini
Set,%searchfold%,%Source_Sys%\Boot
Run,%ScriptFile%,FindLangIDNumberPEXau3
IniRead,%ProjectTemp%\%InfoSourceOSIni%,infoSourceos,Fileoslang,%LangIDNumber%
IniRead,%ProjectTemp%\%InfoSourceOSIni%,infoSourceos,SubFolder,%LocalizeLocaleMini%
If,Not,%LangIDNumber%,Equal,0000,Set,%DistLang%,%LocalizeLocaleMini%,PERMANENT
Else,Run,%ScriptFile%,DetectLangBootwim_OLD_School
// SaveSettings Language
If,ExistVar,%ProjectInfo%,IniWrite,%ProjectInfo%,ProjectInfo,Language,%DistLang%
If,ExistSection,%projectdir%\script.project,VariablesReadEnv,IniWrite,%projectdir%\script.project,VariablesReadEnv,#$pLanguage#$p,%DistLang%
If,ExistSection,%projectdir%\script.project,IniVariablesReadEnv,IniWrite,%projectdir%\script.project,VariablesReadEnv,Language,%DistLang%
Shellexecute,Hide,%cmdexeFolder%cmd.exe,"/C del /q /f #$q%w%#$q"
If,ExistFile,%w%,Echo,"FILE NOT DELETED",WARN
Shellexecute,Hide,%cmdexeFolder%cmd.exe,"/C del /q /f #$q%ProjectTemp%\%InfoSourceOSIni%#$q"
If,ExistFile,%ProjectTemp%\%InfoSourceOSIni%,Echo,"FILE NOT DELETED",WARN

[DetectLangBootwim_OLD_School]
//Set,%searchfile%,winload.exe.mui
Set,%w%,%ProjectTemp%\InfoSourceOS_BSRC.au3
Set,%InfoSourceOSIni%,InfoSourceOS_BSRCini.ini
Set,%searchfold%,%BootSRC%\Windows\System32\Boot
Run,%ScriptFile%,FindLangIDNumberPEXau3
//IniRead,%ProjectTemp%\%InfoSourceOSIni%,infoSourceos,Fileoslang,%LangIDNumber%
IniRead,%ProjectTemp%\%InfoSourceOSIni%,infoSourceos,SubFolder,%LocalizeLocaleMini%
Set,%DistLang%,%LocalizeLocaleMini%,PERMANENT
Shellexecute,Hide,%cmdexeFolder%cmd.exe,"/C del /q /f #$q%w%#$q"
If,ExistFile,%w%,Echo,"FILE NOT DELETED",WARN
Shellexecute,Hide,%cmdexeFolder%cmd.exe,"/C del /q /f #$q%ProjectTemp%\%InfoSourceOSIni%#$q"
If,ExistFile,%ProjectTemp%\%InfoSourceOSIni%,Echo,"FILE NOT DELETED",WARN

[FindLangIDNumberPEXau3]
FileCreateBlank,%w%
TxtAddline,%w%,"#RequireAdmin",Append
TxtAddline,%w%,"#NoTrayIcon",Append
TxtAddline,%w%,"",Append
TxtAddline,%w%,"Global $MUI_FILE=_BL_FIND_FILE(#$q%searchfold%#$q)",Append
TxtAddline,%w%,"Global $FileLang=StringStripWS(FileGetVersion($MUI_FILE, #$qDefaultLangCodepage#$q), 3)",Append
TxtAddline,%w%,"$FileLang=StringLeft($FileLang, 4)",Append
TxtAddline,%w%,"If $FileLang=#$q#$q Then $FileLang = #$q0000#$q",Append
TxtAddline,%w%,"IniWrite(#$q%InfoSourceOSIni%#$q, #$qinfoSourceos#$q, #$qFileoslang#$q, $FileLang)",Append
TxtAddline,%w%,"IniWrite(#$q%InfoSourceOSIni%#$q, #$qinfoSourceos#$q, #$qFullPath#$q, $MUI_FILE)",Append
TxtAddline,%w%,"",Append
TxtAddline,%w%,"$MUI_FILE=StringLeft($MUI_FILE,StringInStr($MUI_FILE,#$q\#$q,0,-1)-1)",Append
TxtAddline,%w%,"$MUI_FILE=StringTrimLeft($MUI_FILE,StringInStr($MUI_FILE,#$q\#$q,0,-1))",Append
TxtAddline,%w%,"IniWrite(#$q%InfoSourceOSIni%#$q, #$qinfoSourceos#$q, #$qSubFolder#$q, $MUI_FILE)",Append
TxtAddline,%w%,"",Append
TxtAddline,%w%,"Func _BL_FIND_FILE($BL_PATH, $BL_FILE=#$q%searchfile%#$q)",Append
TxtAddline,%w%,"	Local $BL_Found_File",Append
TxtAddline,%w%,"	If Not StringInStr(FileGetAttrib($BL_PATH), #$qD#$q) Then Return -1",Append
TxtAddline,%w%,"	If StringRight($BL_PATH, 1) <> #$q\#$q Then $BL_PATH &=#$q\#$q",Append
TxtAddline,%w%,"	Local $BL_SEARCH=FileFindFirstFile($BL_PATH & #$q*.*#$q), $BL_FND_FILE",Append
TxtAddline,%w%,"	If $BL_SEARCH <> -1 Then",Append
TxtAddline,%w%,"		While 1",Append
TxtAddline,%w%,"			$BL_FND_FILE=FileFindNextFile($BL_SEARCH)",Append
TxtAddline,%w%,"			If @error Then ExitLoop",Append
TxtAddline,%w%,"			If StringInStr(FileGetAttrib($BL_PATH & $BL_FND_FILE), #$qD#$q) Then",Append
TxtAddline,%w%,"				$BL_Found_File=_BL_FIND_FILE($BL_PATH & $BL_FND_FILE)",Append
TxtAddline,%w%,"				If $BL_Found_File <> #$q#$q Then Return $BL_Found_File",Append
TxtAddline,%w%,"			Else",Append
TxtAddline,%w%,"				If $BL_FILE=$BL_FND_FILE Then",Append
TxtAddline,%w%,"					Return $BL_PATH & $BL_FND_FILE",Append
TxtAddline,%w%,"				EndIf",Append
TxtAddline,%w%,"			EndIf",Append
TxtAddline,%w%,"		WEnd",Append
TxtAddline,%w%,"	EndIf",Append
TxtAddline,%w%,"	Return SetError(1, 0, #$q#$q)",Append
TxtAddline,%w%,"EndFunc   ;==>_BL_FIND_FILE",Append
ShellExecute,Hide,%Tools%\%SysType%\AU3381.exe,"#$q%w%#$q",%ProjectTemp%

[ClearTarget]
If,ExistDir,%TargetDir%,Echo,"Deleting [%TargetDir%]"
If,ExistDir,%TargetDir%,Call,DirDeleteE,%TargetDir%
//If,ExistDir,%TargetDir%,Call,DirDelete,%TargetDir%
//If,ExistDir,%TargetDir%,Call,Echo,"%TargetDir% could not be deleted!",Warn,,Message,,Exit

[Clear_TargetImageWim]
StrFormat,Path,%IsoFile%,%IsoFolder%
StrFormat,CTrim,%IsoFolder%,\,%IsoFolder%
//--
//Clear old TargetImage Folder
If,ExistDir,%IsoFolder%\TargetImage,Call,DirDelete,%IsoFolder%\TargetImage
//-
If,ExistDir,%IsoFolder%\TI\Wim,Call,DirDelete,%IsoFolder%\TI\Wim
If,ExistDir,%IsoFolder%\TI,Echo,"Deleting [%IsoFolder%\TI]"
If,ExistDir,%IsoFolder%\TI,Call,DirDeleteE,%IsoFolder%\TI
//-
//If,ExistDir,%IsoFolder%\TargetImage\WIM,Echo,"Deleting [%IsoFolder%\TargetImage\WIM]"
//If,ExistDir,%IsoFolder%\TargetImage\WIM,Call,DirDeleteE,%IsoFolder%\TargetImage\WIM
//If,ExistDir,%IsoFolder%\TargetImage\WIM,Call,DirDelete,%IsoFolder%\TargetImage\WIM
//If,ExistDir,%IsoFolder%\TargetImage\WIM,Call,Echo,"%IsoFolder%\TargetImage\WIM could not be deleted!",Warn,,Message,,Exit

[FirstRun_Copy_P]
Call,BackupProject

[PrepareCodeBox_P]
Call,CreateCodeBox,,NoOverWrite

[Update_DLPlugins_P]
If,ExistFile,"%ProjectDir%\Utils\Plugin Organisations.Script",Begin
If,ExistSection,"%ProjectDir%\Utils\Plugin Organisations.Script",ExtractDownload,Begin
Run,"%ProjectDir%\Utils\Plugin Organisations.Script",ExtractDownload,"%ProjectDir%\Utils\Plugin Organisations.Script",NoRefresh
End
End

[DL_Download_Pack_Big_Button_B]
If,ExistFile,"%ProjectDir%\Utils\Plugin Organisations.Script",Begin
If,ExistSection,"%ProjectDir%\Utils\Plugin Organisations.Script",DownloadXXX_Container_Big,Begin
Exec,"%ProjectDir%\Utils\Plugin Organisations.Script",DownloadXXX_Container_Big
End
End

[Show_Second_Gui]
System,CURSOR,Wait
Run,%ScriptFile%,Show-Hide-First_Gui,False
Run,%ScriptFile%,Show-Hide-Second_Gui,True
System,RefreshInterface
System,CURSOR,Normal

[Show_First_Gui]
System,CURSOR,Wait
//-
Set,%PrepareCodeBox_CheckBox%,True,PERMANENT
Set,%BackupProject_CheckBox%,True,PERMANENT
Set,%ClearTarget_CheckBox%,True,PERMANENT
Set,%Clear_TargetImageWim_CheckBox%,True,PERMANENT
Set,%Update_DLPlugins_CheckBox%,True,PERMANENT
Set,%pVerifyCheckBox%,True,PERMANENT
Set,%NOCheck_CheckBox%,False,PERMANENT
//-
Run,%ScriptFile%,Show-Hide-Second_Gui,False
Run,%ScriptFile%,Show-Hide-First_Gui,True
System,RefreshInterface
System,CURSOR,Normal

[Show-Hide-Second_Gui]
Echo,"Changing Interface"
//--
Visible,%Button_Upload%,#1,PERMANENT
Visible,%Button_CompareEdit%,#1,PERMANENT
//--
Visible,%Bevel_Options%,#1,PERMANENT
Visible,%PrepareCodeBox_CheckBox%,#1,PERMANENT
Visible,%PrepareCodeBox_Button%,#1,PERMANENT
Visible,%BackupProject_Button%,#1,PERMANENT
Visible,%BackupProject_CheckBox%,#1,PERMANENT
Visible,%ClearTarget_CheckBox%,#1,PERMANENT
Visible,%Clear_TargetImageWim_CheckBox%,#1,PERMANENT
Visible,%Update_DLPlugins_Button%,#1,PERMANENT
Visible,%Update_DLPlugins_CheckBox%,#1,PERMANENT
Visible,%DL_Download_Pack_Big_Button%,#1,PERMANENT
Visible,%FInstallwimmount_CheckBox%,#1,PERMANENT
Visible,%pVerifyCheckBox%,#1,PERMANENT
Visible,%pVerify_Button%,#1,PERMANENT
Visible,%NOCheck_CheckBox%,#1,PERMANENT
//--
Visible,%pButton_Show_First_Gui%,#1,PERMANENT

[Show-Hide-First_Gui]
Echo,"Changing Interface"
//--
Visible,%pButton_Show_Second_Gui%,#1,PERMANENT

[History_Old]
History014=JFX -BlueLife - InstWimFltr.exe -install -uninstall -checkinstall -log:"C:\bu bir test\InstWimFltr.ini"
History015b=Homes32 - Moved all boot.wim/install.wim mount checking here and fixed so build stops on mount error.
History016=ChrisR - InstallWimSYS.exe with both -wimfltr and -wimmount availability, additional parameter -status
History017=Homes32 - WimUtil.exe version 3.1.0.0
History018=ChrisR - Some change in configuration and preconfiguration process
History019=ChrisR - Use x86 wimtools in a HostOS x64, if x64 wimtools not exist (same for driver wimfltr and wimmount)
History019a=ChrisR - InstallWimSYS.exe: Additional parameters Architecture (optional), to install the x86 drivers on a HostOS x64, if needed.
History020=ChrisR - Using bcdedit.exe (x86) on a x64 HostOS works, thanks Lancelot
History022=Lancelot IniVariables added
History024=Lancelot - minor enhancements on codes // IniVariablesReadEnv fix
History025=ChrisR - PreRequest.htm updated
History026=ChrisR - Following AU3381 updated

[AuthorEncoded]
preconfig.jpg=2769,3692
Logo=preconfig.jpg

[EncodedFile-AuthorEncoded-preconfig.jpg]
lines=0
0=eJydknk8VHsfx8+YGTOYlMvIFSlGI1sKoUS41LRpECImTSkJ2RnLlDUK2a/lmrKmiUkMoTDWFkyWMLQNIjGZ6VpODPOMXvfe55/nj+d5Puf3Pefzev1+v3O+79/nCEYEn4Atx6xwVgAEAgHOCy9AwAauWIZ4uAPAyZOAOgAASAAGkQfgQgcRlglk2z/eCqIGQH964R2yFxAReilhnQJ+Kr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MmiTDqG1B1VMWTwCCy8Nertdi3qUynEOeX+U3a/qu/Z1pTJRgzc3IGVfu8uGisVGVjR3rxqrGpqnncaR4DJ419B+soD1L1+1PBV4nOMtKEpNzs9Ly0zXyypIZxgFIww4ckPoVi7s8p5xDO4MTAA4RQcF3Z7sSwEAAAACAAAAKAAAAIUKAAAAAAAAAQAAAAAAAAAAAAAA

[EncodedFolders]
Folder

[Folder]
Waik_Troubles.htm=1519,2026
PreRequest.7z=213300,284400
PreRequestWin7.7z=214601,286135

[EncodedFile-Folder-Waik_Troubles.htm]
lines=0
0=eJyFV21v2zYQ/m7A/+GQoWnc2ZI9J2ma2BmSIsGydl3RuGgGBCgoiYpYU6JKUnG8D/vtuyPp+CV16g+2Xsh7ee6eh+dRYUt52m61W6OCswyvRiW3DApr6x7/3oj78c5bVVle2d57Vt017I7vQOqfjHes3nl2y2Rery3nDzYmjyeQFkwbbsczUWVqZnqD3w72nS0rrOSnX5iYwkSrJpHcjGL/EN/GIUq8TFQ291f16Sg5HeXoBYz4l493DsinVHq888ubN/3+cLizbvB4FNPq01GM+xJNht33P6qBgt1zEJWxTEqewbvz4dnVu68XHyBpLL0U1R3YYAdmwhZQqqay9DhGr/Ucr7rtVq6kVLPjVesbQWK610o2VqjqBwGddfzvVQ5zjGrGcJ9V0BiOTsvcSg250kvfs0KkhVvKpEaM5j4RVdEzDQHmLtiCVS7MdkuUWMyHiD9wOIz60WG/P4gGR/1+nxyxutaq1oJZjo5kxvWe6axmc/HgAvgiqtcfL+D6IqRaI0o/MLxp0jSJtwoqhxcTpaR5Ad7CHkT4uf2o1TeeWnPrXt56P1+vL24fDvdvd6vE1Cf+G86qLP5brz36iYWjw5AKbgVeMawlvPyohdLCzinUzwjzFWVxA8xCMABXl8AfhLHmJbYvT6eJeohWITnfXrPQRjc3L80qPHvY/6WrYQe6IX9XoYQg0r7W0mowXN+LFBvTQKUs6KaqsOoR7LlAfB/ufm+UPTGps/y94Xq+2O7ftFu93u6dPQGM79oy2xg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OYHMamIHAzlTYl/gdw1IE/UF9RwZuqC/inIuVSYXPHtZ/m4+VgH4d/J/8D8i8p+nicEwxPzMyODynKL03KSS3WyyjJZRgFIwgs44HQ81ixy6tJTHjGwAQAgQUJzx14eVkBAAAAAgAAAC0AAACeBQAAAAAAAAEAAAAAAAAAAAAAAA

[EncodedFile-Folder-PreRequest.7z]
lines=69
[encoded data, 284600 characters]

[EncodedFile-Folder-PreRequestWin7.7z]
lines=69
[encoded data, 286335 characters]

[DownloadXXX]
Call,DownloadXQ

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

[Settings_Default]
Run,%ScriptFile%,Show_First_Gui

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

[EncodedFile-InterfaceEncoded-DoubleJDesignRavenna3dArrowDown0016016.bmp]
lines=0
0=eJzNk09Ik2Ecxw06BF2KqG5ih1EgYZZu7+v7vnu3d++2MpelRFHgQZEaJLVIXSxrW4Wauf7Nwha2rQ7dOgT9IQT1EkQHi+hSHfRSUZrMcp389PjSoUib3vrB9/I8fD78fr+Hxwi0LS+yyi6ySWSVyGqRZUUl1rnr1/3vBfy3+TTxkabuAzx4dp+lsu/G31LRXIrjaCmeVjtfpj4v2jH+YQwpWIYc3orctgUptJkT/UcWxc/1rLXYqYpKqGcklEglcns5DuF48uLhPx2TUxOYIRWlU8PZraOdU1GjMsop4RO9+DucfM1NzuvIfctR3Wai9hq4rvrREybOCy608xpqrAqlQzhObiOSbv2Ln8nPsDvsZ33dSoob1mE7XIIsetAvCUePG63TiRpXUE47rJ0MvRz8wzH9fZqR0SHSj1LUhn2s8a6gMi7hTm7HddmLftHA2aVT2mJjY3Mx7naJ/I/8vHN0Zc5avKNLw+gP4O7bgeuKD73XQyDqI5QM8ur96IJ7jKUiF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NBf78LS0sRsPehf1DTfoq2sxPH2tolnTEm4Jo51tLpX1XZG70Y6I54nNNyys9OzcjJTM5MdE4sKMksSwzOTyspTyxKLS3IyU9MMTAwNAMivaTcAoZRMPxAGQuEtmHCLs9kcFmVgQkAJ9URXc7wHxQBAAAAAgAAAEQAAAA8AgAAAAAAAAEAAAAAAAAAAAAAAA

[EncodedFile-InterfaceEncoded-DesignboltsThinDownloadDownloadButton0016016.bmp]
lines=0
0=eJxz8jVjZgADMyDWAGIBKGZkkIBIAOWP8EEwDMzZI0lPNGGFdHGVUlKOIRABGUAuLpWzd0sWV6uYlNeJb7zKd+QjEAEZQC5QECiFqR4orjx9PUQl/8G3QARhAwWBUpjOABoFUSC886FdfKxdXDSQAREBSqE5DOhUiDMk1l6wSsvQ7Jqj1TETyAByIQ4DKkBWD/QdxCj1vkWCe58rzt6iNHMjkAHkQsSBCrCqhyCIemQRNPVw92BVj+keZP+C1W9VmrkZzsX0Lyw8NxAZnmTEF6npgUYIALPqdh94nDNwSS3OTM9Lys8pKQ7JyMxzyS/Py8lPTIHRTqUlJfl5BgaGZkCkl5RbwDAKhhMwY4bQt3DIe+zniWZgAgAtoBR8NIDcsAEAAAACAAAAQwAAANoAAAAAAAAAAQAAAAAAAAAAAAAA

[CompareEditXXX]
Call,CompareEdit

[EncodedFile-InterfaceEncoded-AmperossQetto2Move0016016.bmp]
lines=0
0=eJxtk1lIVFEYxw16agEVzTRncRtt0cx0NCu0QlsgyyCih7Cgh6KFNgQzSsqnFohUEm3FlqmsVGxxxoxSyYkpTcctsiKXtCZ1mPXee878++5o4YMf/DjfnXN+//sdmLt2s3amj7e0RAzhO8kMH7XPv/KfPcF0NXd7RXRg3ufCoDMD+nkFQ8Z5BYOTDBmDCgYNgXlfCudsq4yZzg3I7ToSfMHmVJQBilLi6pT1X097IZdsroBc87GpblB+zwHVNUBJ50JLBAQUSVhQIkJB/X+KBYQWCd4s1XUgKL/3kOz6HTYpQ4scbq9fLsL/ooAV50ahueKE8oYI1TWBoLVcgLKMKJWf6T1XHILv8WaVothyMlwHqG+KmHVJxKHbFnjs49j5zAnf2xyqexLC74hewm6JdE6AmjLDH1BGseVU2E17VeRjIIBmPFhhASQnnneK0Fy2IYaIKHEi9C6DXxmDWscQeY+yKkREPpLfaa+JuO/Wh5C/9bEd4C7INWyxw/bbCmnUiuZeK9bpHDhfY0FkuQvKSo6ohxKiqoCIu+76qEp3XUQtkFDL0DYm2x4863bjdAdwthfY0QKsMYjgYNDTAQVlqJ9yLHwBaB66DdFPhbol9TRLDUPsS4bWMQ+sYw6kVjuwhmbaXzuOvTVWVJtpPkqpbx/DYp0b0a+AmGrBsKhWMMS+AWL1dDcipZGhctiDHSYRbRY3OSIhYdwlYaI4cppdCGsAFr8Q6uNeiU/iacalrxkSyI1ropxGCXEtDGs/cmxq50hrlvCkx+G9W/F3DzQNDLITpxerEhrFE0ntwLK3DInvGLTvGZI/0BytHInka0wce9tpDo+E0gEPwuncUkJ2ljeJuUlGzNcamS3pA8iVkEJO6ieOVR2EmXpaN3Zz7PviQbyJPMrXfgSSjcy+2mQPlv+DaR3CrrSvQGon0caxmry0Lo508tJ7KIf6BLqHvLeyC0j/RpiFnKnfQEa3sDujj1syR4CMn0AmsZ76DSMTvfe3X8C6Pv4n0yzsme4bzO6yB2f1s6NZ/VyX9YPVZU+yhcjqlx5kD9FetyNkqvMXP3mcf3ick3XMLUgtyi8uDkwtKck38s0vSzUwMDQDIr2k3AKGUTDMgRkLhFZixi4vra37hIEJABkJC8Gkai7oAQAAAAIAAAA3AAAAIgMAAAAAAAABAAAAAAAAAAAAAAA

[DownloadXXX_Container_Small]
IniRead,%ScriptFile%,Main,Web1CS,%WebFileContainer%
Call,DownloadXQ,%FileContainer%,%WebFileContainer%
//-
//Run,%ScriptFile%,ExtractDownload
Run,%ScriptFile%,Update_DLPlugins_P
If,%Auto_CheckBox%,Equal,True,System,RESCANSCRIPTS

[Verify_Dependencies_B]
Run,%ScriptFile%,Verify_Dependencies

[Verify_Dependencies]
If,ExistFile,%ProjectDir%\Components\DotNet.script,Begin
If,ExistSection,%ProjectDir%\Components\DotNet.script,VerificationP,Run,%ProjectDir%\Components\DotNet.script,VerificationP,%ProjectDir%\Components\DotNet.script
End

