/ * Written by Jaron, 2002-06-08 * // * Original: Jiangdu Information Network Forum http://www.jiangdu.net/bbs * // * Reprint Please indicate the source and keep this copyright information * // * Welcome to SiteManager website management system http://sitemanager.cnzone.net * /
You can check if the following two registry values are used to install IISHKEY_LOCAL_MACHINE / SYSTEM / CURRENTCONTROLSET / SYSTEM / IISADMINHKEY_LOCAL_MACHINE / SYSTEM / CURRENTCONTROLSET / SERVICES / W3SVC / Parameters
Program Example: // // // FUNCTION: CheckIIS // Example: Check whether the system is installed IIS // Author: Jia Jun, Jiangdu News http://www.jiangdu.net; please indicate the source // // function CheckIIS () NUMBER nvType, nvSize; STRING svvalue; begin RegDBSetDefaultRoot (HKEY_LOCAL_MACHINE); if (RegDBKeyExist ( "System // CurrentControlSet // Services // IISADMIN") = 1) then return (1); else return (0); Endif;