I am looking for a way to determine if a user already has an installed version of IIS. If he does not, I will continue and run the installation of the IIS script.
I know what I'm doing:
try
IIS := CreateOleObject('IISNamespace');
except
RaiseException(ExceptionType, ‘IIS not installed. Setup will now install IIS on your machine. ’
end;
but for some reason, my version of the compiler does not seem to recognize a RaiseException. I also tried turning on
uses
SysUtils;
but the compiler does not recognize SysUtils. Is there something like a registry key on which I can see if IIS is installed or not?
Any help is appreciated.
Rishi source
share