[Main]
Title=Images Configuration
Type=Plugin
Author=ChrisR
Description=Images tools and Information Plugin
Credits=Lancelot, JFX, Homes32
Version=059
Download_Level=0
Level=1
Selected=True
Mandatory=True
NoWarning=False
Contact=http://TheOven.org
Date=2017.11.22
Depend=
Disable=
CertifiedBy=
Certification=
Web1=http://w7pese.cwcodes.net/Projects/Win7PESE/Images.script
HistoryNotes01=
History027=ChrisR - The old Win7pese history is stored in the section [History]
History029=Lancelot Updates for Macro Library
History030=ChrisR - Used 7z 9.30 for wiminfo
History031=ChrisR - Correction if image index selected
History032=ChrisR - Check Win8 RTM version. Win7PESE now use Win 8 ADK tools, faster than Win7 ADK
History033=ChrisR - Cosmetics in messages
History034=ChrisR - Win8.1 compatibility
History035=ChrisR - Control added. Win8.1SE uses ADK for Win8.1, it is unfortunately not compatible with Windows XP, 2003 and Vista HostOS.
History037=ChrisR - Use ImageX first if found and version > 6.1 otherwise use WimUtil
History038=ChrisR - Use 7-zip 9.34 from tools folder. synchronization between projects
History039=Lancelot - Added pCheck_ExtractWimFolder_AutoD // Changing Extracted Source folder now easier ;) (mostly when switching x86/x64 :) )
History039=Lancelot - pCheck_ExtractWimFolder_AutoD and pCheck_ExtractWimFolder now default True on server :) (both have internal checks ;) )
History039=Lancelot - Interface_Default_Button - to get empty interface values - to test or before updating to server ;)
History040=Lancelot - Added N to auto detection
History041=ChrisR - Check the compatibily between project and windows source selected
History042=ChrisR - Compatibility win10pese
History044=ChrisR - JFX rewrote new wiminfo.exe from scratch and that doesn't require any other tool :)
History045=ChrisR - On win10 10.0.10240.16384, HKLM\Software\Microsoft\Windows NT\CurrentVersion,CurrentVersion = 6.3 and Not 10.0
History047=ChrisR - Use ML ChangeInterface
History048=ChrisR - Message: Use Extract Wim Folders for ESD file (LZMS Compression)
History049=JFX - wiminfo.exe 1.1.0.0. It now includes NAME, DISPLAYNAME and DISPLAYDESCRIPTION.
History051=ChrisR - now compatible with win 10 1511 build 10586
History052a=Lancelot - Added Advanced menu to avoid confusions by end users - now all done automatically during build BUT enduser tend to do things manually ex: http://TheOven.org/index.php?topic=1616
History052=Lancelot - Added DU Buttons (with specials to projects) // syntax updated - Date:2016.02.21
History053=Lancelot - Added check 'Target Directory' and 'Iso File' settings - http://TheOven.org/index.php?topic=1672 // syntax updates - Date:2016.02.24
History054=ChrisR - %ProjectFolderName% vs %ProjectName% - Date:2016.03.10
History055=ChrisR - Copy InstallSRC hives to %ProjectTemp% in case of read-only InstallSRC - Date:2016.03.25
History056=ChrisR - AutoDetect Extracted Install.wim Folder extended to index 8 - Date:2016.11.01 // Lancelot - Change TextLabel size to fit: "Install.wim : Ext. - Windows 10 Enterprise Evaluation" - Date:2016.11.07
History057=ChrisR - Updated Wiminfo 1.3.0, FindLanguages 1.1.0, Multi FallBack Languages support - Date:2016.11.18
History058=ChrisR - HostOSLang not required on HostOSInfoMini - Date:2016.11.23
History059=Lancelot %ISODir% deprecated - Date:2017.11.22

[DefaultValues]
pBootWimSrcBox=%GlobalTemplates%\Win7Extract\InstallWimSrc
pInstallWimSrcBox=%GlobalTemplates%\Win7Extract\InstallWimSrc

[Variables]
%InstallWimCompression%=""

[Interface]
pTextL_WimToolsMode="Wim Tools",1,1,10,8,106,18,8,Normal
pScrollB_WimToolsMode=Auto,1,4,125,6,125,21,Auto,ImageX,WimUtil
pCheckB_Wimmount="Always use WIMMount Driver (slower)",1,3,10,32,278,18,False
pCheckB_ShowWimTools="Show Wim Tools progress",1,3,10,52,171,16,False
pRadioG_ImageIndex="Install.wim Image Index",1,14,3,72,247,65,"Detect and Use the best image index","Choose your image index",0
pScrollB_ImageIndex=1,1,4,193,109,48,21,1,2,3,4,5,6,7,8,9,10
Interface_Default_Button=,0,8,529,-1,10,10,Interface_Default,0,False,_Interface_Default_,False,"__Set Interface To Default Values"
WIMImageInfo_Name="Install.wim :",1,1,295,25,250,30,8,Bold
WIMImageInfo_Version="Version :",1,1,300,53,250,18,8,Normal
WIMImageInfo_SpLevel="Service Pack :",1,1,300,69,250,18,8,Normal
WIMImageInfo_Arch="Architecture :",1,1,300,87,250,18,8,Normal
WIMImageInfo_Language="Language :",1,1,300,104,250,18,8,Normal
WIMBootInfo_Name="Boot.wim : 2 - Microsoft Windows Setup",1,1,295,125,255,18,8,Bold
pButton_Save=" Save / Get Wim Info",0,8,10,297,154,30,SaveButton,Save.bmp,False,_SaveButton_,False
pBevel1=pBevel1,0,12,4,145,430,145
pButton_ExtractWimFolder=,0,8,398,159,26,26,QExtractWimFolder,Exclamation.bmp,True,_QExtractWimFolder_,True
pCheck_ExtractWimFolder_AutoD=AutoDetect,0,3,10,147,84,18,True
pCheck_ExtractWimFolder="Use your Extracted wim folders (Instead of mounting images)",0,3,10,164,322,18,False
pTextLabel1="Safer, Faster. Use 'Extract Wim Folders' in Utils folder",0,1,25,182,257,18,8,Normal
pWebLabel2="Extracted Folders",0,10,338,188,85,18,http://TheOven.org/index.php?topic=228
pWebLabel1="Plugin Page",1,10,320,4,55,18,http://TheOven.org/index.php?board=31.0
pBootWimSrcBox=,0,13,10,218,320,20,dir
pInstallWimSrcBox=,0,13,10,260,320,20,dir
pBootWimLabel="Extracted BootWim or WinReWim:",0,1,16,204,195,18,8,Bold
pInstallWimLabel="Extracted InstallWim:",0,1,16,246,135,18,8,Bold
pBootWimButton=Explore,0,8,330,218,55,24,Process-OpenBootWim,_Process-OpenBootWim,False,_Process-OpenBootWim_,False
pInstallWimButton=Explore,0,8,330,260,55,24,Process-OpenInstallWim,_Process-OpenInstallWim,False,_Process-OpenInstallWim_,False
Button_Download=,1,8,379,-1,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)"
pButton_Show_Second_Gui=a,1,8,392,302,16,16,Show_Second_Gui,True,True,False,_Show_Second_Gui_,True
pButton_Show_First_Gui="<-- Back Basic GUI",0,8,275,291,112,32,Show_First_Gui,True,True,False,_Show_First_Gui_,True
Button_CompareEdit=,0,8,426,-1,24,24,CompareEditXXX,AmperossQetto2Move0016016.bmp,False,False,_CompareEditXXX_,False,"__DOWNLOAD and Compare with an Editor"

[SaveButton]
Run,%ScriptFile%,Process
System,RefreshInterface

[QExtractWimFolder]
Message,"Option widely used for a faster and more reliable building,#$xno need to mount/unmount images at each building.#$x#$xYou can use for this 'Extract Wim Folders' in Utils folder#$x#$x   Just select your Source and click 'Goooo' button:#$x      It simply extracts .wim files of your source to get them ready (one time operation)#$x      and make required settings on project.#$x      Now you can easly make many builds without#$x      Error with mounting source OR boring waitings during mount ;)#$x#$xFor information:#$x   - Windows Source remains required, it is used in several scripts.#$x   - Wimgapi, ImageX/WimUtil is also required for Capture and Debug Mount/Regedit script.",INFORMATION

[KeepTargetDirMsg]
// Keep in mind: another reorganisation idea by Lancelot, (fully inspired from nikzzzz image boot organisations on gena) "Reply #6 on" http://galapo.net/gena/forum/index.php?topic=94.msg1263#msg1263
pButton_KeepTargetDir=,1,8,176,293,28,28,KeepTargetDirMsg,Exclamation.bmp,True,_KeepTargetDirMsg_,True,"__Best Image"
Message,"Keep Target Directory.",INFORMATION,5

