Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 0x80070005: Access is denied. #3

Closed
jakub-stefaniak opened this issue Sep 27, 2022 · 2 comments
Closed

Error 0x80070005: Access is denied. #3

jakub-stefaniak opened this issue Sep 27, 2022 · 2 comments

Comments

@jakub-stefaniak
Copy link

jakub-stefaniak commented Sep 27, 2022

I tried to create REG_SZ value under: Software\Microsoft\Windows\CurrentVersion\Uninstall\MyApp but I'm getting 0x80070005 error code. I even tried to run the app as administrator but the issue still persists.

Is there any solution for this?

@jakub-stefaniak
Copy link
Author

Closing this one.
If you struggle with this issue, you need to set desiredAccessRights to AccessRights.writeOnly or 'AccessRights.allAccess' when opening registry path.

    final key = Registry.openPath(
      RegistryHive.currentUser,
      path: r'Software\Microsoft\Windows\CurrentVersion\Uninstall\' +
          registrySubkeyName,
      desiredAccessRights: AccessRights.writeOnly,
    );

It would be nice to include some note about it in readme @timsneath :)

@wanghongenpin
Copy link

I ran it using Flutter
image

Closing this one. If you struggle with this issue, you need to set desiredAccessRights to AccessRights.writeOnly or 'AccessRights.allAccess' when opening registry path.

    final key = Registry.openPath(
      RegistryHive.currentUser,
      path: r'Software\Microsoft\Windows\CurrentVersion\Uninstall\' +
          registrySubkeyName,
      desiredAccessRights: AccessRights.writeOnly,
    );

It would be nice to include some note about it in readme @timsneath :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants