1. Placide Da Silva
  2. PowerBuilder
  3. Friday, 12 October 2018 17:33 PM UTC

Is there a way to know what registry mode is the application running in from the powerscript?

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 12 October 2018 19:17 PM UTC
  2. PowerBuilder
  3. # 1

Hi Placide;

  Yes, you can check the PS Apps side as well. Its a little more complicated - but, doable as follows:

1) Use the "of_getCacheDir" command to locate where your local work area is located.

2) Check the sub-folder "plugins" and look for the file "Ini.xml".

3) Read the "Ini.xml" file and check if the XML has the "key"  "System".

4) If "System" is present your in "emulation mode - if not, your in "Client" mode.

 

Emulation Mode: (System Key)

 

Client Mode: NO "System" key

 

HTH

Regards ... Chris

Comment
There are no comments made yet.
Placide Da Silva Accepted Answer Pending Moderation
  1. Friday, 12 October 2018 18:14 PM UTC
  2. PowerBuilder
  3. # 2

In powerserver there are two registry modes:

     -  client machine windows

      -  Appeon registry emulation

My question is how can know the registry mode from the script?

Thanks

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 12 October 2018 17:56 PM UTC
  2. PowerBuilder
  3. # 3

Hi Placide;

   Yes, just check the ProcessBitness property in PB's "Environment" object.

HTH

Regards ... Chris

Comment
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.