OnIISVRootUninstalling

InstallShield 2022 ยป 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.