Skip to content

Commit

Permalink
hide onedrive folder in explorer when installing system components re…
Browse files Browse the repository at this point in the history
…moval package
  • Loading branch information
melo936 committed Jun 10, 2024
1 parent dfe4b65 commit 894cc88
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/services/win_package_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,15 @@ class WinPackageService {
}

Future<void> installPackage(final WinPackageType packageType) async {
if (packageType == WinPackageType.systemComponentsRemoval) {
// remove 'OneDrive' from explorer TODO: Remove this section after a new PB is released
RegistryUtilsService.writeDword(
Registry.classesRoot,
r'CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}',
'System.IsPinnedToNameSpaceTree',
0);
}

if (!await File("$directoryExe\\cab-installer.ps1").exists()) {
throw 'cab-installer.ps1 not found in $directoryExe. Please ensure the file is present by reinstalling Revision Tool.';
}
Expand Down

0 comments on commit 894cc88

Please sign in to comment.