From 5094108275056053a855190d13f250b0f942fd90 Mon Sep 17 00:00:00 2001 From: Amrsatrio Date: Sun, 1 Sep 2024 18:39:10 +0700 Subject: [PATCH] Setup: Always unpack StartUI stuff on 22H2+ --- ep_setup/ep_setup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ep_setup/ep_setup.c b/ep_setup/ep_setup.c index ce4908782..affb843d6 100644 --- a/ep_setup/ep_setup.c +++ b/ep_setup/ep_setup.c @@ -1344,7 +1344,7 @@ int WINAPI wWinMain( } } DeleteResource(wszPath, L"Windows.UI.ShellCommon.pri"); - BOOL bNoStartUIInThisBuild = ((global_rovi.dwBuildNumber >= 22621 && global_rovi.dwBuildNumber <= 22635) && global_ubr >= 3930) || global_rovi.dwBuildNumber >= 25169; + BOOL bUnpackCustomStartUI = (global_rovi.dwBuildNumber >= 22621 && global_rovi.dwBuildNumber <= 22635) || global_rovi.dwBuildNumber >= 25169; BOOL bNoPniduiInThisBuild = global_rovi.dwBuildNumber >= 25236; if (bInstall) { @@ -1353,7 +1353,7 @@ int WINAPI wWinMain( { if (bOk) bOk = ExtractDirectory(zipFile, "pnidui/", wszPath, languages, LCT_MUI); } - if (bNoStartUIInThisBuild) + if (bUnpackCustomStartUI) { if (bOk) bOk = ExtractDirectory(zipFile, "Windows.UI.ShellCommon/", wszPath, languages, LCT_PRI); } @@ -1442,7 +1442,7 @@ int WINAPI wWinMain( bOk = CreateSymbolicLinkW(wszSymLinkPath, wszOrigPath, 0); } - if (bOk) bOk = InstallResource(bInstall && bNoStartUIInThisBuild, hInstance, zipFile, "StartUI/StartUI.dll", wszPath, L"StartUI_.dll"); + if (bOk) bOk = InstallResource(bInstall && bUnpackCustomStartUI, hInstance, zipFile, "StartUI/StartUI.dll", wszPath, L"StartUI_.dll"); // Delete remnants from earlier versions if (bOk) bOk = DeleteResource(wszPath, L"AppResolverLegacy.dll");