Thanks, Mark :) will try it out and let you know.
Main Topics
Browse All TopicsHi,
How do I add the UAC manifest (requestedExecutionLevel) to my application so that it asks for elevation when started in Windows Vista? I've read the steps for VB.NET and VB 2005, but is there a way to embed the manifest file into a VB6 application?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: Mark_FreeSoftwarePosted on 2007-02-13 at 11:28:11ID: 18525160
hey sramesh2k,
this should work:
create a new directory in your project dir (just to keep all the files together)
create a file named "MAKERES.BAT" in the new directory
with these contents:
=========start cutting below this line============
"RC.EXE" /r /fo YourResName.res ResourceScript.rc
=========stop cutting above this line============
still in that directory, create another file:
"ResourceScript.rc"
with these contents:
=========start cutting below this line============
#define CREATEPROCESS_MANIFEST_RES
#define RT_MANIFEST 24
CREATEPROCESS_MANIFEST_RES
=========stop cutting above this line============
and another file: "YourExeName.exe.manifest"
=========start cutting below this line============
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microso
<assemblyIdentity version="1.0.0.0"
processorArchitecture="X86
name="AdminApp"
type="win32"/>
<description>Description of your application</description>
<!-- Identify the application security requirements. -->
<trustInfo xmlns="urn:schemas-microso
<security>
<requestedPrivileges>
<requestedExecutionLevel
level="requireAdministrato
uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
=========stop cutting above this line============
save all 3 files, and change things like yourexename.exe and "Description of your application" so they fit your application
now after changing all files (make sure that if you change a filename, this is corrected in all files!)
run makeres.bat
there will be a new file in the directory, named "YourResName.res" (or whatever you changed it in)
now add this file to your vb project, compile, and voila!
happy coding!
mark