From 524438064908df3cf8b9ad78b55ba1a9afb3619e Mon Sep 17 00:00:00 2001 From: Principia4834 <3509988+Principia4834@users.noreply.github.com> Date: Tue, 16 Jun 2026 17:17:51 +0100 Subject: [PATCH 1/2] Fix BOM in installer script, required for multi-language support --- Resources/Installer/GreenSwampSetup.iss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/Installer/GreenSwampSetup.iss b/Resources/Installer/GreenSwampSetup.iss index b6c37f9..e32158c 100644 --- a/Resources/Installer/GreenSwampSetup.iss +++ b/Resources/Installer/GreenSwampSetup.iss @@ -1,4 +1,4 @@ -; Script generated by the ASCOM Driver Installer Script Generator 6.2.0.0 +; Script generated by the ASCOM Driver Installer Script Generator 6.2.0.0 ; Generated by Robert Morgan on 5/20/2018 (UTC) #define MyAppVersion "1.2.2.4" #define ManualName "GSS Manual v1224.pdf" From 82f1b24c776f2c126733e37e92f684b990b2651b Mon Sep 17 00:00:00 2001 From: Principia4834 <3509988+Principia4834@users.noreply.github.com> Date: Tue, 16 Jun 2026 18:08:17 +0100 Subject: [PATCH 2/2] Cleanup installer script language messages --- Resources/Installer/GreenSwampSetup.iss | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/Resources/Installer/GreenSwampSetup.iss b/Resources/Installer/GreenSwampSetup.iss index e32158c..48ead02 100644 --- a/Resources/Installer/GreenSwampSetup.iss +++ b/Resources/Installer/GreenSwampSetup.iss @@ -44,6 +44,7 @@ Name: "english"; MessagesFile: "compiler:Default.isl" Name: "french"; MessagesFile: "compiler:Languages\French.isl" Name: "german"; MessagesFile: "compiler:Languages\German.isl" Name: "italian"; MessagesFile: "compiler:Languages\Italian.isl" +; Keep this script and ChineseSimplified.isl as UTF-8 with BOM when building with Inno Setup < 6.3. Name: "chinese"; MessagesFile: "compiler:Languages\ChineseSimplified.isl" [Dirs] @@ -73,8 +74,8 @@ Source: "..\Manuals\GSS Manual.pdf"; DestDir: "{app}"; DestName:"{#ManualName}"; [Messages] english.WelcomeLabel2={#MyAppName} {#MyAppVersion}%n%nThis will install {#MyAppName} {#MyAppVersion} on your computer.%n%nIt is recommended that you close all other applications that may be currently using {#MyAppName} french.WelcomeLabel2={#MyAppName} {#MyAppVersion}%n%nCela installera {#MyAppName} {#MyAppVersion} sur votre ordinateur.%n%nIl est recommandé de fermer toutes les autres applications qui utilisent actuellement {#MyAppName} -german.WelcomeLabel2={#MyAppName} {#MyAppVersion}%n%nThis will install {#MyAppName} {#MyAppVersion} auf deinem Computer.%n%nEs wird empfohlen, alle anderen Anwendungen zu schließen, die derzeit möglicherweise verwendet werden {#MyAppName} -italian.WelcomeLabel2={#MyAppName} {#MyAppVersion}%n%nThis will install {#MyAppName} {#MyAppVersion} sul tuo computer.%n%nSi consiglia di chiudere tutte le altre applicazioni attualmente in uso {#MyAppName} +german.WelcomeLabel2={#MyAppName} {#MyAppVersion}%n%nDadurch wird {#MyAppName} {#MyAppVersion} auf deinem Computer.%n%nEs wird empfohlen, alle anderen Anwendungen zu schließen, die derzeit möglicherweise verwendet werden {#MyAppName} +italian.WelcomeLabel2={#MyAppName} {#MyAppVersion}%n%nQuesto installerà {#MyAppName} {#MyAppVersion} sul tuo computer.%n%nSi consiglia di chiudere tutte le altre applicazioni attualmente in uso {#MyAppName} chinese.WelcomeLabel2={#MyAppName} {#MyAppVersion}%n%n这将在你的计算机上安装 {#MyAppName} {#MyAppVersion}。%n%n建议关闭当前可能正在使用 {#MyAppName} 的所有其他应用程序。 [Tasks] @@ -164,14 +165,22 @@ begin // Check whether an extry exists if RegQueryStringValue(HKLM, UninstallRegistry, 'UninstallString', UninstallExe) then begin // Entry exists and previous version is installed so run its uninstaller quietly after informing the user - if ActiveLanguage = 'en' then + if ActiveLanguage = 'english' then begin MsgBox('Setup will now remove the previous version.', mbInformation, MB_OK); end; - if ActiveLanguage = 'fr' then + if ActiveLanguage = 'french' then begin MsgBox('Le programme d''installation supprimera désormais la version précédente.', mbInformation, MB_OK); end; + if ActiveLanguage = 'german' then + begin + MsgBox('Das Setup entfernt nun die vorherige Version.', mbInformation, MB_OK); + end; + if ActiveLanguage = 'itialian' then + begin + MsgBox('Il programma di installazione rimuoverà ora la versione precedente.', mbInformation, MB_OK); + end; if ActiveLanguage = 'chinese' then begin MsgBox('安装程序现在将移除以前的版本。', mbInformation, MB_OK); @@ -188,4 +197,4 @@ begin newfilepathname := ExpandConstant('{app}\') + logfilename; FileCopy(logfilepathname, newfilepathname, false); end; -end; \ No newline at end of file +end;