Skip to content

Commit

Permalink
Setup: Always unpack StartUI stuff on 22H2+
Browse files Browse the repository at this point in the history
  • Loading branch information
Amrsatrio committed Sep 1, 2024
1 parent 2188f0a commit 5094108
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ep_setup/ep_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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);
}
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 5094108

Please sign in to comment.