From feb3a8f896802ff274333012c3b399beb5c86f41 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Thu, 9 Dec 2021 01:27:11 -0300 Subject: [PATCH] feat(bundler): configure WiX to add launch option, closes #3015 (#3043) --- .changes/wix-run-app.md | 5 +++++ tooling/bundler/src/bundle/windows/msi/wix.rs | 2 ++ tooling/bundler/src/bundle/windows/templates/main.wxs | 8 ++++++++ 3 files changed, 15 insertions(+) create mode 100644 .changes/wix-run-app.md diff --git a/.changes/wix-run-app.md b/.changes/wix-run-app.md new file mode 100644 index 000000000..30db1d3ff --- /dev/null +++ b/.changes/wix-run-app.md @@ -0,0 +1,5 @@ +--- +"tauri-bundler": patch +--- + +Configure WiX to add an option to launch the application after finishing setup. diff --git a/tooling/bundler/src/bundle/windows/msi/wix.rs b/tooling/bundler/src/bundle/windows/msi/wix.rs index c72de28c7..5c8f0d685 100644 --- a/tooling/bundler/src/bundle/windows/msi/wix.rs +++ b/tooling/bundler/src/bundle/windows/msi/wix.rs @@ -330,6 +330,8 @@ fn run_light( let mut args: Vec = vec![ "-ext".to_string(), "WixUIExtension".to_string(), + "-ext".to_string(), + "WixUtilExtension".to_string(), "-o".to_string(), output_path.display().to_string(), ]; diff --git a/tooling/bundler/src/bundle/windows/templates/main.wxs b/tooling/bundler/src/bundle/windows/templates/main.wxs index 50c2004ec..132f5150b 100644 --- a/tooling/bundler/src/bundle/windows/templates/main.wxs +++ b/tooling/bundler/src/bundle/windows/templates/main.wxs @@ -46,7 +46,15 @@ + + + + + + + WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed + {{#unless license}}