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 for a stand-alone application, .NET interop assembly, or shared library.
Editing the Application Manifest
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 website.
To edit the manifest, you must first retrieve it. Complete the following steps to retrieve the manifest.
Open the command line window.
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.
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 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.
Press the <Enter> key to run the command. The application manifest with the file extension .manifest appears in the same directory as the application.
Complete the following steps to edit the manifest.
Right-click the manifest in the destination folder and open the file in a text editor or an XML editor.
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.
Save the manifest file.
Validating the Application Manifest
The tags within the application manifest are case sensitive. It is good practice to validate the changes you make to the manifest after you edit it. However, validating the manifest does not find spelling errors. Complete the following steps to validate the manifest.
In the command line window, enter the following command to validate the manifest: mt.exe -manifest Application Name.manifest -validate_manifest in the command line window where Application Name is the name of the application.
You also can embed the manifest without using the Windows Security page. Complete the following steps to embed the manifest using the command line window.
In the command line window, enter the command mt.exe -manifest Application Name.manifest -outputresource:directory path\Application Name.exe;#1, where directory path is the path to the built application and Application Name is the name of the application.