Skip to content

Commit

Permalink
Allow silent install without application launch
Browse files Browse the repository at this point in the history
Some users may want to install moolticute in an unattended silent
way, e.g. the following installs in silent mode skipping the creation of
a desktop icon:

    setupfile.exe /VERYSILENT /TASKS="!desktopicon"

However this will still run programs in the `RUN` section which executes
moolticute. This is undesired in an unattended setup, so we skip this
[on silent installs][1].

[1]: https://documentation.help/Inno-Setup/topic_runsection.htm#skipifsilent
  • Loading branch information
stschulte committed Feb 11, 2024
1 parent 7d635e5 commit 42558af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion win/installer.iss
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Name: "Full"; Description: "Full installation"
Name: "moolticute"; Description: "Moolticute"; Types: Full

[Run]
Filename: "{app}\moolticute.exe"; WorkingDir: "{app}"; Description: "Start Moolticute"; Flags: postinstall nowait runascurrentuser
Filename: "{app}\moolticute.exe"; WorkingDir: "{app}"; Description: "Start Moolticute"; Flags: postinstall nowait runascurrentuser skipifsilent

[Registry]
Root: "HKCU"; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"; ValueType: string; ValueName: "Moolticute"; ValueData: "{app}\moolticute.exe --autolaunched"; Flags: uninsdeletevalue
Expand Down

0 comments on commit 42558af

Please sign in to comment.