[PrepPE]
//Tip: Check Gena PrepPE to get codes ready when-if required ;)
Call,HostUserProfileDir
StrFormat,POS,%BaseDir%,%HostUserProfileDir%,%pos%
If,%pos%,EQUAL,1,Begin
Message,"WinPESE cannot run from inside a user's profile directory. #$x Try using Basic Folder. #$x Ex: D:\Oven\",Error
Halt,"WinPESE cannot run from inside a user's profile directory. Try using Basic Folder. Ex: D:\Oven\"
End
//-
System,IsAdmin,%t%
Echo,"Run as administrator=%t%"
//-
Call,HostOSVersion,,1
If,%HostOSVersion1%,Bigger,5,Begin
Set,%UAC%,"Value Not Found"
If,ExistRegKey,HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System,EnableLUA,RegRead,HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System,EnableLUA,%UAC%
//UAC Disabled 0
Echo,"UAC=%UAC%"
End
//-
Call,HostSessionName
Set,%t%,0
If,%HostSessionName%,Equal,Console,Set,%t%,1
If,%HostSessionName%-,Equal,-,Set,%t%,1
Echo,SessionName=%HostSessionName%
If,%t%,Equal,0,Echo,"Info: Builder run on Terminal Connection SessionName=%HostSessionName%",Warn
//
//Check 'Target Directory' Setting. TargetDir Setting is fixed if needed with the right path. It requires a restart of the builder to load it in memory.
//FAQ http://TheOven.org/index.php?topic=834 - My Build Fails (or BSOD or any other trouble) - What to do  ? - Be sure you DO NOT change 'Target Directory' and 'Iso File' settings
//- Allow custom TargetDir sub-folder. Probably more flexible (eg: Win10PESE_x64).
StrFormat,Split,%ProjectDir%,\,0,%t%
StrFormat,Split,%ProjectDir%,\,%t%,%ProjectFolderName%
If,Not,%TargetDir%,Equal,%BaseDir%\Target\%ProjectFolderName%,Begin
IniWrite,%ProjectDir%\script.project,Main,TargetDir,#$pBaseDir#$p\Target\%ProjectFolderName%
End
//If,Not,%TargetDir%,Equal,%BaseDir%\Target\%ProjectName%,Beg-in
//IniWrite,%ProjectDir%\script.project,Main,TargetDir,#$pBaseDir#$p\Target\%ProjectName%
//En-d
//--
//Check 'Iso File' Setting. IsoFile Setting is fixed if needed with the right path. It requires a restart of the builder to load it in memory.
//FAQ http://TheOven.org/index.php?topic=834 - My Build Fails (or BSOD or any other trouble) - What to do  ? - Be sure you DO NOT change 'Target Directory' and 'Iso File' settings
StrFormat,Path,%IsoFile%,%IsoFolder%
StrFormat,CTrim,%IsoFolder%,\,%IsoFolder%
//-
If,Not,%IsoFolder%,Equal,%BaseDir%\ISO,Begin
Set,%IsoFileTmp%,#$pBaseDir#$p\ISO\%ProjectName%.iso
If,%ProjectName%,Equal,Win7PESE,Set,%IsoFileTmp%,#$pBaseDir#$p\ISO\Win7PE.iso
If,%ProjectName%,Equal,Win8PESE,Set,%IsoFileTmp%,#$pBaseDir#$p\ISO\Win8PE.iso
//If,%ProjectName%,Equal,Win8.1SE,Set,%IsoFileTmp%,#$pBaseDir#$p\ISO\Win8.1SE.iso
If,%ProjectName%,Equal,Win10PESE,Set,%IsoFileTmp%,#$pBaseDir#$p\ISO\Win10PE.iso
IniWrite,%ProjectDir%\script.project,Main,IsoFile,%IsoFileTmp%
End
//--
// Second check 'Project Dir Folder Name', 'Target Directory' and 'Iso File' with message, halt to Restart the Builder.
//If,Not,%ProjectName%,Equal,%ProjectFolderName%,Call,Echo,"ERROR: The 'Project Dir Folder Name' %ProjectFolderName% path does not match the project name %ProjectName%.#$xDO NOT change the Project Dir Folder Name!#$x#$xClose the builder and rename the folder before Restarting this application. Halt",Warn,,MessageError,,Halt
//If,Not,%TargetDir%,Equal,%BaseDir%\Target\%ProjectName%,Call,Echo,"ERROR: The 'Target Directory' path does not match the project settings.#$x  Current: %TargetDir%#$x  Default: %BaseDir%\Target\%ProjectName#$xDO NOT change the'Target Directory' setting!%#$x#$xClose and Restart this Builder to get the right configuration. Halt",Warn,,MessageError,,Halt
If,Not,%TargetDir%,Equal,%BaseDir%\Target\%ProjectFolderName%,Call,Echo,"ERROR: The 'Target Directory' path does not match the project settings.#$x  Current: %TargetDir%#$x  Default: %BaseDir%\Target\%ProjectFolderName%#$xDO NOT change the'Target Directory' setting!#$x#$xClose and Restart this Builder to get the right configuration. Halt",Warn,,MessageError,,Halt
If,Not,%IsoFolder%,Equal,%BaseDir%\ISO,Call,Echo,"ERROR: The 'ISO File' path does not match the project settings.#$x  Current: %IsoFolder%#$x  Default: %BaseDir%\ISO#$xDO NOT change the 'ISO File' setting!#$x#$xClose and Restart this Builder to get the right configuration. Halt",Warn,,MessageError,,Halt
//------
Run,%ProjectDir%\Utils\HiveUnLoad.script,HiveUnloadNames
Run,%ProjectDir%\Utils\HiveUnLoad.script,HiveLoadTestProjectTempMessageHalt,%ProjectDir%\Utils\HiveUnLoad.script

[CheckHostOS]
// XP, 2k3, Vista Not Compatible with Win8.1SE
Set,%XP2k3HostOS%,No
Call,HostOSVersion,,4x
If,%HostOSVersion1%,Equal,5,Set,%XP2k3HostOS%,Yes
If,%HostOSVersion1%.%HostOSVersion2%,Equal,6.0,Set,%XP2k3HostOS%,Yes
// XP, 2k3, Vista Not Compatible with Win8.1SE, Win10PESE
If,%XP2k3HostOS%,Equal,Yes,Begin
If,%ProjectName%,Equal,Win8.1SE,Run,%ScriptFile%,XP2k3NotCompatible
If,%ProjectName%,Equal,Win10PESE,Run,%ScriptFile%,XP2k3NotCompatible
End

[XP2k3NotCompatible]
Message,"%ProjectName% uses ADK for %OS%, it is unfortunately not compatible with Windows XP, 2003 and Vista HostOS.#$x#$xExiting...",Error
Halt,"%ProjectName% uses ADK for %OS%, it is unfortunately not compatible with Windows XP, 2003 and Vista HostOS. Exiting..."

[NoMediaCreationToolISO]
If,ExistFile,%SourceDir%\MediaMeta.xml,Call,Echo,"Do NOT use the media creation tool MediaCreationTool(x64).exe#$xto download Windows.#$x#$xYou can use the button 'Download Official Windows 10 ISO' on Main Plugin.",Warn,,MessageError,,Halt

[Process]
Set,%MountBootSrc%,%BaseDir%\Mount\%ProjectName%\Source\BootWimSrc
Set,%MountInstallSrc%,%BaseDir%\Mount\%ProjectName%\Source\InstallWimSrc
//-
Run,%ScriptFile%,CheckHostOS
Run,%ScriptFile%,PrepPE
Run,%ScriptFile%,NoMediaCreationToolISO
//run HostOSInfoMini if not done in main configuration
If,-%OSArch%,Equal,-,Run,%ScriptFile%,HostOSInfoMini
If,-%SysType%,Equal,-,Run,%ScriptFile%,HostOSInfoMini
//-
Run,%ScriptFile%,SetWimTools
If,%ProjectName%,Equal,Win7PESE,Run,%ScriptFile%,CurrentWimTools_Win7PESE
//-
If,ExistDir,%ProjectTemp%\WimInfo,Shellexecute,Hide,cmd.exe,"/C rd /s /q #$q%ProjectTemp%\WimInfo#$q"
If,ExistDir,%ProjectTemp%\WimInfo,Call,DirDelete,%ProjectTemp%\WimInfo
DirMake,%ProjectTemp%\WimInfo
If,%ExtractWimFolder%,Equal,Yes,Run,%ScriptFile%,WimInfoExtract
If,%ExtractWimFolder%,Equal,No,Run,%ScriptFile%,WimInfoInstall
Run,%ScriptFile%,CheckOSproject
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
Run,%ScriptFile%,CommonSettings
Run,%ScriptFile%,WIMInterfaceInfo
IniWrite,%projectdir%\script.project,IniVariables,OS,%OS%
IniWrite,%projectdir%\script.project,IniVariables,OSSubType,%WIMEditionID%
IniWrite,%projectdir%\script.project,IniVariables,SysType,%SysType%
IniWrite,%projectdir%\script.project,IniVariables,RegistryCache,%ProjectCache%\%WIMName%_%WIMEditionID%_%OSVersion%_%SourceArch%_%DistLang%
//-
Echo,OS=%OS%
Echo,OSServicePack=%OSServicePack%
Echo,OSVersion=%OSVersion%
Echo,SysType(Host Arch)=%SysType%
Echo,WIMName=%WIMName%
Echo,WIMEditionID=%WIMEditionID%
Echo,SourceArch=%SourceArch%
Echo,DistLang=%DistLang%
Echo,WIMIndex=%WIMIndex%
Echo,WIMImageCount=%WIMImageCount%
Echo,WIMToolsMode=%WIMToolsMode%
Echo,WIMDriver=%WIMDriver%
Echo,ShowImageX=%ShowImageX%
Echo,ShowWimUtil=%ShowWimUtil%
Echo,ExtractWimFolder=%ExtractWimFolder%
//-
If,%ExtractWimFolder%,Equal,No,If,%InstallWimCompression%,Equal,LZMS,Run,%ScriptFile%,UseExtractWimforESD

