Installing PostSharp Tools for Visual Studio Silently
PostSharp is composed of a user interface (PostSharp Tools for Visual Studio) and build components (NuGet packages). NuGet packages are usually checked into source control or retrieved from a package repository at build time (see Restoring Packages at Build Time), so its deployment does not require additional automation. The user interface is typically installed by each user. It does not require administrative privileges.
In large teams, it might be inconvenient to install PostSharp Tools for Visual Studio on each machine manually. For this purpose, PostSharp installer enables silent installation using a command line interface. You can install PostSharp automatically for a large number of users using the silent installer.
To install PostSharp unattended:
Download the installer from https://www.postsharp.net/download. The installer is a file named PostSharp-X.X.X.exe.
Extract the installer files using the following command line:
PostSharp-X.X.X.exe /extract %TEMP%\PostSharp.X.X.X
Execute the following command line:
In the command line above, the following arguments are optional but recommended:
If you don't specify this flag, CEIP will be disabled, and the user will not be asked to enable it.
Installs the license key for the current user in registry. In this argument, 000-AAAAAAAAAAAAAAA must be replaced by the license key or the URL to the license server.
Installs the license key for all users in registry. In this argument, 000-AAAAAAAAAAAAAAA must be replaced by the license key or the URL to the license server.
/license-allarguments are omitted, the license keys on the machine will remain unchanged or uninstalled.
If any Visual Studio instance or other processes affected by the installer is running during the installation process, the installer lists all the blocking processes, and fails. You need to run silent installation when none of these processes is running.