mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 01:43:24 +00:00
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:
parent
23d4c6fda9
commit
44e3655536
1 changed files with 1 additions and 1 deletions
|
@ -643,7 +643,7 @@ begin
|
||||||
|
|
||||||
StrToVersion('{#FULL_GIMP_VERSION}', Installer_AppVersionInt);
|
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';
|
InstallType := 'itRepair';
|
||||||
end else if isInstalled = 'notInstalled' then begin
|
end else if isInstalled = 'notInstalled' then begin
|
||||||
InstallType := 'itInstall';
|
InstallType := 'itInstall';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue