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.