File tree Expand file tree Collapse file tree
tooling/bundler/src/bundle/windows Expand file tree Collapse file tree 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(
330330 let mut args: Vec < String > = vec ! [
331331 "-ext" . to_string( ) ,
332332 "WixUIExtension" . to_string( ) ,
333+ "-ext" . to_string( ) ,
334+ "WixUtilExtension" . to_string( ) ,
333335 "-o" . to_string( ) ,
334336 output_path. display( ) . to_string( ) ,
335337 ] ;
Original file line number Diff line number Diff line change 4646 <Property Id =" ARPNOREPAIR" Value =" yes" Secure =" yes" /> <!-- Remove repair -->
4747 <SetProperty Id =" ARPNOMODIFY" Value =" 1" After =" InstallValidate" Sequence =" execute" />
4848
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+
4954 <UI >
55+ <!-- launch app checkbox -->
56+ <Publish Dialog =" ExitDialog" Control =" Finish" Event =" DoAction" Value =" LaunchApplication" >WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish >
57+
5058 <Property Id =" WIXUI_INSTALLDIR" Value =" INSTALLDIR" />
5159
5260 {{#unless license}}
You can’t perform that action at this time.
0 commit comments