stevieb9 / berrybrew

Perlbrew for Windows!
Other
63 stars 9 forks source link

"bb off" gives SecurityException: Requested registry access is not allowed #299

Closed stevieb9 closed 2 years ago

stevieb9 commented 3 years ago

See dnmfarrell/berrybrew#25

Windows 10, berrybrew version 1.34, perl version 5.32.1.

When I run bb off from the command prompt, I get an exception and the berrybrew perl is not disabled :

> bb version
1.34
> perl --version
This is perl 5, version 32, subversion 1 (v5.32.1) built for MSWin32-x64-multi-thread
> where perl
C:\berrybrew\5.32.1_64\perl\bin\perl.exe
C:\Strawberry\perl\bin\perl.exe
>bb list
        5.32.1_64   *
        5.20.3_64
> bb off
Unhandled Exception: System.Security.SecurityException: Requested registry access is not allowed.
   at System.ThrowHelper.ThrowSecurityException(ExceptionResource resource)
   at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
   at BerryBrew.Berrybrew.PathSet(List`1 path)
   at BerryBrew.Berrybrew.PathRemovePerl(Boolean process)
   at BerryBrew.Berrybrew.Off()
   at berrybrew.Bbconsole.Main(String[] args)
> where perl
C:\berrybrew\5.32.1_64\perl\bin\perl.exe
C:\Strawberry\perl\bin\perl.exe