1. Edinson Nongrados
  2. PowerBuilder
  3. Monday, 14 February 2022 09:52 AM UTC

Hello,

 

We're doing tests of our PowerClient with an FTP as the server and we have seen that we can create differents instances of our application by changing the name of the App. 

I have different clients and perhaps some needs to download other version of my app or we want to do some tests with differents enviroments like PRE/PRO/DEV, I want to know if there is a way to do it without changing the application name for each instance of the app.

Something like differents folders to organize my differents PowerClients instances for each enviroment (PRE/PRO). 

 

 

Accepted Answer
Marco Meoni Accepted Answer Pending Moderation
  1. Tuesday, 15 February 2022 12:53 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Edison,

I have created my html home page with same app but different arguments in the link, for example

  • ?app=NAME1&env=DEV
  • ?app=NAME2&env=DEV
  • ?app=NAME3&env=DEV
  • ?app=NAME1&env=PROD

Then I let commandline argument to do the work in the application open event.

If app = 'NAME' Then ...

If env = 'PROD' Then ...

My goal was in fact to deploy same app.EXE to all environments (DEV, TEST, PROD, ...)

Best,

.m

Comment
  1. Edinson Nongrados
  2. Tuesday, 15 February 2022 13:58 PM UTC
Hi Marco,



Nice, How did you do to get the arguments of the link?
  1. Helpful
  1. Marco Meoni
  2. Tuesday, 15 February 2022 14:53 PM UTC
Hi,

on each server have your fancy index.html under inetpub\wwwroot, and in there the launch link(s), for example



<a href="./myapp/?app=NAME1&env=PROD" target="_blank">My PS 2021 app</a>



.m
  1. Helpful 1
  1. Edinson Nongrados
  2. Thursday, 17 February 2022 11:36 AM UTC
This was really helpful
  1. Helpful
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Monday, 14 February 2022 16:04 PM UTC
  2. PowerBuilder
  3. # 1

Sure, just don't use the built-in FTP deploy feature.  Instead, create .ZIP file and copy that over to the Web server.  On the Web server create multiple folders prod/test/dev and unzip the files into each of the folders. 

Comment
  1. Armeen Mazda @Appeon
  2. Tuesday, 15 February 2022 14:19 PM UTC
Signing the app is completely separate. You can in signing tab have the app signed but in client deployment tab set the option to create .ZIP file.
  1. Helpful
  1. Marco Meoni
  2. Tuesday, 15 February 2022 14:57 PM UTC
you are right
  1. Helpful
  1. Edinson Nongrados
  2. Thursday, 17 February 2022 11:36 AM UTC
Ok, i understand
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 14 February 2022 16:03 PM UTC
  2. PowerBuilder
  3. # 2

Hi Edison;

  Please continue to use this technique for the time being. I found a problem testing my STD framework for multiple instances of a PC or PS App and the 2nd instance crashes. I opened a Support ticket and Appeon was able to recreate the issue. Engineering is now looking at this.

Regards ... Chris

Comment
  1. Chris Pollach @Appeon
  2. Tuesday, 15 February 2022 19:04 PM UTC
No, I am talking about running a 2nd copy of *any* PowerClient or PowerServer app from either its URL or its short-cut. When the 2nd instance starts from the User's PC where the CAL has already installed the App (instance #1), instance #2 will always "Hard Crash"!

Update: Engineering gave me a fix to the PBSHR.dlll this AM and this seems to have fixed this issue on all my PB2021 PowerClient and PowerServer test applications (both 32bit and 64bit). I have now tested this fix on W10 and W11 successfully. :-)

BTW: the ticket number is 7892.
  1. Helpful
  1. Edinson Nongrados
  2. Thursday, 17 February 2022 11:37 AM UTC
got it!!!
  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.