2

I have an application which is modifying the Windows registry upon execution. With administrator privileges, the application executes fine (no problem) but whenever a normal user executes the application, a dialog box appears with following message

Failed to update system registry. Please try using REGIDIT.

The application executes successfully when clicked on OK button. But I want to get rid of this message.

The problem is obviously with permissions.

The application is just standalone executable.

Can anyone suggest a solution?

2 Answers 2

1

For Windows 7 : If you application needs Administrative privileges to run and you trust it, modify the properties for the executable to always execute as Administrator. IRC, you right click on the executable, the option is at the bottom of the Compatibility tab. - Also check if there is a newer version of your app that handles UAC correctly and can be run as regular user.

For Windows XP: The RunAs utility can be used to start some programs under another privileges, you can get more information at:

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/runas.mspx?mfr=true

2
  • Thanks. Not found any option related to change execution permission in compatibility tab. I am using XP.
    – MA1
    Nov 26, 2011 at 16:19
  • Sorry about the confussion, I updated the answer with an option for running apps as administrator with WinXP
    – jhcaiced
    Nov 26, 2011 at 23:05
3

Use Sysinternals Process Monitor to see to where in the registry the application tries to access (as a normal user).

Set a filter to the process name and watch only registry activity (disable network,file, etc....)

Then look for the Access Denied messages (in the result column) and set permissions to those registry locations.

Please be careful....

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .