Question
Accenture, Inc
PH
Last activity: 21 Dec 2022 8:45 EST
How to run a deployed package in local desktop using Pega Runtime 22.1
I would like to ask how to run the deployed project in local desktop when using Pega Runtime 22.1.
In Pega 19.1, I just created a shortcut of the Pega Runtime then in properties, under target, I just appended the path of the package then run the runtime. (I attached an example)
I did the same in Pega 22.1 but I encounter an error. Please see the attached screen shot.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 21 Dec 2022 8:45 EST
Pegasystems Inc.
US
@JoyashishS If you'd like to run your local package from the command line and do not want to edit the StartupProject section, you can use the following command;
Pega.RobotRuntime.exe --package "C:\Where Is Your Package Folder\Version or Whatever\PackageName.pega" --environment {Environment override name}
If you are using environment overrides, the last argument would be the name that you created for the environment; likely DEV, PROD, UAT, etc.
*Note; you can substitute "-p" and "-e" instead of "--package" and "--environment" in the command above.
Updated: 21 Dec 2022 8:45 EST
Evoke Technologies
IN
@LizetteL - Did you verified the RuntimeConfig.xml file ? Trying providing the path of your package to the "StartupProject" attribute under <AppSettings>.
-
Ceddrick Ferido
Accepted Solution
Updated: 21 Dec 2022 8:45 EST
Pegasystems Inc.
US
@JoyashishS If you'd like to run your local package from the command line and do not want to edit the StartupProject section, you can use the following command;
Pega.RobotRuntime.exe --package "C:\Where Is Your Package Folder\Version or Whatever\PackageName.pega" --environment {Environment override name}
If you are using environment overrides, the last argument would be the name that you created for the environment; likely DEV, PROD, UAT, etc.
*Note; you can substitute "-p" and "-e" instead of "--package" and "--environment" in the command above.
-
Ashok Ojha
Accenture, Inc
PH
@ThomasSasnett Hi, I would like to run the package not using the command line. Is it possible to just click the Pega Robot Runtime then it will load the package? I already edited the RuntimeConfig.xml.
Pegasystems Inc.
US
@LizetteL You can update your desktop shortcut with the arguments I showed above. Just add the arguments (--package and --environment {this is optional if you aren't using them}) to the end of your current shortcut. I believe you can modify the PegaRuntimeConfig.xml and change the StartupProject value, however I am not certain you can specify an environment there. I am doing some research on this.
Pegasystems Inc.
US
@ThomasSasnett I have been told that the StartupProject section of the PegaRuntimeConfig.xml does not support the environment overrides as of the current version. If you wish to use those with a local package, you'll need to alter your desktop shortcut with the arguments above.
Accenture, Inc
PH
@ThomasSasnett hi, I tried to run the package using command. But I have encountered the below error.
H:\>Pega.RobotRuntime.exe --p "D:\Users\llconce\Desktop\Deployment Package\GetLogInCreds.pega" 'Pega.RobotRuntime.exe' is not recognized as an internal or external command, operable program or batch file.
Pegasystems Inc.
US
@LizetteL You first need to have the full path to the "Pega.RobotRuntime.exe". On my machine that is;
C:\Program Files (x86)\Pegasystems\Pega Robot Studio v22\Pega.RobotRuntime.exe
after that, you place the following two arguments;
--package {full path to where you have deployed your package}
--environment {name of your environment override if using them - DEV, UAT, PROD, etc...}
In your example, it looks like you put the path to Pega.RobotRuntime.exe as in the root of drive H. It is unlikely that you actually installed Runtime to this location. You need that to point to the actual location of the EXE.