Fixed file attributes not applied when extracted. (Issue #75)

- This also solves the issue with hidden/system files such as desktop.ini launching during startup
This commit is contained in:
Homes32
2024-01-21 18:13:19 -06:00
parent 35b7c2545b
commit f7f597276f

View File

@@ -35,8 +35,8 @@ Author=Homes32
Level=2 Level=2
Selected=True Selected=True
Mandatory=True Mandatory=True
Version=1.2.0.0 Version=1.2.1.0
Date=2022-02-02 Date=2024-01-21
[Variables] [Variables]
@@ -126,7 +126,7 @@ If,Not,ExistFile,%SourceBaseWim%,Run,%ScriptFile%,ExtractWinRE
StrFormat,FileName,%SourceBaseWim%,%tmp_BaseFileName% StrFormat,FileName,%SourceBaseWim%,%tmp_BaseFileName%
Echo,"Extracting [%tmp_BaseFileName%:%SourceBaseWimImage%] to [%TargetDir%]..." Echo,"Extracting [%tmp_BaseFileName%:%SourceBaseWimImage%] to [%TargetDir%]..."
WimApply,%SourceBaseWim%,%SourceBaseWimImage%,%TargetDir%,NOACL,NOATTRIB WimApply,%SourceBaseWim%,%SourceBaseWimImage%,%TargetDir%,NOACL
// If building with boot.wim we need to extract additional files to get up to the level of WinRE // If building with boot.wim we need to extract additional files to get up to the level of WinRE
If,%tmp_BaseFileName%,Equal,"Boot.wim",Run,%ScriptFile%,SuperchargeBootWim If,%tmp_BaseFileName%,Equal,"Boot.wim",Run,%ScriptFile%,SuperchargeBootWim
@@ -149,7 +149,7 @@ System,EndLocal
// =============================================================================================================================== // ===============================================================================================================================
[ExtractWinRE] [ExtractWinRE]
Echo,"Extracting [WinRE.wim] from [%SourceInstallWim%:%SourceInstallWimImage%]..." Echo,"Extracting [WinRE.wim] from [%SourceInstallWim%:%SourceInstallWimImage%]..."
WimExtract,%SourceInstallWim%,%SourceInstallWimImage%,Windows\System32\Recovery\WinRE.wim,%ProjectCache%,NOACL,NOATTRIB WimExtract,%SourceInstallWim%,%SourceInstallWimImage%,Windows\System32\Recovery\WinRE.wim,%ProjectCache%,NOACL
// Sanity Check // Sanity Check
Run,"%ProjectDir%\Core\200-PreFlight.script",CheckWinREVersion Run,"%ProjectDir%\Core\200-PreFlight.script",CheckWinREVersion
@@ -206,7 +206,7 @@ TxtAddline,%WinSxS-Listfile%,"\Windows\WinSxS\manifests\%SxSArch%_microsoft.wind
TxtAddline,%WinSxS-Listfile%,"\Windows\WinSxS\manifests\%SxSArch%_microsoft-windows-servicingstack_*.manifest",Append TxtAddline,%WinSxS-Listfile%,"\Windows\WinSxS\manifests\%SxSArch%_microsoft-windows-servicingstack_*.manifest",Append
Echo,"Extracting Essential Windows SidebySide Components..." Echo,"Extracting Essential Windows SidebySide Components..."
WimExtractBulk,%SourceBaseWim%,%SourceBaseWimImage%,%WinSxS-Listfile%,%TargetDir%,NOACL,NOATTRIB,NOERR WimExtractBulk,%SourceBaseWim%,%SourceBaseWimImage%,%WinSxS-Listfile%,%TargetDir%,NOACL,NOERR
If,Not,ExistDir,%TargetWindows%\WinSxS\Catalogs,DirMake,%TargetWindows%\WinSxS\Catalogs If,Not,ExistDir,%TargetWindows%\WinSxS\Catalogs,DirMake,%TargetWindows%\WinSxS\Catalogs
System,EndLocal System,EndLocal