Skip to content

Commit

Permalink
Added update check to setup
Browse files Browse the repository at this point in the history
  • Loading branch information
lx-s committed Dec 20, 2023
1 parent 57bf368 commit 56e1853
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
3 changes: 3 additions & 0 deletions Dist/InnoSetup/winmute-setup-languages.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
en.StartpAppLogon=Start WinMute when you log on
de.StartpAppLogon=WinMute mit Windows starten
it.StartpAppLogon=Esegui WinMute all'accesso
en.CheckForUpdates=Automatically check for updates
de.CheckForUpdates=Automatisch nach Updates suchen
it.CheckForUpdates=Verifica automaticamente la disponibilità di aggiornamenti
[Languages]
Name: "en"; MessagesFile: "compiler:Default.isl"; InfoBeforeFile: "translations/info-before.en.txt";
Expand Down
15 changes: 10 additions & 5 deletions Dist/InnoSetup/winmute-setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ VersionInfoProductName={#MyAppName}
VersionInfoVersion={#MyAppVersion}

UninstallDisplayName={#MyAppName}
UninstallDisplayIcon={app}\{#MyAppExeName}.exe
UninstallDisplayIcon={app}\{#MyAppExeName}.exe,1

WizardStyle=modern
ShowLanguageDialog=yes
Expand All @@ -38,7 +38,7 @@ DisableProgramGroupPage=yes
LicenseFile=..\bin\license.rtf
AppMutex={#MyAppMutex}
SetupMutex={#MyAppMutex}Setup
;PrivilegesRequiredOverridesAllowed=dialog
PrivilegesRequiredOverridesAllowed=dialog
PrivilegesRequired=lowest
OutputDir=..\bin\
OutputBaseFilename=WinMuteSetup
Expand All @@ -51,13 +51,17 @@ SolidCompression=yes
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "autostart" ; Description: "{cm:StartpAppLogon}" ; GroupDescription: "Autostart"; Flags: unchecked
Name: "updates"; Description: "{cm:CheckForUpdates}"; GroupDescription: "Updates"; Flags: unchecked

[Files]
Source: "..\bin\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\bin\changelog.txt"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\bin\license.txt"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\bin\liesmich.html"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\bin\readme.html"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\bin\lang\lang-de.json"; DestDir: "{app}\lang"; Flags: ignoreversion
Source: "..\bin\lang\lang-en.json"; DestDir: "{app}\lang"; Flags: ignoreversion
Source: "..\bin\lang\lang-es.json"; DestDir: "{app}\lang"; Flags: ignoreversion
Source: "..\bin\lang\lang-it.json"; DestDir: "{app}\lang"; Flags: ignoreversion
Source: "..\bin\lang\lang-nl.json"; DestDir: "{app}\lang"; Flags: ignoreversion

[Icons]
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Expand All @@ -67,10 +71,11 @@ Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: de
Root: HKCU; Subkey: "Software\lx-systems"; Flags: uninsdeletekeyifempty
Root: HKCU; Subkey: "Software\lx-systems\WinMute"; Flags: uninsdeletekey
Root: HKCU; Subkey: "Software\lx-systems\WinMute"; ValueType: string; ValueName: "InstallPath"; ValueData: "{app}"
Root: HKCU; Subkey: "Software\lx-systems\WinMute"; ValueType: dword; ValueName: "CheckForUpdate"; ValueData: "1"; Tasks: updates;
Root: HKCU; Subkey: "Software\lx-systems\WinMute\BluetoothDevices"; Flags: uninsdeletekey
Root: HKCU; Subkey: "Software\lx-systems\WinMute\WifiNetworks"; Flags: uninsdeletekey
Root: HKCU; Subkey: "Software\lx-systems\WinMute\ManagedAudioEndpoints"; Flags: uninsdeletekey
Root: HKCU; Subkey: "Software\Microsoft\Windows\CurrentVersion\Run"; ValueType: string; ValueName: "LX-Systems WinMute"; ValueData: "{app}\{#MyAppExeName}"; Tasks: autostart
Root: HKCU; Subkey: "Software\Microsoft\Windows\CurrentVersion\Run"; ValueType: string; ValueName: "LX-Systems WinMute"; ValueData: "{app}\{#MyAppExeName}"; Tasks: autostart; Flags: uninsdeletevalue

[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent

0 comments on commit 56e1853

Please sign in to comment.