File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
src/lib/core/miscellaneous Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ import 'dart:async';
22import 'dart:io' ;
33
44import 'package:args/command_runner.dart' ;
5+ import 'package:revitool/shared/win_registry_service.dart' ;
56import 'package:revitool/utils.dart' ;
7+ import 'package:win32_registry/win32_registry.dart' ;
68
79class PlaybookPatchesCommand extends Command <String > {
810 static const tag = "Playbook Patches" ;
@@ -32,5 +34,15 @@ class PlaybookPatchesCommand extends Command<String> {
3234 exit (0 );
3335 }
3436
35- Future <void > applyPatches () async {}
37+ Future <void > applyPatches () async {
38+ logger.i ('$name : Applying patches...' );
39+ // Disable WebView2 spawning from SearchHost
40+ // https://www.reddit.com/r/WindowsHelp/comments/1lfu325/comment/n2nk50h
41+ WinRegistryService .writeRegistryValue (
42+ Registry .localMachine,
43+ r'SYSTEM\ControlSet001\Control\FeatureManagement\Overrides\8\1694661260' ,
44+ "EnabledState" ,
45+ 1 ,
46+ );
47+ }
3648}
You can’t perform that action at this time.
0 commit comments