wip: registerPolicyDefinitions

This commit is contained in:
Joao Moreno
2022-05-17 09:33:32 +02:00
parent 2f19fc5c58
commit 2d1940e1ab
7 changed files with 66 additions and 83 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ class CliMain extends Disposable {
fileService.registerProvider(Schemas.file, diskFileSystemProvider);
// Policy
const policyService = isWindows ? new WindowsPolicyService(productService) : new NullPolicyService();
const policyService = isWindows && productService.win32RegValueName ? new WindowsPolicyService(productService.win32RegValueName) : new NullPolicyService();
services.set(IPolicyService, policyService);
// Configuration