473,689 Members | 3,048 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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: requestedrunlev el"
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:sche mas-microsoft-com:asm.v1"
manifestVersion ="1.0">
<assemblyIdenti ty version="1.0.0. 0" processorArchit ecture="X86"
name="temp10" type="win32"/>
<description>Pr ivelidged</description>
<trustInfo xmlns="urn:sche mas-microsoft-com:asm.v3">
<security>
<requestedPrivi leges>
<requestedExecu tionLevel
level="requireA dministrator" uiAccess="true"/>
</requestedPrivil eges>
</security>
</trustInfo>
</assembly>

Thanks and Regards,
Ajay

Mar 21 '07 #1
3 3774
<er**********@g mail.comwrote in message
news:11******** *************@l 75g2000hse.goog legroups.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: requestedrunlev el"
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:sche mas-microsoft-com:asm.v1"
manifestVersion ="1.0">
<assemblyIdenti ty version="1.0.0. 0" processorArchit ecture="X86"
name="temp10" type="win32"/>
<description>Pr ivelidged</description>
<trustInfo xmlns="urn:sche mas-microsoft-com:asm.v3">
<security>
<requestedPrivi leges>
<requestedExecu tionLevel
level="requireA dministrator" uiAccess="true"/>
</requestedPrivil eges>
</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.

Mar 21 '07 #2
On Mar 21, 9:28 pm, "Willy Denoyette [MVP]"
<willy.denoye.. .@telenet.bewro te:
<erajaysha...@g mail.comwrote in message

news:11******** *************@l 75g2000hse.goog legroups.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: requestedrunlev el"
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:sche mas-microsoft-com:asm.v1"
manifestVersion ="1.0">
<assemblyIdenti ty version="1.0.0. 0" processorArchit ecture="X86"
name="temp10" type="win32"/>
<description>Pr ivelidged</description>
<trustInfo xmlns="urn:sche mas-microsoft-com:asm.v3">
<security>
<requestedPrivi leges>
<requestedExecu tionLevel
level="requireA dministrator" uiAccess="true"/>
</requestedPrivil eges>
</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.
but i am using it in third party S/W also...

Mar 22 '07 #3
<er**********@g mail.comwrote in message
news:11******** *************@d 57g2000hsg.goog legroups.com...
On Mar 21, 9:28 pm, "Willy Denoyette [MVP]"
<willy.denoye.. .@telenet.bewro te:
><erajaysha...@ gmail.comwrote in message

news:11******* **************@ l75g2000hse.goo glegroups.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: requestedrunlev el"
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:sche mas-microsoft-com:asm.v1"
manifestVersion ="1.0">
<assemblyIdenti ty version="1.0.0. 0" processorArchit ecture="X86"
name="temp10" type="win32"/>
<description>Pr ivelidged</description>
<trustInfo xmlns="urn:sche mas-microsoft-com:asm.v3">
<security>
<requestedPrivi leges>
<requestedExecu tionLevel
level="require Administrator" uiAccess="true"/>
</requestedPrivil eges>
</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.

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.

Mar 22 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3611
by: Roy Benjamin | last post by:
I'm developing a WEB service for Sun ONE deployment (AppServer7). I'm developing on Windows XP Pro though will deploy on Solaris, Sun AppServer7 includes a XercesImpl.jar in share/lib. 2 kb different than the one I usually use (xerces-2_1_0). If I compile all my code against the Sun xerces implementation, I get a class-def-not-found-error when trying to write any XML output. java.lang.NoClassDefFoundError:...
7
1754
by: Ken Allen | last post by:
OK, for a number of reasons I have needed to begin experimenting with resources sooner than I had planned (I had avoided it for now). Step 1: I built the 'reseditor' application that is in the SDK sub-directory, as instructed by the MSDN. Step 2: I used the 'reseditor' to create a file named "MyResources.resources" that contains only some string resources. Step 3: I added this resource file to my existing test assembly (does not do
5
3236
by: anthony.duerr | last post by:
I have encountered a problem (most certainly a .NET bug), that, for the life of me, I cannot figure out how to work around. Using Visual Studio 2003, with enabled XP Visual Styles. There are two possible scenarios here, the first one works properly, while the 2nd one doesn't. Scenario 1 ----------
0
1326
by: mb | last post by:
Hi I am working on a small helper tool to our main application. The tool uses SQLDMO to connect to the SQL Server 2000 database and allows us to cofigure the users who are allowed to use our main application and some other tasks. It is a .Net app developed in C# on Windows XP. I wanted to use visual styles to make this application look like an XP app. For doing that I need to use a manifest file. The manifest file looks like the...
11
11193
by: RossettoeCioccolato | last post by:
Is there any way to coax the VC8 linker into generating an application manifest with a trust level section suitable for an administrative application? Or do I have to add this manually each time that I rebuild? Regards, George.
0
1345
by: martin | last post by:
I've just been handed an old project (written in VC6 or possibly an earlier version) which I need to compile in Visual Studio Express. I went through the normal solution coversion process but the code unfortunately does not compile. There seem to be a problem with the resource but the error message is very vague so I don't know which part (configuration or code) that needs to be modified. I think the relevant error is this one: CVTRES :...
1
1574
by: Bern McCarty | last post by:
I know how with VC8 you embed your linker generated manifest into an exe with a resource ID of #1 and into a dll with resource ID #2. But what do you do with the linker generated manifest for a mixed .netmodule? Do you need to embed the it into the .netmodule? If so, with what ID? Or do you merge the .netmodule linker generated manifest into the manifest that you embed into the "assembly manifest containing" file? I have a 2-file...
5
14813
by: jbenner | last post by:
I have opened a PMR for this with IBM, and am not asking for advice from the DB2 DBA community. I am posting this as an FYI that DB2 Health Monitor, even at the latest version of DB2, still can cause huge problems with slow connect times and heavy resource locking in high concurrency / high transaction volume environments. I have an OLTP with 30-90 transactions per second activity, and start of Health Monitor every 2 hours was crashing our...
0
4428
by: dot.yet | last post by:
Hi Everyone, environment: DB2 9.5 WSE with FP 2a Solaris 10 u5 - 64-bit SMP - 2 Quad CPUS - total 8 cores 16 GB RAM SAMPLE database Solaris Containers
0
9076
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8947
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8783
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7621
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5810
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4321
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2965
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2219
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1952
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.