Skip to content

Commit 3496a88

Browse files
committed
Support silent mode
In silent mode, we do not launch the wizard after install completes. Instead it will be shown when the user first runs the app.
1 parent af4d285 commit 3496a88

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Installer/PasteIntoFile.wxs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@
3232
AllowSameVersionUpgrades="no" />
3333

3434
<!-- After install: launch wizard -->
35-
<CustomAction Id='LaunchProgram' FileKey='mainExecutable' ExeCommand='wizard' Return='asyncNoWait' />
35+
<CustomAction Id='LaunchProgram' FileKey='mainExecutable' ExeCommand='wizard' Impersonate='yes' Return='asyncNoWait' />
3636

3737
<InstallExecuteSequence>
38-
<Custom Action='LaunchProgram' After='InstallFinalize'>NOT Installed</Custom>
38+
<!-- This action is not executed during uninstall and silent mode -->
39+
<Custom Action='LaunchProgram' After='InstallFinalize'>(NOT Installed) AND (NOT UILevel=2)</Custom>
3940
</InstallExecuteSequence>
4041

4142
</Product>

0 commit comments

Comments
 (0)