Failed to set data for data Log Out | Topics | Search
Moderators | Edit Profile

WAK Productions Support » TRegware » Failed to set data for data « Previous Next »

Author Message
Mark Mitton
Posted on Thursday, March 24, 2005 - 5:27 am:   

Hi,

I have used the TRegware component in an application and when the application is started by a user other than the administrator, I get the message "Failed to set data for data". The mesaage dissapears if I give the user access to the registry key 'HKEY_CLASSES_ROOT\CLSID'. How can I allow any user to use my app without giving them access to this registr key?

Any suggestions would be welcome.

Thank you
Mark Mitton
Posted on Thursday, March 24, 2005 - 5:37 am:   

Hi,

Like an idiot I thought I would ask you all before actually having a look through the source, as I am a fairly new C++ builder programmer and don't know pascal at all.

I noticed in the source that the 2 keys HKEY_CLASSES_ROOT and HKEY_LOCAL_MACHINE are used. Which of these keys causes the problem? I think it is HKEY_CLASSES_ROOT. If I change the HKEY_CLASSES_ROOT key to something the user can access, will the windows "user" still be able to access HKEY_LOCAL_MACHINE?

Thanks again, any suggestions from someone who has come accross this and has a secure but functional work around would be appreciated.

Mark Mitton
Posted on Monday, March 28, 2005 - 5:53 pm:   

Hi, Me again

I have recently discovered that HKEY_CURRENT_USER is the only place a windows "USER" can read/write. Better late than never...

does anyone have a good place in this root key the hide the reg info?

Thanks,
Winston Kotzan (Wak)
Posted on Monday, March 28, 2005 - 7:16 pm:   

Sorry for the long time it took to respond. Right now I'm working on a new version that will use "if" statements to check if the person is a user or not. If the person is a regular user, it will use HKEY_CURRENT_USER to store the data and therefore only that user will have it registered. If the system administrator registers the program, it will go under HKEY_LOCAL_MACHINE and everyone that accesses the computer can use it.
Mike
Posted on Wednesday, June 01, 2005 - 6:26 am:   

Until Winston gets that new version out, my solution was to simply edit regware4.pas to change all instances of HKEY_CLASSES_ROOT and HKEY_LOCAL_MACHINE to HKEY_CURRENT_USER. The only drawback is that each user now has to enter the code in order to register.

Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:

Topics | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration