build/windows: Improve Repair mode to check parent dir

Following eab5e061

This avoids curious users cheating the mode to make multiple installs, which
is unsupported by us since we only allow for different mutexes. See: #1382
This commit is contained in:
Bruno Lopes 2025-04-11 08:18:12 -03:00
parent 23d4c6fda9
commit 44e3655536
No known key found for this signature in database

View file

@ -643,7 +643,7 @@ begin
StrToVersion('{#FULL_GIMP_VERSION}', Installer_AppVersionInt);
if (isInstalled = 'Installed') and (not DirExists(InstallLocation)) then begin
if (isInstalled = 'Installed') and not DirExists(ExtractFilePath(RemoveBackslashUnlessRoot(InstallLocation))) then begin
InstallType := 'itRepair';
end else if isInstalled = 'notInstalled' then begin
InstallType := 'itInstall';