Link to home
Start Free TrialLog in
Avatar of mmcgurl
mmcgurl

asked on

NT REGISTRY UPDATE

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;
Avatar of Igor UL7AAjr
Igor UL7AAjr
Flag of Kazakhstan image

Are you have admin rights?

Cheers,
Igor.
Avatar of mmcgurl
mmcgurl

ASKER

Yes I have logged in as administrator.
Code executes, but nothing changes.
<michael>
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.
Oh, just had a thought.  Take ou the try except and see what happens...

Dave.
ASKER CERTIFIED SOLUTION
Avatar of flooder
flooder

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial