OnIISVRootUninstalling
InstallShield 2024 » InstallScript Language Reference
The OnIISVRootUninstalling event is called before each Virtual Directory is removed. You can check conditions related to IIS in your script, and then call abort() to stop the setup.