File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
pkg/rancher-desktop/main/update Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -88,10 +88,19 @@ export default class MsiUpdater extends NsisUpdater {
88
88
protected doInstall ( options : InstallOptions ) : boolean {
89
89
const systemRoot = process . env . SystemRoot ?? 'C:\\Windows' ;
90
90
const msiexec = path . join ( systemRoot , 'system32' , 'msiexec.exe' ) ;
91
+ const installerPath = this . installerPath ;
92
+
93
+ if ( ! installerPath ) {
94
+ this . _logger . error ( 'doInstall() called without a installer path' ) ;
95
+ this . dispatchError ( new Error ( "No valid update available, can't quit and install" ) ) ;
96
+
97
+ return false ;
98
+ }
99
+
91
100
const args : string [ ] = [
92
101
'/norestart' ,
93
102
'/lv*' , path . join ( paths . logs , 'msiexec.log' ) ,
94
- '/i' , options . installerPath ,
103
+ '/i' , installerPath ,
95
104
] ;
96
105
const elevate = options . isAdminRightsRequired || this . shouldElevate ;
97
106
You can’t perform that action at this time.
0 commit comments