Skip to content

Commit 4af095a

Browse files
committed
Fix /NoAutoStart flag on the installer
1 parent bc6763d commit 4af095a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

WingetUI.iss

+2-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@ Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: re
243243
Filename: "powershell.exe"; Parameters: "-ExecutionPolicy Bypass -File ""{tmp}\EnsureWinGet.ps1"""; StatusMsg: "Ensuring WinGet is installed properly"; WorkingDir: {app}; Flags: runhidden;
244244
; Flags: runhidden
245245

246-
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: runasoriginaluser nowait postinstall;
246+
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: runasoriginaluser nowait postinstall; Check: not CmdLineParamExists('/NoAutoStart');
247+
247248
Filename: "{app}\{#MyAppExeName}"; Parameters: "--migrate-wingetui-to-unigetui"; StatusMsg: "Removing old icons...";
248249
; Check: not CmdLineParamExists('/NoAutoStart');
249250
; Autostart is required to finish installation properly from an update, hence autostart will be obligatory

0 commit comments

Comments
 (0)