]> repos.lx-s.de Git - winmute.git/commitdiff
Update Installer script
authorbovirus <1262554+bovirus@users.noreply.github.com>
Fri, 6 Oct 2023 15:30:07 +0000 (17:30 +0200)
committerGitHub <noreply@github.com>
Fri, 6 Oct 2023 15:30:07 +0000 (17:30 +0200)
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 [new file with mode: 0644]
Dist/InnoSetup/info-before.txt
Dist/InnoSetup/winmute-setup-strings.iss [new file with mode: 0644]
Dist/InnoSetup/winmute-setup.iss

diff --git a/Dist/InnoSetup/info-before.ita.txt b/Dist/InnoSetup/info-before.ita.txt
new file mode 100644 (file)
index 0000000..db8c820
--- /dev/null
@@ -0,0 +1,11 @@
+Assicurati che nel sistema sia installata lasione più recente di Microsoft Visual C++. \r
+Per eseguire WinMute sono necessari solo i file runtime x64.\r
+\r
+Puoi scaricarlo qui: \r
+\r
+https://docs.microsoft.com/cpp/windows/latest-supported-vc-redist \r
+\r
+o direttamente qui \r
+\r
+https://aka.ms/vs/17/release/vc_redist.x64.exe\r
+\r
index a5836c8a55579d62b5253b8faf0ee4ba74439925..9ca8d779d6e0b9545a36bfbf45fe223d455ecddc 100644 (file)
@@ -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 (file)
index 0000000..3cc6d53
--- /dev/null
@@ -0,0 +1,8 @@
+[CustomMessages]\r
+english.StartpAppLogon=Start WinMute when you log on\r
+;italian.StartpAppLogon=Esegui WinMute all'accesso\r
+\r
+[Languages]\r
+Name: "english"; MessagesFile: "compiler:Default.isl";           InfoBeforeFile: "info-before.txt";\r
+Name: "german";  MessagesFile: "compiler:Languages\German.isl";  InfoBeforeFile: "info-before.txt";\r
+;Name: "italian";  MessagesFile: "compiler:Languages\Italian.isl";  InfoBeforeFile: "info-before.ita.txt";\r
index 2bff0ab543c97029066280e64cc95a7851ea8e03..3bcf31db78472e020b7978b1ffce9274f78e4aab 100644 (file)
@@ -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"\r
+#define MyAppVersion   GetVersionNumbersString(MyAppExeName)\r
 #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
+