File tree 2 files changed +10
-9
lines changed
plugins/updater/src/updater
2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " updater " : patch
3
+ ---
4
+
5
+ Implement passive mode on NSIS and automatically restart after NSIS update.
Original file line number Diff line number Diff line change @@ -736,15 +736,11 @@ fn copy_files_and_run<R: Read + Seek>(
736
736
// If it's an `exe` we expect an installer not a runtime.
737
737
if found_path. extension ( ) == Some ( OsStr :: new ( "exe" ) ) {
738
738
// Run the EXE
739
- let mut installer = Command :: new ( found_path) ;
740
- if tauri:: utils:: config:: WindowsUpdateInstallMode :: Quiet
741
- == config. tauri . bundle . updater . windows . install_mode
742
- {
743
- installer. arg ( "/S" ) ;
744
- }
745
- installer. args ( & updater_config. installer_args ) ;
746
-
747
- installer. spawn ( ) . expect ( "installer failed to start" ) ;
739
+ Command :: new ( found_path)
740
+ . args ( config. tauri . bundle . updater . windows . install_mode . nsis_args ( ) )
741
+ . args ( & updater_config. installer_args )
742
+ . spawn ( )
743
+ . expect ( "installer failed to start" ) ;
748
744
749
745
exit ( 0 ) ;
750
746
} else if found_path. extension ( ) == Some ( OsStr :: new ( "msi" ) ) {
You can’t perform that action at this time.
0 commit comments