Page 1 of 1
How to run standalone with administrator rights
Posted: Wed May 27, 2015 7:12 am
by alemrantareq
hi, I want to add Vista Manifest to my standalone so that my application can run without asking admin rights; but unfortunately the links to the tutorial I found here are dead. So if anyone can guide me through this would be very much appreciated. Thanks...
Re: How to run standalone with administrator rights
Posted: Thu Jun 04, 2015 4:08 pm
by MaxV
You can with a separate file:
A manifest is a XML file that contains settings that informs Windows how to handle a program when it is started. The manifest can be embedded inside the program file (as a resource) or it can be located in a separate external XML file. If the manifest is placed in a separate file, then the file must be located in the same folder as the executable file and it must have same filename as the program file, but with a ".manifest" filename extension added at the end (e.g "MYAPP.EXE.manifest").
for example:
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="9.0.0.0"
processorArchitecture="x86"
name="VI.EXE"
type="win32"
/>
<description>SamLogic VI Editor</description>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
Please read this:
https://msdn.microsoft.com/en-us/librar ... 85%29.aspx
Re: How to run standalone with administrator rights
Posted: Sun Jun 07, 2015 9:09 pm
by alemrantareq
Thanks Mr. MaxV for replying me. I've already found the simple solution to do this.
In the Main Menubar,
File >
Standalone Application Settings >
Windows tab
Then simply change the
UAC Execution Level from
Default to
Require Administrator and save the stack. Now when the standalone application will be generated, it will automatically embed the manifest with the standalone
