I upgraded an application from 2021 to 2022 R2. I generated the compiler generated xml files for 2022. When we test the runtime packager on test computers, the runtime files get installed in a different folder than what is in the xml files. Is there a way to make the installation of the runtime files be consistent across all computers?
- You are here:
- Home
- Q&A
- Q&A
- PowerBuilder
- inconsistent runtime path
- Raymond Longoria
- PowerBuilder
- Tuesday, 5 December 2023 22:46 PM UTC
- Wednesday, 6 December 2023 01:37 AM UTC
- PowerBuilder
- # Permalink
just put the runtime in the same directory as your application. then you can skip the xml file.
- Wednesday, 6 December 2023 01:23 AM UTC
- PowerBuilder
- # 1
Hi Raymond;
The installation of the PB runtime files location is up to you and your operations team.
It is assumed that the <AppName>.XML file will be edited accordingly upon deployment to point to where the PB runtime folder was installed.
You will need to co-ordinate this runtime / XML synchronization with your production rollout team.
Regards .. Chris
- Wednesday, 6 December 2023 02:00 AM UTC
- PowerBuilder
- # 2
Your choices are:
All PB Runtime files in the same folder as the EXE
The PB Runtime folder gets added to the system path
The PB Runtime folder gets added to App Paths in the registry
The <appname>.xml file contains the correct path to the PB Runtime folder
Here is an example of the App Paths registry setting:
The app I work on uses the App Paths setting. Our installer software installs the PB Runtime into one folder and the application files in another. It sets the App Paths registry value as well.
- Wednesday, 6 December 2023 22:39 PM UTC
- PowerBuilder
- # 3
After thinking about this more, I realized that I want to preset the install path in the runtime installer. Do I use the App Paths registry setting to set this or is there another way?
- Thursday, 14 December 2023 00:26 AM UTC
- PowerBuilder
- # 4
In the "Installing Powerbuilder Runtime" documentation, it says the following:
"PowerBuilder Runtime" is always installed to %systemdrive%\Program Files (x86)\Appeon\Common\PowerBuilder\Runtime [version], for example, C:\Program Files (x86)\Appeon\Common\PowerBuilder\Runtime 22.0.0.1234"
When I generate the executables, in Run tab, the Runtime Path in Application XML is preset to
C:\Program Files (x86)\Appeon\Common\PowerBuilder\Runtime 22.1.0.2828
When I run the runtime packager on my test computer, the runtime files are installed at:
C:\Program Files (x86)\Appeon\Common\PowerBuilder
But when I run it on a different computer it is installed at:
C:\Program Files (x86)\Appeon\Powerbuilder Runtime Packager
Why the inconsistency between computers? In powerbuilder 2019 the packager installed consistently at C:\Program Files (x86)\Appeon\Common\PowerBuilder. I am wondering why it is inconsistent with Powerbuilder 2022 R2.
We don't have a production rollout team that I can ask to help me with your suggestions. Any more help would be appreciated.
- Wednesday, 20 December 2023 16:51 PM UTC
- PowerBuilder
- # 5
After reading the documentation a little more closely and considering the suggestion to put the runtime, I went ahead and added the runtime files to the MSI and it worked. For some reason I thought we had to run the runtime packager MSI in order for it to work.
- Page :
- 1
However, you are not allowed to reply to this question.