It is impossible to work around. You need to avoid doing this operation, or the user need to run this application as administrator. Note that logging with an account with administration privileges is not enough, you need to request running with elevated privileges. Please see:
Try it out before going forward.
If running with elevated privileges is acceptable for you, you probably want to make a step further and automatically request elevated privileges in the application manifest. Please see: