0

for my current project in windows, I have decided to use administrative rights on execution time. I don't want the user to do right click and "run as administrator", but instead that on launch, the app run as administrator without using the trick of the shortcut.

the Exe produced by the building produces an exe file that does not run under administrative rights. There is a way to force TideSDK to build an exe with Administrative Rights on execution?

Thanks.

Clue : I had seen the python code that builds the exe project, but seems there is no flag to build the exe code with adminstrative rights:

  • C:\Program Files (x86)\TideSDK Developer\Resources\modules\packaging\js\packaging.js
  • C:\ProgramData\TideSDK\sdk\win32\1.3.1-beta\tidebuilder.py
Erick
  • 160
  • 8

1 Answers1

0

A good middleware independent way of doing this is by adding a manifest into the Exe. Ive had success in doing this for PyInstaller, etc

Download: http://www.angusj.com/resourcehacker/

then add or modify manifest.

<!-- Identify the application security requirements. -->
<!-- level can be "asInvoker", "highestAvailable", or "requireAdministrator" -->
   <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
      <security>
      <requestedPrivileges>
        <requestedExecutionLevel
          level="requireAdministrator"
          uiAccess="false"/>
      </requestedPrivileges>
    </security>
   </trustInfo>
Preist
  • 9
  • 2
  • I had already tried that, But I want that coming from Phyton, not from resource hacker. – Erick Apr 06 '15 at 02:28