Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

OCX installer does not work when run from command line

SA-19177

Summary



The OCX installer, using install.bat, works when double-clicked from explorer but does not run from the command line.


Error Messages



"prCabInstall not a recognized command"


Steps to Reproduce



Execute install.bat from command prompt while the current directory is not the directory install.bat is in.


Root Cause



A defect in Pegasystems’ code or rules.  install.bat executes prCabInstall with the assumption that prCabInstall is in the current folder. If install.bat is run from the command line without being in its directory,the batch file can not find prCabInstall.

Resolution



Perform the following local-change: replace install.bat with the below code, which will use the directory of the install.bat file instead of the current directory

@echo off
set INSTALL_TYPE=Developer
if "%1"=="EndUser" set INSTALL_TYPE=EndUser
echo Selected Installation Type: %INSTALL_TYPE%
if "%INSTALL_TYPE%"=="EndUser" (
    "%~dp0prCabInstall" EndUser.htm
) ELSE (
    "%~dp0prCabInstall" Developer.htm
    "%~dp0prCabInstall" Developer2.htm
)
regedit /s vistaword.reg
echo Pegasystems ActiveX controls have been installed.

Suggest Edit

Published February 9, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us