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;
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;
ASKER
Yes I have logged in as administrator.
Code executes, but nothing changes.
<michael>
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.
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.
Dave.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Cheers,
Igor.