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?
- You are here:
- Home
- Q&A
- Q&A
- PowerBuilder
- Appeon PowerBuilder 2021 application executables require admin rights
- Anthony Scruse
- PowerBuilder
- Thursday, 31 March 2022 18:17 PM UTC
- Thursday, 31 March 2022 20:03 PM UTC
- PowerBuilder
- # 1
Hi Anthony;
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
- Thursday, 31 March 2022 20:12 PM UTC
- PowerBuilder
- # 2
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.
- Chris Pollach @Appeon
- Thursday, 31 March 2022 20:45 PM UTC
-
Helpful Loading... Helpful 0
- Anthony Scruse
- Friday, 1 April 2022 12:44 PM UTC
-
Helpful Loading... Helpful 0
- Thursday, 31 March 2022 21:04 PM UTC
- PowerBuilder
- # 3
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.
- Anthony Scruse
- Friday, 1 April 2022 12:57 PM UTC
-
Helpful Loading... Helpful 0
- Armeen Mazda @Appeon
- Friday, 1 April 2022 14:45 PM UTC
-
Helpful Loading... Helpful 1
- Friday, 1 April 2022 14:51 PM UTC
- PowerBuilder
- # 4
did you sign your exe
- Chris Pollach @Appeon
- Friday, 1 April 2022 17:29 PM UTC
-
Helpful Loading... Helpful 0
- Armeen Mazda @Appeon
- Friday, 1 April 2022 18:53 PM UTC
-
Helpful Loading... Helpful 0
- Chris Pollach @Appeon
- Friday, 1 April 2022 19:42 PM UTC
-
Helpful Loading... Helpful 0
- Friday, 1 April 2022 17:10 PM UTC
- PowerBuilder
- # 5
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?
- Anthony Scruse
- Friday, 1 April 2022 19:20 PM UTC
-
Helpful Loading... Helpful 0
- Friday, 1 April 2022 20:01 PM UTC
- PowerBuilder
- # 6
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?
- Anthony Scruse
- Friday, 1 April 2022 20:15 PM UTC
As far as the 2019 it is a new app I built right before the 2021 app.
-
Helpful Loading... Helpful 0
- Friday, 1 April 2022 21:29 PM UTC
- PowerBuilder
- # 7
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?
Answer: No
Question: Using a build script using Jenkins or similar and the pbc210.exe stand-alone compiler?
Answer: No
Question: Manually via the PB Project painter?
Answer: Yes
Question: Any difference in the way the PB 2019 app was compiled?
Answer: I only use one way.
Answer:
-
Helpful Loading... Helpful 0
- John Fauss
- Monday, 4 April 2022 15:45 PM UTC
Would you please take a moment and mark this issue as resolved? Thank you!
-
Helpful Loading... Helpful 0
- Monday, 4 April 2022 15:01 PM UTC
- PowerBuilder
- # 8
All,
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.
Antohny
- Chris Pollach @Appeon
- Monday, 4 April 2022 15:05 PM UTC
-
Helpful Loading... Helpful 0
- Page :
- 1
However, you are not allowed to reply to this question.