Skip to content

Commit 5913f72

Browse files
authored
bug fix (#4890)
1 parent 61c8a40 commit 5913f72

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

installer/dev/install.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,8 @@ namespace WindowsAppRuntimeInstaller
315315
{
316316
if (isPackageInstalledAndIsPackageStatusOK)
317317
{
318-
// If currently installed Package (either same or higher version than the version from the installer) is in good state, do nothing and return.
318+
// If currently installed Package (either same or higher version than the version from the installer) is in good state, clear the package higher version and return.
319+
installActivityContext.SetExistingPackageIfHigherVersion(L"");
319320
return;
320321
}
321322
}
@@ -353,6 +354,9 @@ namespace WindowsAppRuntimeInstaller
353354

354355
// Re-register higher version of the package that is already installed.
355356
hrDeploymentResult = RegisterPackage(installActivityContext, installActivityContext.GetExistingPackageIfHigherVersion().c_str(), forceDeployment);
357+
358+
// Clear the package higher version after it has been re-registered
359+
installActivityContext.SetExistingPackageIfHigherVersion(L"");
356360
}
357361
else
358362
{

0 commit comments

Comments
 (0)