File tree 3 files changed +15
-0
lines changed
tooling/bundler/src/bundle/windows
3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " tauri-bundler " : patch
3
+ ---
4
+
5
+ Configure WiX to add an option to launch the application after finishing setup.
Original file line number Diff line number Diff line change @@ -330,6 +330,8 @@ fn run_light(
330
330
let mut args: Vec < String > = vec ! [
331
331
"-ext" . to_string( ) ,
332
332
"WixUIExtension" . to_string( ) ,
333
+ "-ext" . to_string( ) ,
334
+ "WixUtilExtension" . to_string( ) ,
333
335
"-o" . to_string( ) ,
334
336
output_path. display( ) . to_string( ) ,
335
337
] ;
Original file line number Diff line number Diff line change 46
46
<Property Id =" ARPNOREPAIR" Value =" yes" Secure =" yes" /> <!-- Remove repair -->
47
47
<SetProperty Id =" ARPNOMODIFY" Value =" 1" After =" InstallValidate" Sequence =" execute" />
48
48
49
+ <!-- launch app checkbox -->
50
+ <Property Id =" WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value =" Launch {{{product_name}}}" />
51
+ <Property Id =" WixShellExecTarget" Value =" {{{app_exe_source}}}" />
52
+ <CustomAction Id =" LaunchApplication" BinaryKey =" WixCA" DllEntry =" WixShellExec" Impersonate =" yes" />
53
+
49
54
<UI >
55
+ <!-- launch app checkbox -->
56
+ <Publish Dialog =" ExitDialog" Control =" Finish" Event =" DoAction" Value =" LaunchApplication" >WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish >
57
+
50
58
<Property Id =" WIXUI_INSTALLDIR" Value =" INSTALLDIR" />
51
59
52
60
{{#unless license}}
You can’t perform that action at this time.
0 commit comments