#define MyAppPublisher "LX-Systems"\r
#define MyAppURL "https://www.lx-s.de/winmute"\r
#define MyAppExeName "WinMute.exe"\r
-#define MyAppMutex "LxSystemsWinMute"\r
+#define MyAppMutex "LxSystemsWinMuteRunning"\r
#define CurrentYear GetDateTimeString('yyyy','','')\r
\r
[Setup]\r
VersionInfoVersion={#MyAppVersion}\r
\r
UninstallDisplayName={#MyAppName}\r
-UninstallDisplayIcon={app}\{#MyAppExeName}.exe,1\r
+UninstallDisplayIcon={app}\{#MyAppExeName}.exe\r
\r
WizardStyle=modern\r
ShowLanguageDialog=yes\r
OutputBaseFilename=WinMuteSetup\r
\r
SetupIconFile=..\..\WinMute\icons\app.ico\r
-ArchitecturesInstallIn64BitMode=x64\r
+ArchitecturesInstallIn64BitMode=x64os\r
Compression=lzma\r
SolidCompression=yes\r
\r
Root: HKCU; Subkey: "Software\Microsoft\Windows\CurrentVersion\Run"; ValueType: string; ValueName: "LX-Systems WinMute"; ValueData: "{app}\{#MyAppExeName}"; Tasks: autostart; Flags: uninsdeletevalue\r
\r
[Run]\r
-Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent\r
+Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent runasoriginaluser\r
+\r
+[UninstallRun]\r
+\r
LoadLanguage(settings, i18n);
- HANDLE hMutex = CreateMutexW(nullptr, TRUE, L"LxSystemsWinMuteRunOnce");
+ HANDLE hMutex = CreateMutexW(nullptr, TRUE, L"LxSystemsWinMuteRunning");
if (hMutex == nullptr) {
return FALSE;
} else if (GetLastError() == ERROR_ALREADY_EXISTS) {