[SetWimTools]
If,%pCheck_ExtractWimFolder_AutoD%,Equal,True,Begin
Set,%tb%,-
Set,%ti%,-
If,ExistFile,%SourceDir%\sources\boot_wim\1\Windows\System32\config\SOFTWARE,Set,%tb%,%SourceDir%\sources\boot_wim\1
If,ExistFile,%SourceDir%\sources\boot_wim\2\Windows\System32\config\SOFTWARE,Set,%tb%,%SourceDir%\sources\boot_wim\2
If,ExistFile,%SourceDir%\sources\winre_wim\1\Windows\System32\config\SOFTWARE,Set,%tb%,%SourceDir%\sources\winre_wim\1
If,ExistFile,%SourceDir%\sources\winre_wim\N\Windows\System32\config\SOFTWARE,Set,%tb%,%SourceDir%\sources\winre_wim\N
If,ExistFile,%SourceDir%\sources\install_wim\1\Windows\System32\config\SOFTWARE,Set,%ti%,%SourceDir%\sources\install_wim\1
If,ExistFile,%SourceDir%\sources\install_wim\2\Windows\System32\config\SOFTWARE,Set,%ti%,%SourceDir%\sources\install_wim\2
If,ExistFile,%SourceDir%\sources\install_wim\3\Windows\System32\config\SOFTWARE,Set,%ti%,%SourceDir%\sources\install_wim\3
If,ExistFile,%SourceDir%\sources\install_wim\4\Windows\System32\config\SOFTWARE,Set,%ti%,%SourceDir%\sources\install_wim\4
If,ExistFile,%SourceDir%\sources\install_wim\5\Windows\System32\config\SOFTWARE,Set,%ti%,%SourceDir%\sources\install_wim\5
If,ExistFile,%SourceDir%\sources\install_wim\6\Windows\System32\config\SOFTWARE,Set,%ti%,%SourceDir%\sources\install_wim\6
If,ExistFile,%SourceDir%\sources\install_wim\7\Windows\System32\config\SOFTWARE,Set,%ti%,%SourceDir%\sources\install_wim\7
If,ExistFile,%SourceDir%\sources\install_wim\8\Windows\System32\config\SOFTWARE,Set,%ti%,%SourceDir%\sources\install_wim\8
If,ExistFile,%SourceDir%\sources\install_wim\N\Windows\System32\config\SOFTWARE,Set,%ti%,%SourceDir%\sources\install_wim\N
If,Not,%tb%,Equal,-,Begin
If,%ti%,Equal,-,Set,%tb%,%ti%
Set,%pCheck_ExtractWimFolder%,True,Permanent
Set,%pBootWimSrcBox%,%tb%,Permanent
Set,%pInstallWimSrcBox%,%ti%,Permanent
End
End
//--
Set,%ExtractWimFolderReady%,0
If,%pCheck_ExtractWimFolder%,Equal,True,Begin
StrFormat,CTRIM,%pBootWimSrcBox%,\,%pBootWimSrcBox%
StrFormat,CTRIM,%pInstallWimSrcBox%,\,%pInstallWimSrcBox%
Set,%ExtractWimFolderReady%,1
If,Not,ExistFile,%pBootWimSrcBox%\Windows\System32\config\SOFTWARE,Set,%ExtractWimFolderReady%,0
If,Not,ExistFile,%pInstallWimSrcBox%\Windows\System32\config\SOFTWARE,Set,%ExtractWimFolderReady%,0
If,%ExtractWimFolderReady%,Equal,1,Begin
Set,%BootSRC%,%pBootWimSrcBox%,Permanent
Set,%InstallSRC%,%pInstallWimSrcBox%,Permanent
Set,%ExtractWimFolder%,Yes
IniWrite,%projectdir%\script.project,IniVariables,ExtractWimFolder,%ExtractWimFolder%
IniWrite,%projectdir%\script.project,IniVariables,_ML_UnMount,No
End
End
//--
If,%ExtractWimFolderReady%,Equal,0,Begin
Set,%pCheck_ExtractWimFolder%,False,Permanent
Set,%BootSRC%,%MountBootSrc%,Permanent
Set,%InstallSRC%,%MountInstallSrc%,Permanent
Set,%ExtractWimFolder%,No
IniWrite,%projectdir%\script.project,IniVariables,ExtractWimFolder,%ExtractWimFolder%
IniWrite,%projectdir%\script.project,IniVariables,_ML_UnMount,Yes
End
//--
IniWrite,%ProjectDir%\script.project,IniVariables,BootSRC,%BootSRC%
IniWrite,%ProjectDir%\script.project,IniVariables,InstallSRC,%InstallSRC%
Set,%Source_Win%,%InstallSRC%\Windows,Permanent
Set,%Source_Sys%,%InstallSRC%\Windows\System32,Permanent
//--
If,%pCheckB_ShowWimTools%,Equal,False,Set,%ShowImageX%,Hide
If,%pCheckB_ShowWimTools%,Equal,False,Set,%ShowWimUtil%,/Hide
If,%pCheckB_ShowWimTools%,Equal,True,Set,%ShowImageX%,Open
If,%pCheckB_ShowWimTools%,Equal,True,Set,%ShowWimUtil%,""
Set,%WIMToolsMode%,%pScrollB_WimToolsMode%
IniWrite,%projectdir%\script.project,IniVariables,WIMToolsMode,%WIMToolsMode%
IniWrite,%projectdir%\script.project,IniVariables,ShowImageX,%ShowImageX%
IniWrite,%projectdir%\script.project,IniVariables,ShowWimUtil,%ShowWimUtil%

[CommonSettings]
Echo,"Process common settings..."
If,ExistVar,%ProjectInfo%,Begin
If,Not,ExistFile,%ProjectInfo%,FileCreateBlank,%ProjectInfo%
IniAddSection,%ProjectInfo%,ProjectInfo
IniWrite,%ProjectInfo%,ProjectInfo,Language,%DistLang%
IniWrite,%ProjectInfo%,ProjectInfo,SourceType,%OS%CD
IniWrite,%ProjectInfo%,ProjectInfo,SourceDir,%SourceDir%
IniWrite,%ProjectInfo%,ProjectInfo,SystemFiles,%InstallSRC%
End
If,ExistSection,%projectdir%\script.project,VariablesReadEnv,Begin
IniWrite,%projectdir%\script.project,VariablesReadEnv,#$pSourceType#$p,%OS%CD
IniWrite,%projectdir%\script.project,VariablesReadEnv,#$pSystemFiles#$p,%InstallSRC%
End
If,ExistSection,%projectdir%\script.project,IniVariablesReadEnv,Begin
IniWrite,%projectdir%\script.project,IniVariablesReadEnv,SourceType,%OS%CD
IniWrite,%projectdir%\script.project,IniVariablesReadEnv,SystemFiles,%InstallSRC%
End
Set,%WIMDriver%,Wimmount
If,%ProjectName%,Equal,Win7PESE,Begin
If,%OSServicePack%,Equal,SP0,If,Not,%pCheckB_Wimmount%,Equal,True,Set,%WIMDriver%,Wimfltr
End
IniWrite,%projectdir%\script.project,IniVariables,WIMDriver,%WIMDriver%

