diff --git a/packaging/windows/BiLauncher.iss b/packaging/windows/BiLauncher.iss index 6a1f83f..88a45c0 100644 --- a/packaging/windows/BiLauncher.iss +++ b/packaging/windows/BiLauncher.iss @@ -14,6 +14,13 @@ #ifndef OutputDir #define OutputDir "." #endif +; VersionInfoVersion принимает только числа (X.Y.Z[.W]), поэтому у предрелиза +; (1.0.1-rc1) суффикс отрезаем; полная версия идёт в текстовые поля. +#if Pos("-", AppVersion) > 0 + #define NumericVersion Copy(AppVersion, 1, Pos("-", AppVersion) - 1) +#else + #define NumericVersion AppVersion +#endif [Setup] ; AppId не менять между версиями — по нему обновление находит прежнюю установку. @@ -24,7 +31,9 @@ AppVerName=BiLauncher {#AppVersion} AppPublisher=GaleonDev AppPublisherURL=https://projects-live.galeonworx.com/galeon/BiLauncher AppSupportURL=https://projects-live.galeonworx.com/galeon/BiLauncher/issues -VersionInfoVersion={#AppVersion} +VersionInfoVersion={#NumericVersion} +VersionInfoTextVersion={#AppVersion} +VersionInfoProductTextVersion={#AppVersion} DefaultDirName={autopf}\BiLauncher DefaultGroupName=BiLauncher DisableProgramGroupPage=yes