We have both Appeon PowerBuilder 2019 and 2021 installed. I created an executable from 2021 and the .exe file required admin rights to run. Appeon 2019 does not work this way. Is there a setting on 2021 I should set or unset to stop this behavior?
The issue turned out to be a corrupted project object that builds the exe in the target application.
Once I deleted and recreated the project object that builds the exe the issue was solved.
Thanks for all the responses.
How do start execution of the PB 2021 app? Via a desktop shortcut?
If so, just for chuckles, right-click the shortcut, go to Properties, click the Advanced... button on the Shortcut tab. Is "Run as administrator" checked?
What if you navigate to the folder where the PB 2021 app resides in Windows Explorer, right-click on the exe and select Properties, select the Compatibility tab, is "Run this program as an administrator" checked?
How was the PB 2021 app compiled/deployed? With the new PBAutoBuild feature? Using a build script using Jenkins or similar and the pbc210.exe stand-alone compiler? Manually via the PB Project painter? Any difference in the way the PB 2019 app was compiled?
- Anthony Scruse
- Saturday, 2 April 2022 15:02 PM UTC
Answer: By clicking the .exe from the folder where the application is stored.
Question: If so, just for chuckles, right-click the shortcut, go to Properties, click the Advanced... button on the Shortcut tab. Is "Run as administrator" checked?
Answer: Shortcut is not used.
Question: What if you navigate to the folder where the PB 2021 app resides in Windows Explorer, right-click on the exe and select Properties, select the Compatibility tab, is "Run this program as an administrator" checked?
Answer: Navigating to the folder is how I run the application. I followed your suggestion and checked the run as administrator, and it had no affect.
Question: How was the PB 2021 app compiled/deployed?
Answer: The app was compiled from a project in PowerBuilder 2021. I then add the runtime and app .dlls to the folder and run the application. Keep in mind this is a pure development environment, so no deployment/installation software is used.
Question: With the new PBAutoBuild feature?
Question: Using a build script using Jenkins or similar and the pbc210.exe stand-alone compiler?
Question: Manually via the PB Project painter?
Question: Any difference in the way the PB 2019 app was compiled?
Answer: I only use one way.
- John Fauss
- Monday, 4 April 2022 15:45 PM UTC
Would you please take a moment and mark this issue as resolved? Thank you!
when you run the pb 2021 app what exactly happens? does it pop up and ask for admin rights, does it disappear, does it blow up?
when you say the 2019 exe run, is this an exe that you building right now? or was this a build that was done a while ago?
Does your app try to write anything to the directory where it's installed? As a quick test, can you move the entire app folder into the user's documents folder to see if it will run there?
did you sign your exe
- Armeen Mazda @Appeon
- Friday, 1 April 2022 18:53 PM UTC
- Chris Pollach @Appeon
- Friday, 1 April 2022 19:42 PM UTC
There were no changes made to client/server projects per the new features guide: https://docs.appeon.com/pb2021/whats_new/New_Features_2021.html
Please open a support ticket we try to help you troubleshoot, but I really think the issue is your environment/config.
Thanks for the reply. I checked all settings between 2019 and 2021 and both groups are the same including the one mentioned in your reply. Both has execution level set to 'As Invoker'. This is really strange as this is the first version (2021) of PowerBuilder where the .exe is created in such a way that the execution requires admin rights. This 100% prevents us from deploying to production for the 10,000 clients we serve.
There are no differences between PB 2019R3 compiled Apps and PB2021 compiled Apps execution wise. The only thing that I can think of is that in your PB2021 project that creates the App EXE, that you selected in the "Security" tab under the "Execution Level" property a value other than "As Invoker".
Regards ... Chris
- Page :
However, you are not allowed to reply to this question.