Install - .NET Viper Controller on Windows Server with Admin Access for Static Analysis



Installation Steps

Take the following steps to install the vFunction Dotnet Controller on a Windows Server with Admin access:

  1. Ensure Prerequisites are met
  2. Download the vFunction Controller Windows Installation ZIP from the vFunction Portal
  3. Move the Controller ZIP package to the Windows Server
  4. Extract the ZIP to the desired directory, such as C:\vfunction\
  5. In a text editor, open the installation.yaml. Replace the REPLACE_BASE_DIR with the actual value.
REPLACE_BASE_DIR\config\installation\instances\INSTANCE_NAME\installation.yaml
  1. Set the required and optional Configurable Settings
  2. Open Powershell as an Administrator and run the following command. Replace the REPLACE_BASE_DIR with the actual value.
dir -Path "REPLACE_BASE_DIR" -Recurse | Unblock-File
  1. In Powershell, run the following command. Replace the REPLACE_BASE_DIR and the INSTANCE_NAME with the actual values.
powershell -NoProfile -ExecutionPolicy unrestricted -Command "REPLACE_BASE_DIR\vfunction\controller-installation\install.ps1 -instance INSTANCE_NAME -viperMode true"
  1. Confirm in the vFunction Server UI that the Viper Controller is UP

Optional flags that can be used in the install.ps1 script

Flag Purpose
-instance Used to input the Instance Name as a String following the flag
-serverUsername Used to input the server-installation.yaml’s server.admin.email address to create the vFunction App in the Server UI from the Controller
-serverPassword Used to input the server-installation.yaml’s server.admin.password to create the vFunction App in the Server UI from the Controller
-agentMode Used when installing the vFunction Agent but not Viper
-viperMode Used when installing Viper but not the vFunction Agent
-scriptMode Used to run the installation in script mode so that all no user prompts are displayed and console output is minimized
-runAsServices Used to define whether the installation should run in Admin-mode (Services true) or User-mode (Services false)