Stopping IIS Functionality Through a Custom Action
InstallShield 2022 Express Edition
Stopping IIS through a custom action lets your installation overwrite files that are locked by IIS. If you are using one of the recent versions of IIS, you can run the following VBScript to unload a Web site, allowing you to install your .dll files. This means that you do not have to restart IIS, which will drop all of the Web sites that are running.
For example:
Dim DirObjSet DirObj = GetObject("IIS://LocalHost/W3SVC/1/Root/")DirObj.AppUnloadset dirObj = nothing"