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}}