Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista Newsgroups > Vista security

Manifest not working

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 02-24-2007   #1 (permalink)
G. Plante
Guest


 

Manifest not working

Hi,

I have a small program named MyProg.exe that requires administrative rights
to run. I want that when the user run it, he gets the concent prompt to run
it as administrator. I tried to create a manifest file named
MyProg.exe.manifest in the same folder but it does not work at all. I'm not
able to get the concent prompt. But, as I read on the internet, it should
work. I tried with several version of the manifest file with no success at
all.

Is somebody could tell me what's wrong with manifest ? Is it should work or
not ?

Is somebody has a manifest file model that work ?

Thanks for any help.

--
G. Plante



My System SpecsSystem Spec
Old 02-25-2007   #2 (permalink)
Jesper
Guest


 

RE: Manifest not working

> I have a small program named MyProg.exe that requires administrative rights
> to run. I want that when the user run it, he gets the concent prompt to run
> it as administrator. I tried to create a manifest file named
> MyProg.exe.manifest in the same folder but it does not work at all. I'm not
> able to get the concent prompt. But, as I read on the internet, it should
> work. I tried with several version of the manifest file with no success at
> all.


I think my first attempt at answering was lost.

I'm not expert on manifests (try someone in the programming newsgroups) but
very likely the program has a manifest attached by the linker and I am pretty
sure you can't have a file system manifest if there is an attached manifest.
The easiest way to resolve the problem would probably be to embed the
manifest with the linker. If you can't do that, why don't you try to extract
the existing manifest and modify it. I used these steps to modify the
manifest on Notepad.exe.

1. Open an SDK command prompt. It does not need to be an admin
2. Run
mt.exe -nologo -inputresource:notepad.exe;#1 -out:extracted.manifest
3. Modify the extracted.manifest to change the requiredExecutionLevel to
requireAdministrator
4. Re-embed the manifest using
mt.exe -outputresource:notepad-test.exe;#1 -manifest extracted.manifest

Obviously you'll need to replace notepad.exe and notepad-test.exe before you
use these commands. The output resource must also exist already.

My System SpecsSystem Spec
Old 02-26-2007   #3 (permalink)
G. Plante
Guest


 

Re: Manifest not working

Thank you for this information. However, I do not have the MT.EXE utility.
Whar I can find this utility ? Is this utility is included with some
Microsoft products ?

G. Plante.

"Jesper" <Jesper@discussions.microsoft.com> wrote in message
news:0733C1A5-6442-4E48-8925-6CB142EC35F1@microsoft.com...
>> I have a small program named MyProg.exe that requires administrative
>> rights
>> to run. I want that when the user run it, he gets the concent prompt to
>> run
>> it as administrator. I tried to create a manifest file named
>> MyProg.exe.manifest in the same folder but it does not work at all. I'm
>> not
>> able to get the concent prompt. But, as I read on the internet, it should
>> work. I tried with several version of the manifest file with no success
>> at
>> all.

>
> I think my first attempt at answering was lost.
>
> I'm not expert on manifests (try someone in the programming newsgroups)
> but
> very likely the program has a manifest attached by the linker and I am
> pretty
> sure you can't have a file system manifest if there is an attached
> manifest.
> The easiest way to resolve the problem would probably be to embed the
> manifest with the linker. If you can't do that, why don't you try to
> extract
> the existing manifest and modify it. I used these steps to modify the
> manifest on Notepad.exe.
>
> 1. Open an SDK command prompt. It does not need to be an admin
> 2. Run
> mt.exe -nologo -inputresource:notepad.exe;#1 -out:extracted.manifest
> 3. Modify the extracted.manifest to change the requiredExecutionLevel to
> requireAdministrator
> 4. Re-embed the manifest using
> mt.exe -outputresource:notepad-test.exe;#1 -manifest extracted.manifest
>
> Obviously you'll need to replace notepad.exe and notepad-test.exe before
> you
> use these commands. The output resource must also exist already.
>



My System SpecsSystem Spec
Old 02-26-2007   #4 (permalink)
Jesper
Guest


 

Re: Manifest not working

> Thank you for this information. However, I do not have the MT.EXE utility.
> Whar I can find this utility ? Is this utility is included with some
> Microsoft products ?


mt.exe is part of the Windows SDK. You can download it at:
http://www.microsoft.com/downloads/d...displaylang=en

My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
.EXE.manifest ms curly Vista installation & setup 4 11-05-2007 03:13 AM
Trouble embedding a manifest into a .exe ejmichaud@hotmail.com Vista security 3 07-26-2007 09:47 AM
appname.exe.manifest, DLL dependencies shalayka@gmail.com Vista General 0 06-28-2007 12:06 PM
Problem with manifest file fig000 Vista security 1 05-01-2007 11:39 PM
UAC Manifest for VB6 Apps will f Vista security 1 02-23-2007 06:32 PM


Vistax64.com 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 2005-2008

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 47 48 49 50 51