Question
Is it possible to prevent an IIS restart following the installation of the Contrast .NET agent?
Answer
By default, IIS will be restarted following installation of the Contrast .NET agent to allow the agent to instrument the relevant application pools. However, it's possible to prevent this restart, by passing the following property to the installer: SUPPRESS_SERVICE_START=1
.
Your resultant command to run the installer would look similar to the following for an attended install:
ContrastSetup.exe SUPPRESS_SERVICE_START=1
Alternatively, it would be similar to the following for an unattended install:
ContrastSetup.exe -s -norestart SUPPRESS_SERVICE_START=1
You can find more information on this and the .NET agents other command line options in the following OpenDocs article: .NET Installation > Command Line Options