MageUI.exe (Manifest Generation and Editing Tool, Graphical Client)

 

MageUI.exe supports the same functionality as the command-line tool Mage.exe, but with a Windows-based user interface (UI). With this tool you can create, edit, and sign deployment and application manifests. New manifests that are created with MageUI.exe target the .NET Framework 4 Client Profile. Previous versions of MageUI.exe should be used to target previous .NET Framework versions. When adding or removing assemblies from a manifest, or re-signing existing manifests, MageUI.exe does not update the manifest to target .NET Framework 4 Client Profile. For more information, see Mage.exe (Manifest Generation and Editing Tool).

This tool is automatically installed with Visual Studio. To run the tool, use the Developer Command Prompt (or the Visual Studio Command Prompt in Windows 7). For more information, see Command Prompts.

Two versions of Mage.exe and MageUI.exe are included as a component of the Visual Studio 2010 setup. To see version information, run MageUI.exe, select Help, and select About. This documentation describes version 4.0.x.x of Mage.exe and MageUI.exe.

System_CAPS_ICON_note.jpg Note

MageUI.exe does not support the compatibleFrameworks element when saving an application manifest that has already been signed with a certificate using MageUI.exe. Instead, you must use Mage.exe.

The following table lists the menu and toolbar items that are available.

CommandMenuShortcutDescription
Application ManifestFile, NewCreates a new application manifest.
Deployment ManifestFile, NewCreates a new deployment manifest.
OpenFileCTRL+OOpens an existing deployment manifest, application manifest, or trust license for editing.
CloseFileCTRL+F4Closes an open file.

If you modify a file before closing it, MageUI.exe prompts you to re-sign the file with a public key, key pair, or stored certificate.
SaveFileCTRL+SSaves to disk the document which currently has user input focus.
Save AsFileSaves a file to disk, enabling you to supply a new file name and/or location.
Save AllFileSaves the changes made to all files currently open within MageUI.exe.
PreferencesFileOpens the Preferences dialog box. See the following section for more information.
ExitFileALT+F4Quits MageUI.exe.
CutEditCTRL+XRemoves the currently selected text from the application and moves it to the system Clipboard.
CopyEditCTRL+CCopies the currently selected text to the system Clipboard.
PasteEditCTRL+VPastes text from the system Clipboard into the currently active text element.
DeleteEditDeletes an element currently selected in a list, such as a trust license on the Deployment Manifest tab.
Close AllWindowCloses all files currently open in MageUI.exe. If one or more files need saving, MageUI.exe prompts you to save them. MageUI.exe also prompts you to select a signing key for each unsigned or changed file.
AboutHelpDisplays version and copyright information about MageUI.exe.

The Preferences dialog box contains the following elements.

UI ElementDescription
Sign on savePrompts you to sign a file whenever you save your modifications.
Use default signing certificateUses the key entered in the Certificate file text box to sign all files. This eliminates the signing prompt that typically appears when you save a file and Sign on Save is selected. Use the ellipsis () button next to the Certificate file text box to select a key file.
Digest algorithmSpecifies the algorithm to generate dependency digests with. Value must be "sha256RSA" or "sha1RSA". Uses SHA1 as the default. Used both in application and deployment manifests. If the user provides a certificate when saving the manifest, uses the algorithms in the certificate to generate dependency digests with.

The Signing Options dialog box appears when you save a manifest or trust license for the first time, or when you change a manifest or trust license. It only appears if the Sign on Save option in the Preferences dialog box is selected. You must be connected to the Internet when signing a manifest that specifies a value in the TimeStamping URI text box.

This dialog box contains the following elements.

UI ElementDescription
Sign with certificate fileSigns the manifest with a digital certificate stored on the file system.
FileProvides an area to type the path to the .pfx file representing the certificate.
...Opens a Choose File dialog box for selecting an existing .pfx file.
NewGenerates a new .pfx that is not verifiable through a Certificate Authority (CA). For more information about the types of certificates used for signing ClickOnce deployments, see Trusted Application Deployment Overview.
PasswordProvides an area to type the password used for signing with this certificate. If not applicable, can be left blank.
Sign with stored certificateDisplays a selectable list of digital certificates stored in your computer's certificate store.
TimeStamping URIDisplays the Uniform Resource Locator (URI) of a digital timestamping service. Timestamping the manifests prevents you from having to re-sign the manifests if your digital certificate expires before you deploy the next version of your application. For more information, see Windows root certificate program members and ClickOnce and Authenticode.
Don't SignAllows you to save the manifest without adding a signature from a digital certificate.

