Solved

Registry access with programs installed under Administrator

Posted on 1997-05-23
3
133 Views
Last Modified: 2013-12-28
I installed Visual Basic on NT 4.0 WS under Administrator. When I log on under another user name, I receive a message like "Cannot access Registry" and VB doesn't start.
What can I do to make it work ?
0
Comment
Question by:greisch
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
cer earned 100 total points
ID: 1778564
You have installed VB as Administrator not as THIS user.
You can reinstall it as THE user. If there are more users, best is to use REGEDT32 and copy the new entries in HKCU to a file and import it being the user. You can automate it by building a *.reg file wich is startet with REGEDIT. Look if there are already REG files with your VB which have to be "doubleclicked" by a user first. (Use explorer and search for *.reg)

0
 
LVL 3

Author Comment

by:greisch
ID: 1778565
When I try to modify the registry (not under administrator), I receive the message "Error accessing the system registry".

Is there something I can do ?
0
 
LVL 5

Expert Comment

by:cer
ID: 1778566
Which part?

HKLM is the machine part and the same for all users. A user should not be able to change it, only the Admin can.

HKCU is the current user. It should be possible for the user to change it. If not: Use REGEDT32.EXE click on the tree (not on a value) and choose the first item under "Security" Pull-Down Menue.
If you have bad luck, you are not allowed to change your own settings (must be an accident, or on purpose from an Admin). In this case you must add yourself to the Admin-group, take over the registry hieve, modify the security and remove yourself from Admin-group.
It is also somehow possible to load/change/save a user-registry when logged in as admin, but I never did that.

0

Featured Post

Can’t get the mobile email signature right?

Not having any luck when trying to create an email signature for mobile devices? Does the formatting keep messing up? Make sure you have great email signatures on all devices by using Exclaimer Cloud - Signatures for Office 365.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Several part series to implement Internet Explorer 11 Enterprise Mode
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now