problem in raising privilege level using manifest resource

E

erajaysharma

This issue is in Vista.
I used XML files(one for DLLs, other for EXEs) ane embeded them in my
EXEs and all DLLs ....actually i want to spawn a third party setup
from found new hardware...but an error message is shown "illegel
value: requestedrunlevel"
and setup failed to spawn... Someone please tell me how to elevate the
setup files so that setup can be spawned from found new hardware...

I used following code:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" processorArchitecture="X86"
name="temp10" type="win32"/>
<description>Privelidged</description>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel
level="requireAdministrator" uiAccess="true"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>

Thanks and Regards,
Ajay
 
W

Willy Denoyette [MVP]

This issue is in Vista.
I used XML files(one for DLLs, other for EXEs) ane embeded them in my
EXEs and all DLLs ....actually i want to spawn a third party setup
from found new hardware...but an error message is shown "illegel
value: requestedrunlevel"
and setup failed to spawn... Someone please tell me how to elevate the
setup files so that setup can be spawned from found new hardware...

I used following code:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" processorArchitecture="X86"
name="temp10" type="win32"/>
<description>Privelidged</description>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel
level="requireAdministrator" uiAccess="true"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>

Thanks and Regards,
Ajay


It makes no sense to embed this in your program, it has to be embedded in the third party
setup.

Willy.
 
W

Willy Denoyette [MVP]

but i am using it in third party S/W also...


Sure about that?
How did you apply the manifest to the "third party" setup and what kind of module is it, an
exe or a dll?

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top