When you open a document with MageUI.exe, it appears within its own tab page. Each tab contains a set of property panels. The panels contain grouped subsets of the document's data.

Application Manifest Tab

The Application Manifest tab displays the contents of an application manifest. The application manifest describes all files included with the deployment, and the permissions required for the application to run on the client.

The Application Manifest tab contains the following tabs.

UI ElementDescription
NameSpecifies identifying information about this deployment.
DescriptionSpecifies publisher, product, and support information.
Application OptionsSpecifies whether this is a browser application, and whether this manifest is the source of trust information.
FilesSpecifies all of the files that constitute this deployment.
Permissions RequiredSpecifies the minimum permission set required by the application to run on a client.

Name Tab

The Name tab is displayed when you first create or open an application manifest. It uniquely identifies the deployment, and optionally specifies a valid target platform.

UI ElementDescription
NameRequired. The name of the application manifest. Usually the same as the file name.
VersionRequired. The version number of the deployment in the form N.N.N.N. Only the first major build number is required. For example, for version 1.0 of an application, valid values would include 1, 1.0, 1.0.0, and 1.0.0.0.
ProcessorOptional. The machine architecture on which this deployment can run. The default is msil, or Microsoft Intermediate Language, which is the default format of all managed assemblies. Change this field if you have pre-compiled the assemblies in your application for a specific architecture. For more information about pre-compilation, see Ngen.exe (Native Image Generator).
CultureOptional. The two-part ISO country and region code in which this application runs. The default is neutral.
Public key tokenOptional. The public key with which this application manifest has been signed. If this is a new or unsigned manifest, this field will appear as Unsigned.

Description Tab

This information is usually provided within the deployment manifest. These fields can only be modified if the Use Application Manifest Trust Information check box is selected on the Application Options tab.

UI ElementDescription
PublisherThe name of the person or organization responsible for the application. This value is used as the Start menu folder name.
ProductThe full product name. If you selected Install Locally for the Application Type element on the Deployment Options tab of the deployment manifest, this name will be what appears in the Start menu link and in Add or Remove Programs for this application.
Support LocationThe URL from which customers can obtain help and support for the application.

Application Options Tab

UI ElementDescription
Windows Presentation Foundation Browser ApplicationSpecifies whether this is a WPF application that runs in the browser as a XAML browser application (XBAP).
Use Application Manifest Trust InformationSpecifies whether this manifest contains trust information.

Files Tab

UI ElementDescription
Application directoryThe directory in which the application's files reside. Use the ellipses () button to select the directory.
PopulateAdds all of the files in the application directory and subdirectories to the application manifest. If MageUI.exe finds a single executable file in the directory, it automatically marks this as the Entry Point, which is the file first executed when the ClickOnce application is launched on the client.
Application FilesLists all of the files in the application. Each file has three editable attributes, discussed below.
File TypeFile Type can be one of four values:

- None.
- Entry Point. The application's primary executable. Only one executable file can be marked as the entry point.
- Data File. A file, such as an XML file, that supplies data to the application.
- Icon File. An application icon, such as appears on the desktop or in the corner of an application's window.
OptionalFiles marked optional are not downloaded on initial install or update, but may be downloaded at run time using the System.Deployment On-Demand API. For more information, see Walkthrough: Downloading Assemblies on Demand with the ClickOnce Deployment API Using the Designer.
GroupA label for a set of optional files. You can apply a Group label to a set of files, and use the On-Demand API to download a batch of files with a single API call.

Permissions Required Tab

Use the Permissions Required tab if you need to grant your application more access to the local computer than is granted by default. For more information, see Securing ClickOnce Applications.

UI ElementDescription
Permission set typeThe minimum permission set required by this application to run on the client. For a description of these permission sets and which permissions they do or do not demand, see NIB: Named Permission Sets.
DetailsThe XML created for the application manifest to represent the permission set. Unless you have a good understanding of the application manifest XML format, you should not edit this XML manually. For more information, see ClickOnce Application Manifest.

