# Installation and Upgrade

This section describes how to install or upgrade the Run-time Environment.

NOTE Given the following circumstances:

>You are installing or upgrading the Run-time Environment on the customer's machine.

> You want a placeholder for new SL keys for the relevant Batch Code to appear at the top of the Sentinel Keys page in Admin Control Center.

Distribute your current custom Vendor library along with the Run-time Environment installer.

## Generating the MSI Installer

To generate Sentinel LDK Run-time Environment MSI installer:

1.Build the haspds.msm merge module using haspds.ism. The haspds.msm merge module copies the haspds_windows.dll into the Win32 system directory of the end user’s machine. The haspds_windows.dll is called by the MSI module to install or uninstall Sentinel LDK Run-time Environment.

2.Build the MSI module HASPUserSetup.msi using the HASP_Setup.ism project.

## Installing the Run-time Environment

>The Installer detects the version of the operating system during Run-time Environment installation, before installing the relevant drivers.

>Administrator rights are required in order to install the Run-time Environment.

>By default, Windows displays a User Account Control message during driver installation. The user must click Continue to continue the installation. Alternatively, the user can change the default setting from the Control Panel of their operating system.

>A log file of the installation process is written to aksdrvsetup.log in the Windows directory.

## Upgrading the Run-time Environment

When upgrading the Sentinel LDK Run-time Environment, ensure that it is not currently being used by any Run-time components. Although the installation program terminates applications that are accessing the Run-time Environment, it does not terminate running services. For example, if Sentinel License Manager is running as a service, you must stop the service before upgrading the Run-time Environment.