CIPLEO Posted December 14, 2022 Report Posted December 14, 2022 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 Quote
Hossein Rahmani Posted December 2, 2023 Report Posted December 2, 2023 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.