1. Walther Rodirguez
  2. PowerServer
  3. Friday, 2 September 2022 17:51 PM UTC

How can I get the name and path of the executable file of the application that runs the client and that is downloaded with the AppCloudLauncher

For powerserver.

 

thanks

Accepted Answer
Francisco Martinez @Appeon Accepted Answer Pending Moderation
  1. Friday, 21 April 2023 16:26 PM UTC
  2. PowerServer
  3. # Permalink
This guide uses the function Roland linked to in his answer
Comment
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Friday, 2 September 2022 18:02 PM UTC
  2. PowerServer
  3. # 1
Comment
  1. Francisco Martinez @Appeon
  2. Friday, 2 September 2022 18:03 PM UTC
To add up to this, there's an article on how to do this (compatible with 12.6, but I doubt that aspect of PB has changed that much)

https://community.appeon.com/index.php/articles-blogs/tutorials-articles/2-powerbuilder/155-how-to-get-the-application-path
  1. Helpful 1
  1. Roland Smith
  2. Friday, 2 September 2022 18:13 PM UTC
The C++ constant MAX_PATH has a value of 260 so I would use that when allocating the buffer instead of 255. I don't think it is necessary to pass one less to the function. It will truncate the output to nSize - 1 if it needs to. Some functions (not this one) will accept up to 32,767.
  1. Helpful
  1. Logan Liu @Appeon
  2. Tuesday, 6 September 2022 01:54 AM UTC
I want to add a tip about configuring App Path in PowerServer 2022:

If you use the default app launcher, "Allow the user to change the path" is not selected by default, the path %appdata%\pbapps\ will be the installing path of the cloud apps. So the install path of a specified app (E.g.: %appdata%\pbapps\Applications\demo.appeon.com_googlecharts) is basically fixed on the Client by default.

If you want to customize the Cloud App launcher, please refer to: https://docs.appeon.com/ps2022/Customize_cloud_app_launcher.html
  1. Helpful 1
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.
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.