Deployment Manifest Tab

The Deployment Manifest tab contains the following tabs.

UI ElementDescription
NameSpecifies identifying information about this deployment.
DescriptionSpecifies publisher, product, and support information.
Deployment OptionsSpecifies additional information about the deployment, such as the application type and the start location.
Update OptionsSpecifies how often ClickOnce should check for application updates.
Application ReferenceSpecifies the application manifest for this deployment.

Name Tab

The Name tab is displayed when you first create or open a deployment manifest. It uniquely identifies the deployment, and optionally specifies a valid target platform.

UI ElementDescription
NameRequired. The name of the deployment manifest. Usually the same as the file name.
VersionRequired. The version number of the deployment in the form N.N.N.N. Only the first major build number is required. For example, for version 1.0 of an application, valid values would include 1, 1.0, 1.0.0, and 1.0.0.0.
ProcessorOptional. The machine architecture on which this deployment can run. The default is msil, or Microsoft Intermediate Language, the default format of all managed assemblies. Change this field if you have compiled the assemblies in your application for a specific architecture.
CultureOptional. The two-part ISO country/region code in which this application runs. The default is neutral.
Public key tokenOptional. The public key with which this deployment manifest has been signed. If this is a new or unsigned manifest, this field will appear as Unsigned.

Description Tab

UI ElementDescription
PublisherRequired. The name of the person or organization responsible for the application. This value is used as the Start menu folder name.
ProductRequired. The full product name. If you selected Install Locally for the Application Type element on the Deployment Options tab, this name will be what appears in the Start menu link and in Add or Remove Programs for this application.
Support LocationOptional. The URL from which customers can obtain help and support for the application.

Deployment Options Tab

UI ElementDescription
Application TypeOptional. Specifies whether this application installs itself to the client computer (Install Locally), runs online (Online Only), or is a WPF application that runs in the browser (WPF Browser Application). The default is Install Locally.
Start LocationOptional. The URL from which the application should actually be started. Useful when deploying an application from a CD that should update itself from the Web.
Include Start Location (ProviderURL) in the manifestOptional. Specifies the URL which ClickOnce will examine for application updates.
Automatically run application after installingRequired. Specifies that the ClickOnce application should run immediately after the initial installation from a URL. The default is the check box is selected.
Allow URL parameters to be passed to applicationRequired. Permits the transfer of parameter data to the ClickOnce application through a query string appended to the deployment manifest's URL. The default is the check box is cleared.
Use .deploy file extensionRequired. When selected, all files in the application manifest must have the .deploy extension. The default is the check box is cleared.

Update Options Tab

The Update Options tab only contains options mentioned here when the Application Type selection box on the Name tab is set to Install Locally.

UI ElementDescription
This application should check for updatesSpecifies whether ClickOnce should check for application updates. If this check box is not selected, the application will not check for updates unless you update it programmatically by using the APIs in the System.Deployment.Application namespace.
Choose when the application should check for updatesProvides two options for update checks:

- Before the application starts. The update check is performed prior to application execution.
- After the application starts. The update check begins once the main form of the application has initialized, and will run the next time the application starts.
Update check frequencyDetermines how often ClickOnce should check for updates:

- Check every time the application runs. ClickOnce will perform an update check every time the user opens the application.
- Check every: Select a time interval and a unit (hours, days, or weeks) that must elapse before checking for updates.
Specify a minimum required version for this applicationOptional. Specifies that a specific version of your application is a required installation, preventing your users from working with an earlier version.
VersionRequired if Specify a minimum required version for this application check box is selected. The version number supplied must be of the form N.N.N.N. Only the first major build number is required. For example, for version 1.0 of an application, valid values would include 1, 1.0, 1.0.0, and 1.0.0.0.

Application Reference Tab

The Application Reference tab contains the same fields as the Name tab described earlier in this topic. The one exception is the following field.

UI ElementDescription
Select ManifestAllows you to choose the application manifest. All of the other fields on this page will populate when you choose an application manifest.

ClickOnce Security and Deployment
Walkthrough: Manually Deploying a ClickOnce Application
Mage.exe (Manifest Generation and Editing Tool)

Show: