1. Rick Domogalik
  2. PowerBuilder
  3. Tuesday, 28 July 2020 18:38 PM UTC

I would like to have a function run that checks to see if users have all the needed 3rd party addons installed before I let them start using that feature.  

So far I have created a simple routine that checks to see if registry entries are there.  If they are, I know the addon is installed and move on. 

If I don't see the registry entry, I was trying to use Topwiz's Runandwait code (link below) to install the addon.

https://www.topwizprogramming.com/freecode_runandwait.html

The issue I have run into is, the installer needs an elevated (admin) session to install.  I am using the of_run function with msiexec /a to do a quiet install of the package.  During that execution, I get the error that it needs elevated privileges to install even with the /a switch for administrator on msiexec.  Guessing the initial call to createprocess() needs elevated, but not sure how to do that.

 

If anyone has done something like this and has some suggestions on how they accomplished this, the insight would be much appreciated.

 

Thanks.

 

Rick 

 

Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 28 July 2020 19:42 PM UTC
  2. PowerBuilder
  3. # 1

Hi Rick,

Just want to make you aware that PowerBuilder 2019 R3 will have a new feature called PowerClient: https://docs.appeon.com/whitepapers/Whitepaper_Automating_On-Premise_Deployment_of_PowerBuilder_Apps.pdf

PowerClient will basically take care of creating the installation program and keep the apps updated.  It supports packaging 3rd party programs and resource files that your app requires to work.

Best regards,
Armeen

Comment
  1. Ricardo Jasso
  2. Friday, 7 August 2020 17:31 PM UTC
We have more or less the same workflow as Sivaprakash'. A new version of the application is built, an installer is created for the new version, the installer is uploaded to a FTP server on the internet, and a notification is sent to the customer's IT department so they can change the version number in a configuration table in their local database. The application detects the new version and ask the users to install it. If the user agrees the program connects to the FTP server, downloads the new installer, executes a Run command on the installer and closes itself. When the user finishes installing the new version s/he opens the application as usual. The application is a client server application that connects to a local database server.
  1. Helpful
  1. Sivaprakash BKR
  2. Saturday, 8 August 2020 10:23 AM UTC
Exactly Ricardo Jasso,

If that could be automated and becomes a part of PowerBuilder (PowerClient), I think it will be great addition. Let's see what appeon thinks.
  1. Helpful
  1. mike S
  2. Saturday, 8 August 2020 14:01 PM UTC
+1 to this.
  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.