[WimInfoExtract]
Echo,"Detect Wim information..."
Set,%SourceWinNotFound%,No
If,Not,ExistFile,%SourceDir%\bootmgr,Set,%SourceWinNotFound%,Yes
If,Not,ExistFile,%SourceDir%\boot\boot.sdi,Set,%SourceWinNotFound%,Yes
If,Not,ExistFile,%BootSRC%\Windows\system32\config\software,Set,%SourceWinNotFound%,Yes
If,Not,ExistFile,%InstallSRC%\Windows\system32\config\software,Set,%SourceWinNotFound%,Yes
If,%SourceWinNotFound%,Equal,Yes,Begin
If,%ProjectName%,Equal,Win7PESE,Run,%ScriptFile%,SourceWin7NotFound
If,%ProjectName%,Equal,Win8PESE,Run,%ScriptFile%,SourceWin8NotFound
If,%ProjectName%,Equal,Win8.1SE,Run,%ScriptFile%,SourceWin8.1NotFound
If,%ProjectName%,Equal,Win10PESE,Run,%ScriptFile%,SourceWin10NotFound
End
//-
If,Not,ExistFile,%BootSRC%\Windows\system32\config\software,Run,%ScriptFile%,ExtractedBootNotFound
If,Not,ExistFile,%InstallSRC%\Windows\system32\config\software,Run,%ScriptFile%,ExtractedInstallNotFound
Set,%WIMImageCount%,1
IniWrite,%projectdir%\script.project,IniVariables,WIMImageCount,%WIMImageCount%
Set,%WIMIndex%,1
IniWrite,%projectdir%\script.project,IniVariables,WIMIndex,%WIMIndex%
// SourceArch - TargetWOW64
Set,%SourceArchVar%,x86
If,ExistDir,%InstallSRC%\Windows\SysWOW64,Set,%SourceArchVar%,x64
If,ExistDir,%InstallSRC%\Windows\winsxs\Backup\ia64,Set,%SourceArchVar%,ia64
If,Not,%SourceArchVar%,Equal,x86,If,Not,%SourceArchVar%,Equal,x64,Run,%ScriptFile%,SourceArchNotSupported
Set,%SourceArch%,%SourceArchVar%,Permanent
Set,%TargetWOW64%,%SourceArch%,Permanent
//-
FileCopy,%InstallSRC%\Windows\System32\config\software,%ProjectTemp%\WimInfo
//- OS - OSVersion -  OSServicePack - WIMEditionID - WIMName  in offline software hive HKEY_LOCAL_MACHINE\software\Microsoft\Windows NT\CurrentVersion
RegHiveLoad,Tmp_Software,%ProjectTemp%\WimInfo\software
If,ExistRegKey,HKLM,"Tmp_Software\Microsoft\Windows NT\CurrentVersion",EditionID,RegRead,HKLM,"Tmp_Software\Microsoft\Windows NT\CurrentVersion",EditionID,%EditionIDVar%
If,ExistRegKey,HKLM,"Tmp_Software\Microsoft\Windows NT\CurrentVersion",ProductName,RegRead,HKLM,"Tmp_Software\Microsoft\Windows NT\CurrentVersion",ProductName,%ProductNameVar%
If,ExistRegKey,HKLM,"Tmp_Software\Microsoft\Windows NT\CurrentVersion",CurrentVersion,RegRead,HKLM,"Tmp_Software\Microsoft\Windows NT\CurrentVersion",CurrentVersion,%CurrentVersionVar%
If,ExistRegKey,HKLM,"Tmp_Software\Microsoft\Windows NT\CurrentVersion",CurrentBuild,RegRead,HKLM,"Tmp_Software\Microsoft\Windows NT\CurrentVersion",CurrentBuild,%CurrentBuildVar%
If,ExistRegKey,HKLM,"Tmp_Software\Microsoft\Windows NT\CurrentVersion",CSDVersion,RegRead,HKLM,"Tmp_Software\Microsoft\Windows NT\CurrentVersion",CSDVersion,%CSDVersionVar%
//message,%CurrentVersionVar% - %CurrentBuildVar% - %EditionIDVar% - %ProductNameVar% - %CSDVersionVar%
RegHiveunLoad,Tmp_Software
//-
// On win10 10.0.10240.16384, HKLM\Software\Microsoft\Windows NT\CurrentVersion,CurrentVersion=6.3 and Not 10.0
If,%CurrentBuildVar%,Bigger,10000,If,%CurrentVersionVar%,Equal,6.3,Set,%CurrentVersionVar%,10.0
If,%CurrentVersionVar%,Equal,6.0,Set,%OS%,WinVista,Permanent
If,%CurrentVersionVar%,Equal,6.1,Set,%OS%,Win7,Permanent
If,%CurrentVersionVar%,Equal,6.2,Set,%OS%,Win8,Permanent
If,%CurrentVersionVar%,Equal,6.3,Set,%OS%,Win8.1,Permanent
If,%CurrentVersionVar%,Equal,10.0,Set,%OS%,Win10,Permanent
// Source OS - OSVersion
Retrieve,FILEVERSION,%Source_Sys%\ntdll.dll,%VersionVar%
Set,%OSVersion%,%VersionVar%
IniWrite,%projectdir%\script.project,IniVariables,OSVersion,%OSVersion%
//- OSServicePack - WIMEditionID - WIMName
Set,%OSServicePack%,""
If,%CurrentBuildVar%,Equal,7600,Set,%OSServicePack%,SP0
If,%CurrentBuildVar%,Equal,7601,Set,%OSServicePack%,SP1
If,%CurrentBuildVar%,Equal,9200,Set,%OSServicePack%,SP0
If,%CurrentBuildVar%,Equal,9600,Set,%OSServicePack%,SP0
If,%CurrentBuildVar%,Equal,10240,Set,%OSServicePack%,SP0
IniWrite,%projectdir%\script.project,IniVariables,OSServicePack,%OSServicePack%
Set,%WIMEditionID%,%EditionIDVar%
IniWrite,%projectdir%\script.project,IniVariables,WIMEditionID,%WIMEditionID%
Set,%WIMName%,%ProductNameVar%
IniWrite,%projectdir%\script.project,IniVariables,WIMName,%WIMName%
//
//-- DistLang (au3) first next key in offline system hive HKEY_LOCAL_MACHINE\System\ControlSet001\Control\MUI\UILanguages
ExtractFile,%ScriptFile%,WimTools,FindLanguages.exe,%ProjectTemp%\WimInfo
FileCopy,%InstallSRC%\Windows\System32\config\system,%ProjectTemp%\WimInfo
RegHiveLoad,Tmp_System,%ProjectTemp%\WimInfo\system
ShellExecute,Hide,%ProjectTemp%\WimInfo\FindLanguages.exe,#$q%ProjectTemp%\WimInfo\FindLanguages.ini#$q,%ProjectTemp%\WimInfo
RegHiveunLoad,Tmp_System
IniRead,%ProjectTemp%\WimInfo\FindLanguages.ini,Languages,UILanguages,%UILanguagesVar%
IniRead,%ProjectTemp%\WimInfo\FindLanguages.ini,Languages,MuiLang,%MuiLangVar%
If,%UILanguagesVar%-,Equal,-,Call,Echo,"Default UILanguages not found in FindLanguages.ini. Exiting...",Warn,,MessageError,10,Halt
If,%MuiLangVar%-,Equal,-,Call,Echo,"Default MuiLang not found in FindLanguages.ini. Exiting...",Warn,,MessageError,10,Halt
//message,"UILanguages: %UILanguagesVar% - MuiLang: %MuiLangVar%"
Set,%DistLang%,%UILanguagesVar%,Permanent
//IniDeleteSection,%ProjectDir%\script.project,MuiLang
IniDelete,%ProjectDir%\script.project,MuiLang,#$pMuiLangAll#$p
IniDelete,%ProjectDir%\script.project,MuiLang,#$pMuiLang1#$p
IniDelete,%ProjectDir%\script.project,MuiLang,#$pMuiLang2#$p
IniDelete,%ProjectDir%\script.project,MuiLang,#$pMuiLang3#$p
IniDelete,%ProjectDir%\script.project,MuiLang,#$pMuiLang4#$p
StrFormat,RTrim,%MuiLangVar%,1,%t%
IniWrite,%projectdir%\script.project,MuiLang,#$pMuiLangAll#$p,%t%
Loop,%ScriptFile%,MuiLang_Loop,1,10

[MuiLang_Loop]
StrFormat,SPLIT,%MuiLangVar%,|,#c,%MuiLang%
IniWrite,%projectdir%\script.project,MuiLang,#$pMuiLang#c#$p,%MuiLang%
If,%MuiLang%-,Equal,-,Loop,BREAK

