File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
FluentLauncher.UniversalInstaller/Pages Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ static void CheckPowerShellCommand(string commandName)
289289
290290 foreach ( string path in dependencyPackagesPath )
291291 {
292- using var process = Process . Start ( new ProcessStartInfo ( "powershell" , $ "Add-AppxPackage -Path \" { path } \" -ForceUpdateFromAnyVersion -ForceApplicationShutdown")
292+ using var process = Process . Start ( new ProcessStartInfo ( "powershell" , $ "-Command \" Add-AppxPackage -Path \' { path } \' -ForceUpdateFromAnyVersion -ForceApplicationShutdown\" ")
293293 {
294294 RedirectStandardOutput = true ,
295295 RedirectStandardError = true ,
@@ -313,8 +313,8 @@ static void CheckPowerShellCommand(string commandName)
313313
314314 #region Install/Update Package
315315
316- string forceUpdateOption = isPackageInstalled ? " -ForceUpdateFromAnyVersion" : string . Empty ;
317- using ( var process = Process . Start ( new ProcessStartInfo ( "powershell" , $ "Add-AppxPackage -Path \" { packagePath } \" -ForceApplicationShutdown" + forceUpdateOption )
316+ string forceUpdateOption = isPackageInstalled ? "-ForceUpdateFromAnyVersion" : string . Empty ;
317+ using ( var process = Process . Start ( new ProcessStartInfo ( "powershell" , $ "-Command \" Add-AppxPackage -Path \' { packagePath } \' -ForceApplicationShutdown { forceUpdateOption } \" " )
318318 {
319319 RedirectStandardOutput = true ,
320320 RedirectStandardError = true ,
You can’t perform that action at this time.
0 commit comments