Solved

NT REGISTRY UPDATE

Posted on 2000-03-17
5
214 Views
Last Modified: 2010-04-04
I'm using this code snippet on Win98 without any problems, why does it not
work on NT. I need to make the change
on NT registry. Any help is appreciated.
thanks, michael

 try
        RootKey := HKEY_Classes_Root;
        if KeyExists('.xs') then
          begin
            OpenKey('.xs',False);  // Don't create key
            WriteString('Content Type', 'application/xstart');
            CloseKey;
0
Comment
Question by:mmcgurl
5 Comments
 
LVL 9

Expert Comment

by:ITugay
ID: 2628183
Are you have admin rights?

Cheers,
Igor.
0
 

Author Comment

by:mmcgurl
ID: 2628396
Yes I have logged in as administrator.
Code executes, but nothing changes.
<michael>
0
 

Expert Comment

by:johnstoned
ID: 2628405
Are you sure the '.xs' key does exist on the machine you are running your program on?

I have looked on a couple of NT Servers at my work, and they do not have '.xs' keys in hkey_classes_root.

Does it come up with an error message or does the code run through successfully?

Dave.
0
 

Expert Comment

by:johnstoned
ID: 2628407
Oh, just had a thought.  Take ou the try except and see what happens...

Dave.
0
 
LVL 1

Accepted Solution

by:
flooder earned 50 total points
ID: 2716248
I think you must me logged in as administrator to change these settings not have admin rights. Its stupid but thats how it is.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

837 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