[WimInfoInstall]
Echo,"Detect Wim information..."
Set,%SourceWinNotFound%,No
If,Not,ExistFile,%SourceDir%\sources\boot.wim,Set,%SourceWinNotFound%,Yes
If,Not,ExistFile,%SourceDir%\sources\install.wim,If,Not,ExistFile,%SourceDir%\sources\install.esd,Set,%SourceWinNotFound%,Yes
If,%SourceWinNotFound%,Equal,Yes,Begin
If,%ProjectName%,Equal,Win7PESE,Run,%ScriptFile%,SourceWin7NotFound
If,%ProjectName%,Equal,Win8PESE,Run,%ScriptFile%,SourceWin8NotFound
If,%ProjectName%,Equal,Win8.1SE,Run,%ScriptFile%,SourceWin8.1NotFound
If,%ProjectName%,Equal,Win10PESE,Run,%ScriptFile%,SourceWin10NotFound
End
Set,%WimToolsInfo%,""
Set,%IMAGEXInfo%,""
Set,%WIMUTILInfo%,""
Set,%7ZInfo%,""
//-
//- Get Wim Information
ExtractFile,%ScriptFile%,WimTools,WimInfo.exe,%ProjectTemp%\WimInfo
If,ExistFile,%SourceDir%\sources\install.wim,ShellExecute,Hide,%ProjectTemp%\WimInfo\WimInfo.exe,"-wim:#$q%SourceDir%\sources\install.wim#$q -ini:#$q%ProjectTemp%\WimInfo\WimInfoInstall.ini#$q",%ProjectTemp%\WimInfo
If,ExistFile,%SourceDir%\sources\install.esd,ShellExecute,Hide,%ProjectTemp%\WimInfo\WimInfo.exe,"-wim:#$q%SourceDir%\sources\install.esd#$q -ini:#$q%ProjectTemp%\WimInfo\WimInfoInstall.ini#$q",%ProjectTemp%\WimInfo
If,Not,ExistFile,%ProjectTemp%\WimInfo\WimInfoInstall.ini,Run,%ScriptFile%,WimInfoMissing
IniRead,%ProjectTemp%\wiminfo\WimInfoInstall.ini,Attributes,Compression,%InstallWimCompression%
//-
//- Automatically detect and use the best image index in Install.wim
IniRead,%ProjectTemp%\WimInfo\WimInfoInstall.ini,Attributes,ImageCount,%ImageCountVar%
// Save %WIMImageCount for use in 7-Zip 9.xx work differently with a single image (windows\...) or multiple images ([2]\windows\...)
Set,%WIMImageCount%,%ImageCountVar%
IniWrite,%projectdir%\script.project,IniVariables,WIMImageCount,%WIMImageCount%
If,%pRadioG_ImageIndex%,Equal,0,Begin
Set,%WIMIndex%,%WIMImageCount%
IniWrite,%projectdir%\script.project,IniVariables,WIMIndex,%WIMIndex%
End
If,%pRadioG_ImageIndex%,Equal,1,Begin
If,%pScrollB_ImageIndex%,Bigger,%WIMImageCount%,Run,%ScriptFile%,IndexBigger
Set,%WIMIndex%,%pScrollB_ImageIndex%
IniWrite,%projectdir%\script.project,IniVariables,WIMIndex,%WIMIndex%
End
// Source OS - OSVersion
IniRead,%ProjectTemp%\WimInfo\WimInfoInstall.ini,%WIMIndex%,MAJOR,%MAJORVar%
IniRead,%ProjectTemp%\WimInfo\WimInfoInstall.ini,%WIMIndex%,MINOR,%MINORVar%
IniRead,%ProjectTemp%\WimInfo\WimInfoInstall.ini,%WIMIndex%,BUILD,%BUILDVar%
IniRead,%ProjectTemp%\WimInfo\WimInfoInstall.ini,%WIMIndex%,SPBUILD,%SPBUILDVar%
If,%MAJORVar%.%MINORVar%,Equal,6.0,Set,%OS%,WinVista,Permanent
If,%MAJORVar%.%MINORVar%,Equal,6.1,Set,%OS%,Win7,Permanent
If,%MAJORVar%.%MINORVar%,Equal,6.2,Set,%OS%,Win8,Permanent
If,%MAJORVar%.%MINORVar%,Equal,6.3,Set,%OS%,Win8.1,Permanent
If,%MAJORVar%.%MINORVar%,Equal,10.0,Set,%OS%,Win10,Permanent
Set,%OSVersion%,%MAJORVar%.%MINORVar%.%BUILDVar%.%SPBUILDVar%
IniWrite,%projectdir%\script.project,IniVariables,OSVersion,%OSVersion%
// SourceArch - TargetWOW64
IniRead,%ProjectTemp%\WimInfo\WimInfoInstall.ini,%WIMIndex%,ARCH,%ArchVar%
If,Not,%ArchVar%,Equal,0,If,Not,%ArchVar%,Equal,9,Run,%ScriptFile%,SourceArchNotSupported
If,%ArchVar%,Equal,0,Set,%SourceArch%,x86,Permanent
If,%ArchVar%,Equal,9,Set,%SourceArch%,x64,Permanent
Set,%TargetWOW64%,%SourceArch%,Permanent
//- OSServicePack - DistLang - WIMEditionID - WIMName
IniRead,%ProjectTemp%\WimInfo\WimInfoInstall.ini,%WIMIndex%,SPLEVEL,%SPLevelVar%
Set,%OSServicePack%,SP%SPLevelVar%
IniWrite,%projectdir%\script.project,IniVariables,OSServicePack,SP%SPLevelVar%
IniRead,%ProjectTemp%\WimInfo\WimInfoInstall.ini,%WIMIndex%,LANGUAGE,%LanguageVar%
Set,%DistLang%,%LanguageVar%,Permanent
IniRead,%ProjectTemp%\WimInfo\WimInfoInstall.ini,%WIMIndex%,EDITIONID,%EditionIDVar%
Set,%WIMEditionID%,%EditionIDVar%
IniWrite,%projectdir%\script.project,IniVariables,WIMEditionID,%WIMEditionID%
IniRead,%ProjectTemp%\WimInfo\WimInfoInstall.ini,%WIMIndex%,NAME,%NameVar%
Set,%WIMName%,%NameVar%
IniWrite,%projectdir%\script.project,IniVariables,WIMName,%WIMName%
//- MuiLang
IniRead,%ProjectTemp%\WimInfo\WimInfoInstall.ini,%WIMIndex%,FALLBACKLANGUAGE,%FallBackLanguageVar%
If,Not,%FallBackLanguageVar%-,Equal,-,Begin
StrFormat,REPLACE,%FallBackLanguageVar%,#$c,|,%FallBackLanguageVar%
Set,%MuiLangVar%,%DistLang%|%FallBackLanguageVar%|
End
Else,Set,%MuiLangVar%,%DistLang%|
//message,"UILanguages: %DistLang% - MuiLang: %MuiLangVar%"
//IniDeleteSection,%ProjectDir%\script.project,MuiLang
IniDelete,%ProjectDir%\script.project,MuiLang,#$pMuiLangAll#$p
IniDelete,%ProjectDir%\script.project,MuiLang,#$pMuiLang1#$p
IniDelete,%ProjectDir%\script.project,MuiLang,#$pMuiLang2#$p
IniDelete,%ProjectDir%\script.project,MuiLang,#$pMuiLang3#$p
IniDelete,%ProjectDir%\script.project,MuiLang,#$pMuiLang4#$p
StrFormat,RTrim,%MuiLangVar%,1,%t%
IniWrite,%projectdir%\script.project,MuiLang,#$pMuiLangAll#$p,%t%
Loop,%ScriptFile%,MuiLang_Loop,1,10
//-
If,%ProjectName%,Equal,Win7PESE,Run,%ScriptFile%,Del_wimgapi_imagex_Win7PESE

[WimInfoMissing]
Message,"Wim file information missing. A problem occurred to Get Image Information !!!#$x#$xTips:#$x1) Try using official MS sources#$x(or use '%OS% enterprise evaluation for developers' link at main screen) #$x#$xExiting...",Error
Halt,"Wim file information missing. A problem occurred to Get Image Information. -- Tips: 1) Try using official MS sources (or use '%OS% enterprise evaluation for developers' link at main screen) Exiting..."

[CheckOSproject]
If,%OS%,Equal,Win7,Begin
If,Not,%ProjectName%,Equal,Win7PESE,Begin
ShellExecute,Open,http://theoven.org/index.php?topic=131.0
Message,"With your Windows 7 source selected, you need to use Win7PESE Project for 'WinPESE' building.#$x#$xLook at Win7PESE home page: http://theoven.org/index.php?topic=131.0",ERROR
Halt,"With your Windows 7 source selected, you need to use Win7PESE Project for 'WinPESE' building."
End
End
If,%OS%,Equal,Win8,Begin
If,Not,%ProjectName%,Equal,Win8PESE,Begin
ShellExecute,Open,http://theoven.org/index.php?topic=438.0
Message,"With your Windows 8 source selected, you need to use Win8PESE Project for 'WinPESE' building.#$x#$xLook at Win8PESE home page: http://theoven.org/index.php?topic=438.0",ERROR
Halt,"With your Windows 8 source selected, you need to use Win8PESE Project for 'WinPESE' building."
End
End
If,%OS%,Equal,Win8.1,Begin
If,Not,%ProjectName%,Equal,Win8.1SE,Begin
ShellExecute,Open,http://theoven.org/index.php?topic=774.0
Message,"With your Windows 8.1 source selected, you need to use WIN8.1SE Project for 'WinPESE' building.#$x#$xLook at Win8.1SE home page: http://theoven.org/index.php?topic=774.0",ERROR
Halt,"With your Windows 8.1 source selected, you need to use WIN8.1SE Project for 'WinPESE' building."
End
End
If,%OS%,Equal,Win10,Begin
If,Not,%ProjectName%,Equal,Win10PESE,Begin
ShellExecute,Open,http://theoven.org/index.php?topic=1336.0
Message,"With your Windows 10 source selected, you need to use WIN10PESE Project for 'WinPESE' building.#$x#$xLook at Win10PESE home page: http://theoven.org/index.php?topic=1336.0",ERROR
Halt,"With your Windows 10 source selected, you need to use WIN10PESE Project for 'WinPESE' building."
End
End

[CheckWin7RTM]
//If,Not,%OSVersion%,Equal,6.1.xxxx.xxxxx,Run,%ScriptFile%,Win7RTMNotFound,"Windows %OSVersion%"

[CheckWin8RTM]
If,Not,%OSVersion%,Equal,6.2.9200.16384,Run,%ScriptFile%,Win8RTMNotFound,"Windows %OSVersion%"
If,%ExtractWimFolder%,Equal,Yes,Begin
Retrieve,FILEVERSION,%InstallSRC%\Windows\explorer.exe,%ExplorerexeVer%
If,Not,%ExplorerexeVer%,Equal,6.2.9200.16384,Run,%ScriptFile%,Win8RTMNotFound,"explorer.exe %ExplorerexeVer%"
Retrieve,FILEVERSION,%InstallSRC%\Windows\System32\UXInit.dll,%UXInitdllVer%
If,Not,%UXInitdllVer%,Equal,6.2.9200.16384,Run,%ScriptFile%,Win8RTMNotFound,"UXInit.dll %UXInitdllVer%"
Retrieve,FILEVERSION,%InstallSRC%\Windows\System32\tzres.dll,%tzresdllVer%
If,Not,%tzresdllVer%,Equal,6.2.9200.16384,Run,%ScriptFile%,Win8RTMNotFound,"tzres.dll %tzresdllVer%"
End

[CheckWin8.1RTM]
// Windows 8.1, no check for now
//If,Not,%OSVersion%,Equal,6.3.9600.16384,Run,%ScriptFile%,Win8.1RTMNotFound,"Windows %OSVersion%"
//If,%ExtractWimFolder%,Equal,Yes,Beg-in
//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%"
//En-d

[CheckWin10RTM]
//If,Not,%OSVersion%,Equal,10.0.10240.16384,Run,%ScriptFile%,Win10RTMNotFound,"Windows %OSVersion%"
//If,%ExtractWimFolder%,Equal,Yes,Beg-in
//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%"
//En-d

