BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Windows Vista Manifest in Delphi

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Deployment
View previous topic :: View next topic  
Author Message
Ajay
Guest





PostPosted: Tue Feb 27, 2007 6:18 pm    Post subject: Windows Vista Manifest in Delphi Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Deployment All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.