E. Crane Computing Support Forum

Providing support for all E. Crane Computing products, including POWERGEN, PBSERVICE, HARPB, VERSIONEDIT, PBLRESCUE, and PBLEXPLORER.

You are not logged in.

#1 2020-06-18 13:21:39

admin
Administrator

Setting "Execution Level"

In PowerBuilder you can set the Execution Level from a dialog in the Project Painter.  This specifies the privilege level that your executable acquires when it is built.

You can accomplish the same thing with PowerGen by specifying the Level in a manifest file.  You can optionally bind (embed in) a manifest file to the executable.

To set the Execution Level include a "trustinfo" section in the manifest files:

<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
      <security>
      <requestedPrivileges>
        <requestedExecutionLevel
          level="requireAdministrator"
          uiAccess="false"/>
      </requestedPrivileges>
    </security>
   </trustInfo>

To select different levels you can use the following forms for the "requestedExecutionLevel":

<requestedExecutionLevel
     level="asInvoker|highestAvailable|requireAdministrator"
     uiAccess="true|false"/>

And thanks to Marietta Coulter of Carestream Dental for bring this to our attention.

Offline

Board footer