[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 files 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..."

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

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

[SourceWin8.1NotFound]
Message,"Can not detect Windows 8.1 Source !!!#$x#$xYou must select a folder with Windows 8.1 files in 'Source Directory'#$x#$xExiting...",Error
Halt,"Can not detect Windows 8.1 Source. Exiting..."

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

[UseExtractWimforESD]
Message,"For Windows ESD Source (LZMS compression), you must use extracted wim folders.#$x#$xYou can use for this 'Extract Wim Folders' in Utils folder.#$x#$xExiting...",Error
Halt,"For Windows ESD Source (LZMS compression), you must use extracted wim folders. Exiting..."

[ExtractedInstallNotFound]
Message,"Can not detect the extracted folder of install.wim !!!#$xFile: '%InstallSRC%\Windows\system32\config\software'  not Found !!!#$x#$xYou must select a folder with extracted install.wim. You can use for this the script 'Extract wim folders'#$x#$xExiting...",Error
Halt,"Can not detect the extracted folder of install.wim. Exiting..."

[ExtractedBootNotFound]
Message,"Can not detect the extracted folder of boot.wim !!!#$xFile: '%BootSRC%\Windows\system32\config\software'  not Found !!!#$x#$xYou must select a folder with extracted boot.wim. You can use for this the script 'Extract wim folders'#$x#$xExiting...",Error
Halt,"Can not detect the extracted folder of boot.wim. Exiting..."

[SourceArchNotSupported]
Message,"Windows Source Architecture not supported (ARCH=%ArchVar%) !!!#$x#$xExiting...",Error
Halt,"Windows Source Architecture not supported. Exiting..."

[IndexBigger]
Message,"Index bigger than the number of Image in install.wim (%WIMImageCount%) !!!#$x#$xExiting...",Error
Halt,"index bigger than the number of Image in install.wim. Exiting..."

[WIMInterfaceInfo]
Echo,"Write Interface info..."
// I love AutoIT - Best script engine ever :> Following Fast Interface writing with easy syntax - approriate for textlabel and more
//ChangeInterface,Write,Value,%ScriptFile%,Interface,WIMImageInfo_Name,"Install.wim : %WIMIndex% - %WIMNAME%"
If,Not,%ExtractWimFolder%,Equal,Yes,ChangeInterface,Write,Value,,,WIMImageInfo_Name,"Install.wim : %WIMIndex% - %WIMNAME%"
Else,ChangeInterface,Write,Value,,,WIMImageInfo_Name,"Install.wim : Ext. - %WIMNAME%"
ChangeInterface,Write,Value,,,WIMImageInfo_Version,"Version : %OSVersion%"
ChangeInterface,Write,Value,,,WIMImageInfo_SpLevel,"Service Pack : %OSServicePack%"
ChangeInterface,Write,Value,,,WIMImageInfo_Arch,"Architecture : %SourceArch%"
ChangeInterface,Write,Value,,,WIMImageInfo_Language,"Language : %DistLang%"
// System RefreshInterface only for the Save Button, done automatically with the play button

[Interface_Default]
Run,%ScriptFile%,Show_First_Gui
ChangeInterface,Write,Value,,,WIMImageInfo_Name,"Install.wim :"
ChangeInterface,Write,Value,,,WIMImageInfo_Version,"Version :"
ChangeInterface,Write,Value,,,WIMImageInfo_SpLevel,"Service Pack :"
ChangeInterface,Write,Value,,,WIMImageInfo_Arch,"Architecture :"
ChangeInterface,Write,Value,,,WIMImageInfo_Language,"Language :"
Set,%pCheck_ExtractWimFolder_AutoD%,True,Permanent
Set,%pCheck_ExtractWimFolder%,False,Permanent
Set,%pBootWimSrcBox%,"",Permanent
Set,%pInstallWimSrcBox%,"",Permanent
System,RefreshInterface

[WIMInterfaceInfo_TxtReplace]
Echo,"Write Interface info..."
// Install.wim: 4 - Windows 7 PROFESSIONAL .
IniRead,%ScriptFile%,Interface,WIMImageInfo_Name,%StringInfo%
StrFormat,POS,%StringInfo%,"#$q#$c",%Pos%
If,%Pos%,Bigger,0,Begin
StrFormat,LEFT,%StringInfo%,%Pos%,%WimInfo%
TXTReplace,%ScriptFile%,"WIMImageInfo_Name=%WimInfo%","WIMImageInfo_Name=#$qInstall.wim : %WIMIndex% - %WIMNAME%#$q"
End
// Version: 6.1.7600.16385 / 6.1.7601.17514 .
IniRead,%ScriptFile%,Interface,WIMImageInfo_Version,%StringInfo%
StrFormat,POS,%StringInfo%,"#$q#$c",%Pos%
If,%Pos%,Bigger,0,Begin
StrFormat,LEFT,%StringInfo%,%Pos%,%WimInfo%
TXTReplace,%ScriptFile%,"WIMImageInfo_Version=%WimInfo%","WIMImageInfo_Version=#$qVersion : %OSVersion%#$q"
End
// Service Pack: SP0 / SP1 .
IniRead,%ScriptFile%,Interface,WIMImageInfo_SpLevel,%StringInfo%
StrFormat,POS,%StringInfo%,"#$q#$c",%Pos%
If,%Pos%,Bigger,0,Begin
StrFormat,LEFT,%StringInfo%,%Pos%,%WimInfo%
TXTReplace,%ScriptFile%,"WIMImageInfo_SpLevel=%WimInfo%","WIMImageInfo_SpLevel=#$qService Pack : %OSServicePack%#$q"
End
// Architecture: x86 / x64 .
IniRead,%ScriptFile%,Interface,WIMImageInfo_Arch,%StringInfo%
StrFormat,POS,%StringInfo%,"#$q#$c",%Pos%
If,%Pos%,Bigger,0,Begin
StrFormat,LEFT,%StringInfo%,%Pos%,%WimInfo%
TXTReplace,%ScriptFile%,"WIMImageInfo_Arch=%WimInfo%","WIMImageInfo_Arch=#$qArchitecture : %SourceArch%#$q"
End
// Language: en-US / fr-FR .
IniRead,%ScriptFile%,Interface,WIMImageInfo_Language,%StringInfo%
StrFormat,POS,%StringInfo%,"#$q#$c",%Pos%
If,%Pos%,Bigger,0,Begin
StrFormat,LEFT,%StringInfo%,%Pos%,%WimInfo%
TXTReplace,%ScriptFile%,"WIMImageInfo_Language=%WimInfo%","WIMImageInfo_Language=#$qLanguage : %DistLang%#$q"
End
// System,RefreshInterface only for the Save Button, done automatically with the play button

[Del_wimgapi_imagex_Win7PESE]
// Win7PESE: Delete wimgapi.dll and imagex.exe, Then use wimgapi6.0(6.2) and imagex6.0(6.2) in preconfig
If,ExistFile,%Tools%\%OSArch%\wimgapi.dll,Shellexecute,Hide,cmd.exe,"/C del /q /f #$q%Tools%\%OSArch%\wimgapi.dll#$q"
If,ExistFile,%Tools%\%OSArch%\wimgapi.dll,Run,%ScriptFile%,Del,%Tools%\%OSArch%\wimgapi.dll
If,ExistFile,%Tools%\%OSArch%\imagex.exe,Shellexecute,Hide,cmd.exe,"/C del /q /f #$q%Tools%\%OSArch%\imagex.exe#$q"
If,ExistFile,%Tools%\%OSArch%\imagex.exe,Run,%ScriptFile%,Del,%Tools%\%OSArch%\imagex.exe

[CurrentWimTools_Win7PESE]
Echo,"Save current Wim tools..."
If,ExistFile,%Tools%\x64\imagex.exe,Begin
Retrieve,FILEVERSION,%Tools%\x64\imagex.exe,%ImageXVersion%
StrFormat,LEFT,%ImageXVersion%,3,%ImageXMajorVersion%
If,%ImageXMajorVersion%,Equal,6.0,Begin
If,Not,ExistFile,%Tools%\x64\imagex6.0.exe,FileCopy,%Tools%\x64\imagex.exe,%Tools%\x64\imagex6.0.exe
Run,%ScriptFile%,DelP,%Tools%\x64\imagex.exe
End
If,%ImageXMajorVersion%,Equal,6.2,Begin
If,Not,ExistFile,%Tools%\x64\imagex6.2.exe,FileCopy,%Tools%\x64\imagex.exe,%Tools%\x64\imagex6.2.exe
Run,%ScriptFile%,DelP,%Tools%\x64\imagex.exe
End
End
//-
If,ExistFile,%Tools%\x86\imagex.exe,Begin
Retrieve,FILEVERSION,%Tools%\x86\imagex.exe,%ImageXVersion%
StrFormat,LEFT,%ImageXVersion%,3,%ImageXMajorVersion%
If,%ImageXMajorVersion%,Equal,6.0,Begin
If,Not,ExistFile,%Tools%\x86\imagex6.0.exe,FileCopy,%Tools%\x86\imagex.exe,%Tools%\x86\imagex6.0.exe
Run,%ScriptFile%,DelP,%Tools%\x86\imagex.exe
End
If,%ImageXMajorVersion%,Equal,6.2,Begin
If,Not,ExistFile,%Tools%\x86\imagex6.2.exe,FileCopy,%Tools%\x86\imagex.exe,%Tools%\x86\imagex6.2.exe
Run,%ScriptFile%,DelP,%Tools%\x86\imagex.exe
End
End
//-
If,ExistFile,%Tools%\x64\wimgapi.dll,Begin
Retrieve,FILEVERSION,%Tools%\x64\wimgapi.dll,%WimgapiVersion%
StrFormat,LEFT,%WimgapiVersion%,3,%WimgapiMajorVersion%
If,%WimgapiMajorVersion%,Equal,6.0,Begin
If,Not,ExistFile,%Tools%\x64\wimgapi6.0.dll,FileCopy,%Tools%\x64\wimgapi.dll,%Tools%\x64\wimgapi6.0.dll
Run,%ScriptFile%,DelP,%Tools%\x64\wimgapi.dll
End
If,%WimgapiMajorVersion%,Equal,6.2,Begin
If,Not,ExistFile,%Tools%\x64\wimgapi6.2.dll,FileCopy,%Tools%\x64\wimgapi.dll,%Tools%\x64\wimgapi6.2.dll
Run,%ScriptFile%,DelP,%Tools%\x64\wimgapi.dll
End
End
//-
If,ExistFile,%Tools%\x86\wimgapi.dll,Begin
Retrieve,FILEVERSION,%Tools%\x86\wimgapi.dll,%WimgapiVersion%
StrFormat,LEFT,%WimgapiVersion%,3,%WimgapiMajorVersion%
If,%WimgapiMajorVersion%,Equal,6.0,Begin
If,Not,ExistFile,%Tools%\x86\wimgapi6.0.dll,FileCopy,%Tools%\x86\wimgapi.dll,%Tools%\x86\wimgapi6.0.dll
Run,%ScriptFile%,DelP,%Tools%\x86\wimgapi.dll
End
If,%WimgapiMajorVersion%,Equal,6.2,Begin
If,Not,ExistFile,%Tools%\x86\wimgapi6.2.dll,FileCopy,%Tools%\x86\wimgapi.dll,%Tools%\x86\wimgapi6.2.dll
Run,%ScriptFile%,DelP,%Tools%\x86\wimgapi.dll
End
End

[HostOSInfoMini]
Echo,"Detect HostOS Info..."
If,Not,ExistDir,%ProjectTemp%,DirMake,%ProjectTemp%
If,ExistFile,%ProjectTemp%\InfoHostOSMiniIni.ini,Shellexecute,Hide,cmd.exe,"/C del /q /f #$q%ProjectTemp%\InfoHostOSMiniIni.ini#$q"
If,EXISTFILE,%ProjectTemp%\InfoHostOSMiniIni.ini,Echo,"FILE NOT DELETED",WARN
Set,%w%,%ProjectTemp%\InfoHostOSMini.au3
FileCreateBlank,%w%
TxtAddline,%w%,"#NoTrayIcon",Append
TxtAddline,%w%,"#RequireAdmin",Append
TxtAddline,%w%,"IniWrite(#$qInfoHostOSMiniIni.ini#$q,#$qinfohostos#$q,#$qosarch#$q,@OSArch)",Append
//Following MUST me x86 NOT %systype% or %OsArch% ..... ;).
ShellExecute,Hide,%Tools%\x86\AU3381.exe,"#$q%w%#$q",%ProjectTemp%
IniRead,%ProjectTemp%\InfoHostOSMiniIni.ini,infohostos,OSArch,%SysTypeVar%
Set,%SysType%,%SysTypeVar%,Permanent
Set,%OSArch%,%SysTypeVar%,Permanent
Shellexecute,Hide,cmd.exe,"/C del /q /f #$q%ProjectTemp%\InfoHostOSMini.au3#$q"
If,ExistFile,%ProjectTemp%\InfoHostOSMini.au3,Echo,"FILE NOT DELETED",WARN
Shellexecute,Hide,cmd.exe,"/C del /q /f #$q%ProjectTemp%\InfoHostOSMiniIni.ini#$q"
If,ExistFile,%ProjectTemp%\InfoHostOSMiniIni.ini,Echo,"FILE NOT DELETED",WARN

[Process-OpenBootWim]
If,%pBootWimSrcBox%,Equal,"",Exit,""
Call,OpenDir,%pBootWimSrcBox%

[Process-OpenInstallWim]
If,%pInstallWimSrcBox%,Equal,"",Exit,""
Call,OpenDir,%pInstallWimSrcBox%

[DelP]
If,ExistFile,#1,Shellexecute,Hide,cmd.exe,"/C del /q /f #$q#1#$q"
If,ExistFile,#1,Run,%ScriptFile%,Del,#1

[Del]
//trying harder to delete
If,ExistFile,#1,Call,FileDelete,#1
If,ExistFile,#1,Run,%ScriptFile%,MSG_WARN_HALT_Active,#1

[MSG_WARN_HALT_Active]
Message,"#1 CAN NOT BE DELETED #$x (maybe an active process or AV do not let...) #$x#$x Build can not continue",Error
Echo,"#1 CAN NOT BE DELETED - (maybe an active process AV do not let...) - Build can not continue",Warn
Halt,"#1 CAN NOT BE DELETED - (maybe an active process AV do not let...) - Build can not continue"

[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
Run,%ScriptFile%,Show-Hide-Second_Gui,False
Run,%ScriptFile%,Show-Hide-First_Gui,True
System,RefreshInterface
System,CURSOR,Normal

[Show-Hide-Second_Gui]
Visible,%Interface_Default_Button%,#1,PERMANENT
Visible,%pBevel1%,#1,PERMANENT
Visible,%pCheck_ExtractWimFolder_AutoD%,#1,PERMANENT
Visible,%pCheck_ExtractWimFolder%,#1,PERMANENT
Visible,%pTextLabel1%,#1,PERMANENT
Visible,%pBootWimLabel%,#1,PERMANENT
Visible,%pBootWimSrcBox%,#1,PERMANENT
Visible,%pBootWimButton%,#1,PERMANENT
Visible,%pInstallWimLabel%,#1,PERMANENT
Visible,%pInstallWimSrcBox%,#1,PERMANENT
Visible,%pInstallWimButton%,#1,PERMANENT
Visible,%pButton_ExtractWimFolder%,#1,PERMANENT
Visible,%pButton_Save%,#1,PERMANENT
Visible,%pWebLabel2%,#1,PERMANENT
Visible,%Button_Upload%,#1,PERMANENT
Visible,%Button_CompareEdit%,#1,PERMANENT
//--
Visible,%pButton_Show_First_Gui%,#1,PERMANENT

[Show-Hide-First_Gui]
//--
Visible,%pButton_Show_Second_Gui%,#1,PERMANENT

[History-Old]
History001=JFX - WimInfo WIM file Information - modified by ChrisR for use also with 7-Zip
History002=Homes32 - WimUtil.exe manage and create WIM images
History003=ChrisR - Some change in configuration and preconfiguration process
History004=ChrisR - Extracted wim folders with set var BootSRC, InstallSRC and ExtractWimFolder value Yes / No
History005=ChrisR - Wim Info from offline software registry hive (thanks JFX) and offline system hive for language ...
History006=ChrisR - Wim Interface Info with the new reconstruction of ChangeInterface macro with au3 :) (faster and secure). Thanks Lancelot, BlueLife, Homes32
History007=ChrisR - Add msgbox in wiminfo for debug
History008=Lancelot - Capi_UnMount reintegrated
History009=Lancelot - IniVariables support added
History010=ChrisR - wiminfo.exe - FindLanguages.exe unupxed to avoid idiot AV false positive ;)
History011=ChrisR - additional control of the extracted wim folders of boot.wim and install.wim
History012=Lancelot - HiveLoadTest_P added -> checks if builder can load hives -> side benefit also checks mount failure, if user can not load hives user 99.9/100 will not be able to mount wim   ;) (tip to advanced coders: redirect intentionally not used since builder is x86)
History014=Lancelot - HiveLoadTest_P moved to HiveUnLoad.script
History015=Lancelot - IniVariables BootSRC InstallSRC added //  %Source_Win% %Source_Sys% permanent after change (=> to easly change source and get things operational without restarting builder)
History016=Lancelot - minor enhancements on codes
History017=Lancelot - uac check added from Gena-PrepPE
History018=ChrisR - force to use wiminfo with 7-Zip. Vista Imagex can not print unicode text to console. So wiminfo can't get any infos here. this happen with Russian, Chinese, Korean, ... sources. thanks JFX
History019=ChrisR - JFX make a fix in wiminfo.exe for single index wim files - use now 7-Zip 9.2 or higher.
History020=ChrisR - delete wimimfo.exe file after running not mandatory.
History022=Lancelot - WimUtil.log copied to SupportLog_AddFiles if Wim file information missing
History023=ChrisR - cosmetics renamed WinPESE folder
History024=ChrisR - Find Win7, boot.wim and Install.wim  moved here, more appropriate with ExtractWimFolder
History025=ChrisR - Following AU3381 updated
History026=ChrisR - Message and info for Extracted Wim Folders. http://theoven.org/index.php?topic=228
History027=ChrisR - Check SourceDir for Extracted Wim Folder

