build/windows: Don't allow multiple Installers at same time

We have counter measures to avoid installing while gimp opened at 'prep time',
but until now none for the installer itself. Let's fix it with SetupMutex.

The final UX is just less worse (than today): the user needs first to select a
language, then only after this the dialog about two installer will be prompt.
Seems that Inno devs willn't fix: https://github.com/jrsoftware/issrc/pull/461
This commit is contained in:
Bruno Lopes 2024-06-01 13:03:16 -03:00 committed by Bruno
parent 6d1db0d7d5
commit 57012174fb
1 changed files with 4 additions and 0 deletions

View File

@ -115,8 +115,12 @@ AppVerName=GIMP {#GIMP_VERSION}-{#REVISION}
VersionInfoVersion={#GIMP_VERSION}
AppVersion={#GIMP_VERSION}
#if Defined(GIMP_UNSTABLE) && GIMP_UNSTABLE != ""
;SetupMutex avoids two installers running at the same time but the
;UX is ultra clunky: https://github.com/jrsoftware/issrc/pull/461
SetupMutex=GIMP-{#GIMP_APP_VERSION}
AppID=GIMP-{#GIMP_APP_VERSION}
#else
SetupMutex=GIMP-{#MAJOR}
AppID=GIMP-{#MAJOR}
#endif