Jump to content

Generate the manifest of an executable


CIPLEO

Recommended Posts

Hello,


I would like to generate a manifest to modify the configuration of an executable so that it launches as administrator.
For that I followed the LabVIEW link : https://www.ni.com/docs/fr-FR/bundle/labview/page/lvhowto/editing_app_manifests.html

However the command "mt.exe -inputresource:directorypath:applicationname.exe -out:applicationname.manifest" given by LabVIEW does not work for me.

When I run the command:
"C:\Program Files (x86)\Windows Kits\10.0.22621.0\x86\mt.exe" -inputresource: "C:\Users\user_name\Desktop\exe\Installer.exe" -out:Installer.manifest

Here is what I get:
Microsoft (R) Manifest Tool
Copyright (c) Microsoft Corporation.
All rights reserved.

Thank you for your answer 

Translated with DeepL

Link to comment
  • 11 months later...

Hi
Copy your file (Installer.exe) in "mt.exe" installation folder (Here is: C:\Program Files (x86)\Windows Kits\10.0.22621.0\x86) then open CMD as administrator, browse to "mt.exe" folder:

>> cd C:\Program Files (x86)\Windows Kits\10.0.22621.0\x86

and run this:
>> mt.exe -inputresource: Installer.exe
 -out:Installer.manifest

Manifest file will be created in in "C:\Program Files (x86)\Windows Kits\10.0.22621.0\x86" (Actually "mt.exe" installation folder).

To be noticed: You should create manifest file from exe file, then edit it (change input="asInvoker" to "requireAdministrator".) then use it to build exe file again.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.