Unable to use PackageModel or ActivateModel commands

  • 7022896
  • 26-Apr-2018
  • 26-Apr-2018

Environment

Verastream Host Integrator 5.5 or higher

Situation

  • Windows Server - any version
  • Verastream Host Integrator (VHI) is installed to a non-C: location, for example, D:\Program Files\Attachmate\Verastream
  • After including the location of VHI utilites PackageModel and ActivateModel in the system's PATH, attempting to use these commands in a command-prompt console results in the message: 'D:\Program' is not recognized as an internal or external command, operable program or batch file.

Resolution

Install VHI to a location on D: that does not have a folder name with spaces.

Cause

By default, 8.3 file and folder name generation is not enabled for secondary drives in Windows. These VHI commands use an environment variable set at install time, VHI_ROOT. If 8.3 names are not enabled, this variable will contain spaces in the install-location of VHI, which will cause this issues with its use in .bat files. When VHI is installed to C:, where 8.3 names are usually enabled, the 8.3 folder name is assigned to VHI_ROOT.