Upgrade: .NET Windows Dynamic Agent on a Host


Overview

The vFunction Runtime Agent keeps a backup of environmentally-specific files in BASE_DIR\vfunction\config\installation\backup. These backup files are then copied back into the default location during the upgrade process. Because this backup-and-copy process is in place, no manual steps are required to keep backups of files before the upgrade occurs.


Upgrade Steps

  1. Download the vFunction Controller Installation ZIP
  2. SFTP the Controller ZIP package to the Windows Host
  3. Extract the Controller ZIP
### Replace VERSION with the actual version that was downloaded
### This example assumes that the original installation was done in the C:\ directory
### Change the Path in the command to match the existing Path in your environment (where the vfunction directory was created)
Expand-Archive -Path C:\\Users\\Peter\\Downloads\\vfunction-controller-windows-installation.vVERSION.zip -DestinationPath C:\\ -Force
  1. Run the Upgrade Script
### This example assumes that the original installation was done in the C:\ directory
### Change the Path in the command to match the existing Path in your environment (where the vfunction directory was created)
dir -Path "C:\\vfunction" -Recurse | Unblock-File

powershell -NoProfile -ExecutionPolicy unrestricted -Command "C:\\vfunction\\controller-installation\\upgrade.ps1"
  1. Restart the .NET Application to have it begin using the new Agent version