Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > WinFX General

Vista - problem in raising privilege level using manifest resource

 
 
Old 03-21-2007   #1 (permalink)
erajaysharma@gmail.com


 
 

problem in raising privilege level using manifest resource

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


My System SpecsSystem Spec
Old 04-05-2007   #2 (permalink)
Bryan Phillips


 
 

Re: problem in raising privilege level using manifest resource

uiAccess needs to false except for UI Accessible applications. In order
to get this to work, the components involved are going to need to be
signed.

See these links for more info:

UI Automation Security Overview
ms-help://MS.MSSDK.1033/MS.NETFX30SDK.1033/wpf_conceptual/html/1d853695-973c-48ae-b382-4132ae702805.htm

Developer Best Practices and Guidelines for Applications in a Least
Privileged Environment
http://msdn2.microsoft.com/en-us/library/aa480150.aspx

--
Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com
Web Site: http://www.composablesystems.net



"erajaysharma@gmail.com" <erajaysharma@gmail.com> wrote in message
news:1174491169.426349.9040@p15g2000hsd.googlegroups.com:

> 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


My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
detect user privilege level General Discussion
Compatibility Tab Privilege Level greyed out Vista security
Compatibility-Privilege Level Vista General
privilege level grayed out? Vista account administration
Privilege Level on Shortcuts Grayed Greyed Out Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46