Jeremy
2008-03-13 23:47:34 UTC
By commenting out all code and adding back in a line at a time, I believe
I've demonstrated that under vista and IIS7, at least on my installation, an
isapi app cannot write a registry entry to HKLM.
Here's the code that, when executed, hangs my dll: (notice that I've
commented out th3 showmessage already)
class procedure Tregbase.putReg(section,key,value: string);
begin
with tregistry.create do begin
RootKey:=HKEY_LOCAL_MACHINE;
try
openkey('SOFTWARE\myappname'+section,true);
WriteString(key,value);
CloseKey;
except
// on e: Exception Do ShowMessage(e.Message);
end;
destroy;
end;
end;
I've demonstrated that under vista and IIS7, at least on my installation, an
isapi app cannot write a registry entry to HKLM.
Here's the code that, when executed, hangs my dll: (notice that I've
commented out th3 showmessage already)
class procedure Tregbase.putReg(section,key,value: string);
begin
with tregistry.create do begin
RootKey:=HKEY_LOCAL_MACHINE;
try
openkey('SOFTWARE\myappname'+section,true);
WriteString(key,value);
CloseKey;
except
// on e: Exception Do ShowMessage(e.Message);
end;
destroy;
end;
end;