1. Desarrollador 1
  2. PowerBuilder
  3. Monday, 12 February 2024 09:24 AM UTC

Hello,

 

When I want to install my powerbuilder application to a client I've to put my .pbds,.exe, resources and (.dlls) in a installer to install but i don't know if there's a way to put the runtime in a folder and create a enviroment variable to set this runtime for my application automatically.

So i just need to install my application without the dlls in the same folder. 

 

Regards,

Edi

Andreas Mykonios Accepted Answer Pending Moderation
  1. Monday, 12 February 2024 10:44 AM UTC
  2. PowerBuilder
  3. # 1

As you are using PB 2022 R2, you can either create a setup for your application (you need to use some 3rd party tool for that) either use PowerClient.

PowerClient allows to deploy your application from a web server over HTTP/HTTPS. It can be set to update the application automatically (when a new version is uploaded to the server users will have to re-start the application). It's a good solution in case the application you want to deploy is used inhouse, especially when you have lot of client/pc using it.

If PowerClient is an option for you, I suggest you read the content in the following url: Working with a PowerClient project - - Users Guide (appeon.com).

If you prefer to use an installer, then you can either put PB Runtime side by side with your executable, either setup the runtime to some location (by example using PB Runtime Packager), and set your application to look at that specific location. When you build an executable, Powerbuilder will create in the same folder an xml file. That xml will be named <your appexename>.xml (example: test.exe -> test.xml). The information included will be like:

<?xml version="1.0" encoding="utf-8" ?>
<Application>
    <RuntimePath>C:\Program Files (x86)\Appeon\Common\PowerBuilder\Runtime 22.1.0.2828</RuntimePath>
</Application>

This xml tells the app exe, upon execution, that required runtime files will be found at "C:\Program Files (x86)\Appeon\Common\PowerBuilder\Runtime 22.1.0.2828". So, if you install or place then runtime to some folder (different from the executable) you need to deploy that xml and be sure to update the RuntimePath value. If you prefer to put the runtime side by side with your application, then don't provide the xml, your application won't need it.

One last point: be sure to read Third-party components and deployment - - Application Techniques (appeon.com) where some additional files needed to run a PB application are mentioned.

Also I do suggest to take some time and read the information in the documentation about application's deployment (Deploying Applications and Components - - Application Techniques (appeon.com)).

Andreas.

Comment
  1. Desarrollador 1
  2. Wednesday, 14 February 2024 11:28 AM UTC
And How can i run my application for the first time to install this .msi and then execute the program ? Can i do that in Powerbuilder 2022?
  1. Helpful
  1. Andreas Mykonios
  2. Wednesday, 14 February 2024 12:31 PM UTC
Normally, you will create some setup (installer) program for your application. If that's the case, then this msi can be included to your setup - installer. MSI files can be executed from command prompt using msiexec which should be part of windows os. Creating a setup program is something that isn't really related to powerbuilder. Do you create a setup program? Or you want to manually set your application in another pc?

Andreas.
  1. Helpful
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Monday, 12 February 2024 09:27 AM UTC
  2. PowerBuilder
  3. # 2

Hi.

Please let us know the version of PowerBuilder you are using, as there were many improvements in that domain while PB 2019 R3 was released.

Andreas.

Comment
  1. Desarrollador 1
  2. Monday, 12 February 2024 10:01 AM UTC
Sure, my application is compiled in Powerbuilder 2022 R2
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.