 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Ajay Guest
|
Posted: Tue Feb 27, 2007 6:18 pm Post subject: Windows Vista Manifest in Delphi |
|
|
I am working on a application using BDS 2005.
This application includes a main exe, which internally calls other exes and dlls.
On Windows Vista, I am unable to invoke the main exe just by double clicking; I need to invoke it as “Run as administrator”.
To overcome this issue, I used following manifest xml to elevate main executable.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.1.1.1"
processorArchitecture="X86"
name="ApplicationMainExeName"
type="win32"/>
<description>elevate execution level</description>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
I built its resource file using BRCC32, and then include this .REC file in the mail exe project.
Result is good and I can invoke my main exe by just double clicking.
Now my questing is-
Do I need to write separate manifest xml for each other exe and dll?
Or is there any alternative through which I can create a single manifest REC file and my complete application will get elevated? |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|