From 7d83a70031a828bfc8de1d76e736ddd54ce65805 Mon Sep 17 00:00:00 2001 From: bovirus <1262554+bovirus@users.noreply.github.com> Date: Fri, 6 Oct 2023 17:30:07 +0200 Subject: [PATCH] Update Installer script Update instalelr script Move all strings/custom emssages ina separate file for better managemnT Setup uninstall icon Setup app version get from exe Use GNU 3.0 RTF license file Many other improvements. --- Dist/InnoSetup/info-before.ita.txt | 11 ++++++ Dist/InnoSetup/info-before.txt | 11 ++++-- Dist/InnoSetup/winmute-setup-strings.iss | 8 +++++ Dist/InnoSetup/winmute-setup.iss | 43 +++++++++++++++--------- 4 files changed, 55 insertions(+), 18 deletions(-) create mode 100644 Dist/InnoSetup/info-before.ita.txt create mode 100644 Dist/InnoSetup/winmute-setup-strings.iss diff --git a/Dist/InnoSetup/info-before.ita.txt b/Dist/InnoSetup/info-before.ita.txt new file mode 100644 index 0000000..db8c820 --- /dev/null +++ b/Dist/InnoSetup/info-before.ita.txt @@ -0,0 +1,11 @@ +Assicurati che nel sistema sia installata lasione più recente di Microsoft Visual C++. +Per eseguire WinMute sono necessari solo i file runtime x64. + +Puoi scaricarlo qui: + +https://docs.microsoft.com/cpp/windows/latest-supported-vc-redist + +o direttamente qui + +https://aka.ms/vs/17/release/vc_redist.x64.exe + diff --git a/Dist/InnoSetup/info-before.txt b/Dist/InnoSetup/info-before.txt index a5836c8..9ca8d77 100644 --- a/Dist/InnoSetup/info-before.txt +++ b/Dist/InnoSetup/info-before.txt @@ -1,3 +1,10 @@ -Please make sure that the latest Microsoft Visual C++ runtime is installed on your system. To run WinMute only the x64 runtime files are needed. +Please make sure that the latest Microsoft Visual C++ runtime is installed on your system. +To run WinMute only the x64 runtime files are needed. -You can download it here: https://docs.microsoft.com/cpp/windows/latest-supported-vc-redist or directly here https://aka.ms/vs/17/release/vc_redist.x64.exe \ No newline at end of file +You can download it here: + +https://docs.microsoft.com/cpp/windows/latest-supported-vc-redist + +or directly here + +https://aka.ms/vs/17/release/vc_redist.x64.exe diff --git a/Dist/InnoSetup/winmute-setup-strings.iss b/Dist/InnoSetup/winmute-setup-strings.iss new file mode 100644 index 0000000..3cc6d53 --- /dev/null +++ b/Dist/InnoSetup/winmute-setup-strings.iss @@ -0,0 +1,8 @@ +[CustomMessages] +english.StartpAppLogon=Start WinMute when you log on +;italian.StartpAppLogon=Esegui WinMute all'accesso + +[Languages] +Name: "english"; MessagesFile: "compiler:Default.isl"; InfoBeforeFile: "info-before.txt"; +Name: "german"; MessagesFile: "compiler:Languages\German.isl"; InfoBeforeFile: "info-before.txt"; +;Name: "italian"; MessagesFile: "compiler:Languages\Italian.isl"; InfoBeforeFile: "info-before.ita.txt"; diff --git a/Dist/InnoSetup/winmute-setup.iss b/Dist/InnoSetup/winmute-setup.iss index 2bff0ab..3bcf31d 100644 --- a/Dist/InnoSetup/winmute-setup.iss +++ b/Dist/InnoSetup/winmute-setup.iss @@ -1,44 +1,54 @@ -#define MyAppName "WinMute" -#define MyAppVersion "2.4.1.0" +#include ".\winmute-setup-strings.iss" +#define MyAppName "WinMute" +#define MyAppExeName "..\bin\" + MyAppName + ".exe" +#define MyAppVersion GetVersionNumbersString(MyAppExeName) #define MyAppPublisher "LX-Systems" -#define MyAppURL "https://www.lx-s.de/winmute" -#define MyAppExeName "WinMute.exe" -#define MyAppMutex "LxSystemsWinMute" +#define MyAppURL "https://www.lx-s.de/winmute" +#define MyAppExeName "WinMute.exe" +#define MyAppMutex "LxSystemsWinMute" +#define CurrentYear GetDateTimeString('yyyy','','') [Setup] AppId={{D2E8F9EF-11E7-418B-B9B7-A35A69A30490} AppName={#MyAppName} AppVersion={#MyAppVersion} AppVerName={#MyAppName} {#MyAppVersion} + +AppCopyright=(c) {#CurrentYear} {#MyAppPublisher} AppPublisher={#MyAppPublisher} AppPublisherURL={#MyAppURL} AppSupportURL={#MyAppURL} AppUpdatesURL={#MyAppURL} + +VersionInfoDescription={#MyAppName} installer +VersionInfoProductName={#MyAppName} +VersionInfoVersion={#MyAppVersion} + +UninstallDisplayName={#MyAppName} +UninstallDisplayIcon={app}\{#MyAppExeName}.exe + +WizardStyle=modern +ShowLanguageDialog=yes +UsePreviousLanguage=no + DefaultDirName={autopf}\{#MyAppPublisher}\{#MyAppName} DisableProgramGroupPage=yes -LicenseFile=..\bin\license.txt +LicenseFile=..\bin\license.rtf InfoBeforeFile=info-before.txt AppMutex={#MyAppMutex} SetupMutex={#MyAppMutex}Setup -PrivilegesRequiredOverridesAllowed=dialog +;PrivilegesRequiredOverridesAllowed=dialog PrivilegesRequired=lowest OutputDir=..\bin\ OutputBaseFilename=WinMuteSetup -SetupIconFile=..\..\WinMute\icons\app.ico -UninstallDisplayIcon={app}\{#MyAppExeName}.exe +;SetupIconFile=..\..\WinMute\icons\app.ico ArchitecturesInstallIn64BitMode=x64 Compression=lzma SolidCompression=yes -WizardStyle=modern -ShowLanguageDialog=auto - -[Languages] -Name: "en"; MessagesFile: "compiler:Default.isl" -Name: "de"; MessagesFile: "compiler:Languages\German.isl" [Tasks] Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked -Name: "autostart" ; Description: "Start WinMute when you log on" ; GroupDescription: "Autostart"; Flags: unchecked +Name: "autostart" ; Description: "{cm:StartpAppLogon}" ; GroupDescription: "Autostart"; Flags: unchecked [Files] Source: "..\bin\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion @@ -62,3 +72,4 @@ Root: HKCU; Subkey: "Software\Microsoft\Windows\CurrentVersion\Run"; ValueType: [Run] Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent + -- 2.43.0