1. Paweł Kasperek
  2. PowerBuilder
  3. Friday, 13 January 2023 01:37 AM UTC

HI,

In the newest PB is possible to set the runtime path in XML setting file: 

<?xml version="1.0" encoding="utf-8" ?>
<Application>
<RuntimePath>C:\Program Files (x86)\Appeon\Common\PowerBuilder\Runtime 22.0.0.1878</RuntimePath>
</Application>
 
Maybe there is possible to add the second path to the folder with pbd files in a different location than the folder with exe file ?
 
Ex.
 
|_my_application
|               |_myapp.exe
|               |_myapp.xml
|
|_my_libraries
                |_library.pdb
 
The "my_libraries" folder is different from the folder with runtime.
 
Regards,
Pawel
Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 13 January 2023 02:10 AM UTC
  2. PowerBuilder
  3. # Permalink

Hi Pawel;

   No, that XML file is only for the related PB runtime that matches the PB App's EXE build. You can only reference one folder path.

    For changing the current App path, adding other paths, setting environment variables, etc - I would recommend starting the PB App EXE from a batch file. When running a .BAT file, any path, set, etc commands are temporary & only affect that one PB App EXE's execution under that BAT file without affecting the Users actual MS-Windows settings. When the PB App completes, the environment settings are flushed without affecting the actual MS-Window Users O/S settings.

HTH 

Regards... Chris 

 

Comment
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.