Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Editing the Application Manifest

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Microsoft highly recommends that the requested execution level of an application be asInvoker. Therefore, asInvoker is the default requested execution level for all LabVIEW built applications. However, there might be occasions where you cannot adhere to this recommendation. Complete the following steps to edit the manifest.

  1. You must verify that you have installed mt.exe on the computer before you can edit the manifest. Use mt.exe to interact with the manifest using command-line arguments. If mt.exe is not on the computer, download the Software Development Kit from the Microsoft Web site. The Windows Software Development Kit for Windows Vista and .NET Framework 3.0 Runtime Components contains mt.exe. Refer to the KnowledgeBase for information about downloading this SDK.
  2. To edit the manifest, you must first retrieve it. Complete the following steps to retrieve the manifest.
    1. Open the command line window.
Note Note  On most Windows operating systems, you can access the command line window by selecting Start»Run, entering cmd in the Open text box and clicking the OK button.
  1. Enter the following command to retrieve the manifest: mt.exe -inputresource:directory path\Application Name.exe -out:Application Name.manifest in the command line window where directory path is the path to the built application and Application Name is the name of the application.
Note Note  If mt.exe is not in the same directory as the application whose manifest you want to retrieve, you must specify the path to mt.exe in the previous command.
  1. Press the <Enter> key to run the command. The application manifest with the file extension .manifest appears in the same directory as the application.
  1. Complete the following steps to edit the manifest.
    1. Right-click the manifest in the destination folder and open the file in a text editor or an XML editor.
    2. Locate the code <requestedExecutionLevel level="asInvoker" uiAccess="false"/>. Change the value asInvoker to requireAdministrator or highestAvailable depending on the execution level you want the built application to have.
    3. Save the manifest file.

Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit