浏览代码

feat(bundler): check `Launch app` by default for WiX, closes #5859 (#5871)

Amr Bashir 2 年之前
父节点
当前提交
89602cdce3
共有 2 个文件被更改,包括 7 次插入0 次删除
  1. 6 0
      .changes/wix-launch-app-checked.md
  2. 1 0
      tooling/bundler/src/bundle/windows/templates/main.wxs

+ 6 - 0
.changes/wix-launch-app-checked.md

@@ -0,0 +1,6 @@
+---
+"tauri-bundler": "patch"
+---
+
+On Windows, the `msi` installer's `Launch App` checkbox will be checked by default.
+

+ 1 - 0
tooling/bundler/src/bundle/windows/templates/main.wxs

@@ -63,6 +63,7 @@
 
         <!-- launch app checkbox -->
         <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="!(loc.LaunchApp)" />
+        <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="1"/>
         <Property Id="WixShellExecTarget" Value="[!Path]" />
         <CustomAction Id="LaunchApplication" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" />