• 0

[vb.net] registry access


Question

4 answers to this question

Recommended Posts

  • 0

wrap the method inside an try/catch, compile and run the app as a normal user, if no exception is thrown than you're golden. otherwise you've got to modify your code to ensure the user as privileges to access the registry.

Link to comment
Share on other sites

  • 0

Would a program made in vb.net that edits the registry need to be run as an adminsitrator or would a standard account be ok?

Yes it would, but you shouldn't use the registry these days.

Use an ini file or xml file in %APPADATA%/yourapp so your app won't need to elevate to administrator

thats if you're trying to save to registry that is, if you just want to edit keys, yes you will have to elevate.

  • Like 1
Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.