Solved

NT REGISTRY UPDATE

Posted on 2000-03-17
5
215 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

713 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