[InterfaceEncoded]
Save.bmp=1016,1355
dustr.bmp=893bytes,1Kb
Exclamation.bmp=452,603
DoubleJDesignRavenna3dArrowDown0016016.bmp=622,830
BokehliciaCaptivaSoftwareupload0016016.bmp=676,902
AmperossQetto2Move0016016.bmp=893,1191

[EncodedFile-InterfaceEncoded-Save.bmp]
lines=0
0=eJzd09tTGlccB/D2pY997p/Q19oOSm1nOm1e+9AWEJwY0rAXbjX2KS/tg5EAq0kzauJ4l1QjWsULRWOsTVM0gKAsC4MusLCkurKK3M4KmHhpV0zaB6F/QH7z/Z3Hz/zO78z5/MvCO2+VSsD3+3y/96rfLp3ntfzueb+uv9/0CjlWrAadpaXZrNc/uI2ZB3p+HuwZGep90Ns11tdvGhgYGeybwIyPbjZbdc1TLS2WmwbS5b7oDGuUFsW3k5evmOob2uVy1+Q4bl8Kep2hwPrG+rrDs7r2zN4NQV2ffXH/0qXebySdooZJfdtF5xcYdqCoD1J5II1JXLdwp3VQqzHfuJGMho4PX7DZDPMXPayA+6uq+z+pXbx6baROPq0zXnRGIcSFoF4EdaKq3jrRwzbd3Y+EfR8IKbfjOH+YLx7upnYnIWSUd2qFy1evjMvqzYZblRwfgjoQ5ZBMMtNx+6fq2s4Phavz1jTLvjwsFgq5KUQ1ViUwfSx0yXlHZjZWdEhEuQ6hEzLps3vtdwW1d6pq5nu6fAF8L8UevMwNa9X3BIL2T4X2/3WcMOpVwH+o1aaG+ufz1o2OTifWutDfjf86UwwQp8kdi1LZX13TVSNwy+WVHDOEuJWqCKJywegSjDxuvG5XNS6qG6e/a7JptMvapsdN36+hau81yI2ifgVcyRmDkady+Z9S2aJK5fjxB4/eENBjbmObw9jqwowEhq20GQjMgLfqnZjOoVFXciwQPCv5+kmrMfjUvu31pcMRQEWzfKLRdDTK0NH9GJWlQkk6nF5bXW5sMkulY0b9RWdSoZivl1Bz1tN05hR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WdUVFRq1at+l957xeanMaUPVFR0U2NTf/Nrv9DkxM+9C4qIr6vt/+/wml0fTLrH+3Yvufr16//d7z67XjjH/95kG7+078cj77feeoh1AMA+kpMA3ic43etSM5JzE0syczP00vKLWAYBSMKCDFB6FJG7PLT0jXWMDABALBlCE/6kIw0AQAAAAIAAAArAAAAdQEAAAAAAAABAAAAAAAAAAAAAAA

[AuthorEncoded]
Images.bmp=6983,9311
Logo=Images.bmp

[EncodedFile-AuthorEncoded-Images.bmp]
lines=2
[encoded data, 9317 characters]

[EncodedFolders]
WimTools

[WimTools]
FindLanguages.exe=7300,9734
wiminfo.exe=10943,14591

[EncodedFile-WimTools-FindLanguages.exe]
lines=2
[encoded data, 9740 characters]

[EncodedFile-WimTools-wiminfo.exe]
lines=3
[encoded data, 14599 characters]

[DownloadXXX]
Call,DownloadXQ
Run,%ScriptFile%,Settings_Default
If,ExistSection,%ScriptFile%,Settings_Default_%ProjectName%,Run,%ScriptFile%,Settings_Default_%ProjectName%
System,RefreshInterface

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

[Settings_Default]
Run,%ScriptFile%,Interface_Default
Run,%ScriptFile%,Show_First_Gui
IniWrite,%ScriptFile%,DefaultValues,pBootWimSrcBox,#$pGlobalTemplates#$p\WinXExtract\BootWimSrc
IniWrite,%ScriptFile%,DefaultValues,pBootWimSrcBox,#$pGlobalTemplates#$p\WinXExtract\InstallWimSrc
Visible,%pCheckB_Wimmount%,False,PERMANENT
Set,%pRadioG_ImageIndex%,1,Permanent

[Settings_Default_Win10PESE]
IniWrite,%ScriptFile%,DefaultValues,pBootWimSrcBox,#$pGlobalTemplates#$p\Win10Extract\BootWimSrc
IniWrite,%ScriptFile%,DefaultValues,pBootWimSrcBox,#$pGlobalTemplates#$p\Win10Extract\InstallWimSrc

[Settings_Default_Win8.1SE]
IniWrite,%ScriptFile%,DefaultValues,pBootWimSrcBox,#$pGlobalTemplates#$p\Win8Extract\BootWimSrc
IniWrite,%ScriptFile%,DefaultValues,pBootWimSrcBox,#$pGlobalTemplates#$p\Win8Extract\InstallWimSrc

[Settings_Default_Win8PESE]
IniWrite,%ScriptFile%,DefaultValues,pBootWimSrcBox,#$pGlobalTemplates#$p\Win8Extract\BootWimSrc
IniWrite,%ScriptFile%,DefaultValues,pBootWimSrcBox,#$pGlobalTemplates#$p\Win8Extract\InstallWimSrc

[Settings_Default_Win7PESE]
IniWrite,%ScriptFile%,DefaultValues,pBootWimSrcBox,#$pGlobalTemplates#$p\Win7Extract\BootWimSrc
IniWrite,%ScriptFile%,DefaultValues,pBootWimSrcBox,#$pGlobalTemplates#$p\Win7Extract\InstallWimSrc
Visible,%pCheckB_Wimmount%,True,PERMANENT
Set,%pRadioG_ImageIndex%,0,Permanent

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