Skip to content

Commit 0b5e4e1

Browse files
committed
fix: use -ForceApplicationShutdown when installing appx packages
1 parent 17e26b4 commit 0b5e4e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/msstore_service.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ class MSStoreService {
368368

369369
Future<List<ProcessResult>> installUWPPackages(String path) async {
370370
return await run(
371-
'powershell -NoP -ExecutionPolicy Bypass -NonInteractive -C "& {\$appxFiles = Get-ChildItem -Path "$path"; foreach (\$file in \$appxFiles) { Add-AppxPackage -Path \$file.FullName; echo "\$(\$file.Name)";}}"',
371+
'powershell -NoP -ExecutionPolicy Bypass -NonInteractive -C "& {\$appxFiles = Get-ChildItem -Path "$path"; foreach (\$file in \$appxFiles) { Add-AppxPackage -ForceApplicationShutdown -Path \$file.FullName; echo "\$(\$file.Name)";}}"',
372372
);
373373
}
374374

0 commit comments

Comments
 (0)