如何生成用于命令行转换的模板文件How to generate a template file for command line conversions

使用 .MSIX 打包工具,可以通过两种方式执行转换:通过交互 UI 或通过我们的命令行选项。With the MSIX Packaging Tool, you can perform the conversion in two ways: through the interactive UI or through our command line option. 使用命令行时,需要提供模板文件,以便该转换可用于特定的设置和需求。When using the command line, you need to provide a template file so that the conversion works with your specific settings and needs. 本文将指导你完成生成适用于你的模板文件的过程。This article will help guide you through the process of generating a template file that works for you.

可以通过两种方式获取适用于你的模板文件:There are two ways that you can get a template file that works for you:

  • 可以使用 .MSIX 打包工具的 UI。You can use the UI of the MSIX Packaging Tool. 在工具设置中,可以指定要使用创建的每个 .MSIX 包生成转换模板文件。In the settings of the tool, you can specify that you want to generate a conversion template file with each MSIX package that you create.
  • 您可以获取一个示例模板,并手动输入每个转换所需的配置。You can take a sample template and manually enter the configurations that you need for each conversion.

从 .MSIX 打包工具生成转换模板文件Generate a conversion template file from the MSIX Packaging Tool

  1. 启动 .MSIX 打包工具。Launch the MSIX Packaging Tool.
  2. 请在应用程序的右上角中转到 "设置"。Go to the settings in the top right corner of the application.
  3. 请确保选中 "生成包含每个包的命令行文件" 选项。Make sure that the 'Generate a command line file with each package' option is selected.
  4. 对所需的设置进行其他更改或修改(例如排除项、退出代码)。Make any other changes or modifications to your settings that you need (e.g. exclusion items, exit codes).
  5. 保存设置Save the settings
  6. 使用安装程序浏览应用程序包工作流。Go through the Application Package workflow using an installer.
    • 如果未选择安装程序,则将无法生成转换模板文件。If you don't select an installer, you will not be able to generate a conversion template file.
    • 如果使用的是 exe,则需要将缄默标志传递到安装程序以生成转换模板文件。If you are using an exe, you will need to pass a silent flag to your installer to generate the conversion template file.
  7. 在转换结束时,你将拥有一个基于所选安装程序配置的模板文件,以及你现在可以用于将来转换的当前设置。At the end of the conversion, you will have a template file configured based on the installer you chose, and your current settings which you can now re-use for future conversions.
    • 默认情况下,转换模板文件将保存在与 .MSIX 包相同的位置,但你可以在 "创建包" 页上为模板文件指定单独的保存位置。By default, the conversion template file will be saved in the same location as your MSIX package, but you can specify a separate save location for your template file on the Create package page.
    • 你仍需要根据要在每次转换结束时输出的 .MSIX 进行一些修改。You will still need to make some modifications based on what MSIX you want output at the end of each conversion.

手动编辑转换模板文件Manually edit the conversion template file

你可以手动编辑转换模板文件的模板参数,以生成适合你的模板文件。You can manually edit the template parameters for the conversion template file to generate a template file that works for you. 生成转换模板文件时,请注意要添加到模板文件中的功能,因为某些功能可能需要其他架构引用才能正常工作。When generating the conversion template file, pay attention to which features you add into the template file, as some may require an additional schema references in order to work.

转换模板参数引用Conversion template parameter reference

下面是可以在转换模板文件中使用的参数的完整列表。Here is the complete list of parameters that you can use in the Conversion template file.

ConversionSettingsConversionSettings 描述Description
Settings:: AllowTelemetrySettings:: AllowTelemetry [可选] 为此工具调用启用遥测日志记录。[optional] Enables telemetry logging for this invocation of the tool.
Settings:: ApplyAllPrepareComputerFixesSettings:: ApplyAllPrepareComputerFixes [可选] 应用所有建议的“准备计算机”修复程序。[optional] Applies all recommended prepare computer fixes. 使用其他特性时不能设置此参数。Cannot be set when other attributes are used.
Settings:: GenerateCommandLineFileSettings:: GenerateCommandLineFile [可选] 将模板文件输入复制到 SaveLocation 目录,供将来使用。[optional] Copies the template file input to the SaveLocation directory for future use.
Settings:: AllowPromptForPasswordSettings:: AllowPromptForPassword [可选] 指示工具提示用户输入虚拟机和签名证书的密码(如果必须提供密码,但未指定密码)。[optional] Instructs the tool to prompt the user to enter passwords for the Virtual Machine and for the signing certificate if it is required and not specified.
Settings:: EnforceMicrosoftStoreVersioningRequirementsSettings:: EnforceMicrosoftStoreVersioningRequirements [可选] 指示工具强制实施从 Microsoft Store 和适用于企业的 Microsoft Store 进行部署所需的包版本控制方案。[optional] Instructs the tool to enforce the package versioning scheme required for deployment from Microsoft Store and Microsoft Store for Business.
Settings:: ServerPortNumberSettings:: ServerPortNumber 可有可无连接到远程计算机时使用。[optional] Used when connecting to a remote machine. 需要模板架构的 v2。Requires v2 of the template schema.
Settings:: AddPackageIntegritySettings:: AddPackageIntegrity 可有可无将包完整性添加到每个生成的 .MSIX 中。[optional] Adds Package Integrity to every generated MSIX. 需要模板架构的 v5。Requires v5 of the template schema.
ValidInstallerExitCodesValidInstallerExitCodes [可选] 0 个或多个 ValidInstallerExitCode 元素。[optional] 0 or more ValidInstallerExitCode elements. 需要模板架构的 v2。Requires v2 of the template schema.
ValidInstallerExitCodes:: ValidInstallerExitCodeValidInstallerExitCodes:: ValidInstallerExitCode 可有可无指定该工具可能不熟悉或需要重新启动的任何安装程序退出代码。[optional] Specify any installer exit codes that the tool might not be familiar with or require a reboot. 需要模板架构的 v2。Requires v2 of the template schema.
ValidInstallerExitCodes:: ValidInstallerExitCode:: RebootValidInstallerExitCodes:: ValidInstallerExitCode:: Reboot 可有可无指定在转换过程中退出代码是否应触发重新启动。[optional] Specify whether an exit code should trigger a reboot during conversion. 需要模板架构的 v3。Requires v3 of the template schema.
ExclusionItemsExclusionItems [可选] 0 个或更多 FileExclusion 或者 RegistryExclusion 元素。[optional] 0 or more FileExclusion or RegistryExclusion elements. 所有 FileExclusion 元素必须出现在任何 RegistryExclusion 元素之前。All FileExclusion elements must appear before any RegistryExclusion elements.
ExclusionItems::FileExclusionExclusionItems::FileExclusion [可选] 不要打包的文件。[optional] A file to exclude for packaging.
ExclusionItems::FileExclusion::ExcludePathExclusionItems::FileExclusion::ExcludePath 不要打包的文件的路径。Path to file to exclude for packaging.
ExclusionItems::RegistryExclusionExclusionItems::RegistryExclusion [可选] 不要打包的注册表项。[optional] A registry key to exclude for packaging.
ExclusionItems::RegistryExclusion:: ExcludePathExclusionItems::RegistryExclusion:: ExcludePath 不要打包的注册表的路径。Path to registry to exclude for packaging.
PrepareComputer::DisableDefragServicePrepareComputer::DisableDefragService [可选] 转换应用时禁用 Windows 碎片整理程序。[optional] Disables Windows Defragmenter while the app is being converted. 如果设置为 false,则会重写 ApplyAllPrepareComputerFixes。If set to false, overrides ApplyAllPrepareComputerFixes.
PrepareComputer:: DisableWindowsSearchServicePrepareComputer:: DisableWindowsSearchService [可选] 转换应用时禁用 Windows Search。[optional] Disables Windows Search while the app is being converted. 如果设置为 false,则会重写 ApplyAllPrepareComputerFixes。If set to false, overrides ApplyAllPrepareComputerFixes.
PrepareComputer:: DisableSmsHostServicePrepareComputer:: DisableSmsHostService [可选] 转换应用时禁用 SMS 主机。[optional] Disables SMS Host while the app is being converted. 如果设置为 false,则会重写 ApplyAllPrepareComputerFixes。If set to false, overrides ApplyAllPrepareComputerFixes.
PrepareComputer:: DisableWindowsUpdateServicePrepareComputer:: DisableWindowsUpdateService [可选] 转换应用时禁用 Windows 更新。[optional] Disables Windows Update while the app is being converted. 如果设置为 false,则会重写 ApplyAllPrepareComputerFixes。If set to false, overrides ApplyAllPrepareComputerFixes.
SaveLocationSaveLocation [可选] 用于指定工具保存位置的元素。[optional] An element to specify the save location of the tool. 如果未指定,包将保存在“桌面”文件夹中。If not specified, the package will be saved under the Desktop folder.
SaveLocation::PackagePathSaveLocation::PackagePath [可选] 生成的 MSIX 包要保存到的文件或文件夹的路径。[optional] The path to the file or folder where the resulting MSIX package is saved.
SaveLocation::TemplatePathSaveLocation::TemplatePath 可有可无保存生成的命令行模板的文件或文件夹的路径。[optional] The path to the file or folder where the resulting command line template is saved.
Installer::PathInstaller::Path 应用程序安装程序的路径。The path to the application installer.
Installer::ArgumentsInstaller::Arguments [可选] 要传递给安装程序的参数。[optional] The arguments to pass to the installer. 该工具将使用参数“/qn /norestart INSTALLSTARTMENUSHORTCUTS=1 DISABLEADVTSHORTCUTS=1”以无提示方式自动运行 MSI 安装程序。The tool will automatically run MSI installers silently using argument "/qn /norestart INSTALLSTARTMENUSHORTCUTS=1 DISABLEADVTSHORTCUTS=1". 注意:如果你使用的是 .exe 安装程序,则必须传递参数以强制自动运行安装程序。NOTE: You must pass the arguments to force your installer to run silently if you are using .exe installers.
Installer::InstallLocationInstaller::InstallLocation 可有可无如果安装的文件已安装(例如 "C:\Program Files (x86) \MyAppInstalllocation"),则为该应用程序的根文件夹的完整路径。[optional] The full path to your application's root folder for the installed files if it were installed (e.g. "C:\Program Files (x86)\MyAppInstalllocation").
VirtualMachineVirtualMachine [可选] 用于指定要在本地虚拟机上运行转换的元素。[optional] An element to specify that the conversion will be run on a local Virtual Machine.
VirtualMachine:: NameVirtualMachine::Name 要用于转换环境的虚拟机的名称。The name of the virtual machine to be used for the conversion environment.
VirtualMachine::UsernameVirtualMachine::Username 用于转换环境的虚拟机的用户名。The user name for the virtual machine to be used for the conversion environment.
RemoteMachineRemoteMachine 可有可无一个元素,用于指定将在远程计算机上运行转换。[optional] An element to specify that the conversion will be run on a remote machine. 需要模板架构的 v2。Requires v2 of the template schema.
RemoteMachine:: ComputerNameRemoteMachine:: ComputerName 用于转换环境的远程计算机的名称。The name of the remote machine to be used for the conversion environment. 需要模板架构的 v2。Requires v2 of the template schema.
RemoteMachine:: UsernameRemoteMachine:: Username 用于转换环境的远程计算机的用户名。The user name for the remote machine to be used for the conversion environment. 需要模板架构的 v2。Requires v2 of the template schema.
RemoteMachine:: EnableAutoLogonRemoteMachine:: EnableAutoLogon 可有可无当执行需要在远程计算机上重启的转换以便无缝地继续转换时,这将自动登录回。[optional] This will auto log you back in when performing a conversion that requires a restart on a remote machine so your conversion continues seamlessly. 需要模板架构的 V3。Requires V3 of the template schema.
PackageInformation::PackageNamePackageInformation::PackageName MSIX 包的名称。The Package Name for your MSIX package.
PackageInformation::PackageDisplayNamePackageInformation::PackageDisplayName MSIX 包的显示名称。The Package Display Name for your MSIX package.
PackageInformation::PublisherNamePackageInformation::PublisherName MSIX 包的发布者。The Publisher for your MSIX package.
PackageInformation::PublisherDisplayNamePackageInformation::PublisherDisplayName MSIX 包的发布者显示名称。The Publisher Display Name for your MSIX package.
PackageInformation::VersionPackageInformation::Version MSIX 包的版本号。The version number for your MSIX package.
PackageInformation::P ackageDescriptionPackageInformation::PackageDescription 可有可无.MSIX 包的说明。[optional] The description for your MSIX package. 需要模板架构的 v4。Requires v4 of the template schema.
PackageInformation:: MainPackageNameForModificationPackagePackageInformation:: MainPackageNameForModificationPackage [可选] 主包名称的包标识名称。[optional] The Package identity name of the main package name. 创建依赖于主(父)应用程序的修改包时,将使用此参数。This is used when creating a modification package that takes a dependency on a main (parent) application.
SigningInformationSigningInformation 可有可无一个元素,用于指定 Device Guard 签名的签名信息。[optional] An element to specify signing information for Device Guard signing. 需要模板架构的 v4。Requires v4 of the template schema.
SigningInformation:: DeviceGuardSigningSigningInformation:: DeviceGuardSigning 可有可无用于指定设备保护签名信息的元素。[optional] An element to specify Device Guard signing information. 需要模板架构的 v4。Requires v4 of the template schema.
DeviceGuardSigning:: TokenFileDeviceGuardSigning:: TokenFile 采用 JSON 格式进行设备保护签名所需的 Azure AD 访问令牌The Azure AD access token required for Device Guard signing in JSON format. 需要 v4 模板架构。Requires v4 template schema.
DeviceGuardSigning:: TimestampUrlDeviceGuardSigning:: TimestampUrl 可有可无在使用 Device Guard 进行签名时提供时间戳,以确保你的应用程序将在证书的生存期之外安装。[optional] Provides a timestamp at the time of signing with Device Guard to ensure that your application will install beyond the lifetime of the certificate. 需要模板架构的 v4。Requires v4 of the template schema.
应用程序Applications [可选] 用于在 MSIX 包中配置应用程序条目的 0 个或多个 Application 元素。[optional] 0 or more Application elements to configure the Application entries in your MSIX package.
Application::IdApplication::Id MSIX 应用程序的应用 ID。The App ID for your MSIX application. 此 ID 将用于检测到的、与指定的 ExecutableName 匹配的应用程序条目。This ID will be used for the Application entry detected that matches the specified ExecutableName. 可为包中的可执行文件提供多个应用程序 ID 值。You can have multiple Application ID values for executables in the package.

此值是包中应用程序的唯一标识符。This value is the unique identifier of the application within the package. 此值有时称作“包相对应用标识符”(PRAID)。This value is sometimes referred to as the package-relative app identifier (PRAID). 该 ID 必须在包中唯一(同一个 ID 不能在同一个包中多次使用)。The ID must be unique within the package (the same ID cannot be used more than once in the same package). 但是,该 ID 不一定全局唯一。However, the ID must not be unique globally. 系统中可以有另一个包使用相同的 ID。There may be another package on the system that uses the same ID.

此字符串包含句点分隔的字母数字字段。This string contains alpha-numeric fields separated by periods. 每个字段必须以 ASCII 字母字符开头。Each field must begin with an ASCII alphabetic character. 不能将它们用作字段值: "CON"、"PRN"、"AUX"、"NUL"、"COM1"、"COM2"、"COM3"、"COM4"、"COM5"、"COM6"、"COM7"、"COM8"、"COM9"、"LPT1"、"LPT2"、"LPT3"、"LPT4"、"LPT5"、"LPT6"、"LPT7"、"LPT8"、"LPT9" 和 ""。You cannot use these as field values: "CON", "PRN", "AUX", "NUL", "COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8", "COM9", "LPT1", "LPT2", "LPT3", "LPT4", "LPT5", "LPT6", "LPT7", "LPT8", and "LPT9".
Application::DisplayNameApplication::DisplayName MSIX 包的应用显示名称。The App Display Name for your MSIX package. 此显示名称将用于检测到的、与指定的 ExecutableName 匹配的应用程序条目This Display Name will be used for the application entry detected that matches the specified ExecutableName
Application::ExecutableNameApplication::ExecutableName 要添加到包清单的 MSIX 应用程序的可执行文件名称。The executable name for the MSIX application that will be added to the package manifest. 如果检测不到具有此名称的应用程序,则会忽略相应的应用程序条目。The corresponding application entry will be ignored if no application with this name is detected.
Application::DescriptionApplication::Description [可选] MSIX 应用程序的应用说明。[optional] The App Description for your MSIX application. 如果不使用此参数,将使用应用程序显示名称。If not used, the Application DisplayName will be used. 此说明将用于检测到的、与指定的 ExecutableName 匹配的应用程序条目This description will be used for the application entry detected that matches the specified ExecutableName
功能Capabilities [可选] 用于将自定义功能添加到 MSIX 包的 0 个或多个 Capability 元素。[optional] 0 or more Capability elements to add custom capabilities to your MSIX package. 在转换期间,默认会添加“runFullTrust”功能。“runFullTrust” capability is added by default during conversion.
Capability::NameCapability::Name 添加到 MSIX 包的功能。The capability to add to your MSIX package.

示例转换模板文件Sample conversion template file

<MsixPackagingToolTemplate
    xmlns="http://schemas.microsoft.com/appx/msixpackagingtool/template/2018"
    xmlns:V2="http://schemas.microsoft.com/msix/msixpackagingtool/template/1904"
    xmlns:V3="http://schemas.microsoft.com/msix/msixpackagingtool/template/1907"
    xmlns:V4="http://schemas.microsoft.com/msix/msixpackagingtool/template/1910"
    xmlns:V5="http://schemas.microsoft.com/msix/msixpackagingtool/template/2001">
<!--Note: You only need to include xmlns:v2 - xmlns:v5 if you are using one of the features that use those schemas -->

    <Settings
        AllowTelemetry="true"
        ApplyAllPrepareComputerFixes="true"
        GenerateCommandLineFile="true"
        AllowPromptForPassword="false" 
        EnforceMicrosoftStoreVersioningRequirements="false"
        v2:ServerPortNumber="1599"
        v5:AddPackageIntegrity="true">    

    <!--Note: Exclusion items are optional and if declared take precedence over the default tool exclusion items
        <ExclusionItems>
            <FileExclusion ExcludePath="[{CryptoKeys}]" />
            <FileExclusion ExcludePath="[{Common AppData}]\Microsoft\Crypto" />
            <FileExclusion ExcludePath="[{Common AppData}]\Microsoft\Search\Data" />
            <FileExclusion ExcludePath="[{Cookies}]" />
            <FileExclusion ExcludePath="[{History}]" />
            <FileExclusion ExcludePath="[{Cache}]" />
            <FileExclusion ExcludePath="[{Personal}]" />
            <FileExclusion ExcludePath="[{Profile}]\Local Settings" />
            <FileExclusion ExcludePath="[{Profile}]\NTUSER.DAT.LOG1" />
            <FileExclusion ExcludePath="[{Profile}]\ NTUSER.DAT.LOG2" />
            <FileExclusion ExcludePath="[{Recent}]" />
            <FileExclusion ExcludePath="[{Windows}]\debug" />
            <FileExclusion ExcludePath="[{Windows}]\Logs\CBS" />
            <FileExclusion ExcludePath="[{Windows}]\Temp" />
            <FileExclusion ExcludePath="[{Windows}]\WinSxS\ManifestCache" />
            <FileExclusion ExcludePath="[{Windows}]\WindowsUpdate.log" />
        <FileExclusion ExcludePath="[{Windows}]\Installer" />
            <FileExclusion ExcludePath="[{AppVPackageDrive}]\$Recycle.Bin " />
            <FileExclusion ExcludePath="[{AppVPackageDrive}]\System Volume Information" />
        <FileExclusion ExcludePath="[{AppVPackageDrive}]\Config.Msi" />
            <FileExclusion ExcludePath="[{AppData}]\Microsoft\AppV" />
            <FileExclusion ExcludePath="[{Common AppData}]\Microsoft\Microsoft Security Client" />
            <FileExclusion ExcludePath="[{Common AppData}]\Microsoft\Microsoft Antimalware" />
            <FileExclusion ExcludePath="[{Common AppData}]\Microsoft\Windows Defender" />
            <FileExclusion ExcludePath="[{ProgramFiles}]\Microsoft Security Client" />
            <FileExclusion ExcludePath="[{ProgramFiles}]\Windows Defender" />
        <FileExclusion ExcludePath="[{ProgramFiles}]\WindowsApps" />
            <FileExclusion ExcludePath="[{Local AppData}]\Temp" />
        <FileExclusion ExcludePath="[{Local AppData}]\Microsoft\Windows" />
        <FileExclusion ExcludePath="[{Local AppData}]\Packages" />

            <RegistryExclusion ExcludePath= "REGISTRY\MACHINE\SOFTWARE\Wow6432Node\Microsoft\Cryptography" />
            <RegistryExclusion ExcludePath= "REGISTRY\MACHINE\SOFTWARE\Microsoft\Cryptography" />
            <RegistryExclusion ExcludePath= "REGISTRY\MACHINE\SOFTWARE\Microsoft\Microsoft Antimalware" />
            <RegistryExclusion ExcludePath= "REGISTRY\MACHINE\SOFTWARE\Microsoft\Microsoft Antimalware Setup" />
            <RegistryExclusion ExcludePath= "REGISTRY\MACHINE\SOFTWARE\Microsoft\Microsoft Security Client" />
            <RegistryExclusion ExcludePath= "REGISTRY\MACHINE\SOFTWARE\Policies\Microsoft\Microsoft Antimalware" />
            <RegistryExclusion ExcludePath= "REGISTRY\MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" />
            <RegistryExclusion ExcludePath= "REGISTRY\USER\[{AppVCurrentUserSID}]\Software\Microsoft\Windows\CurrentVersion\Explorer\StreamMRU" />
            <RegistryExclusion ExcludePath= "REGISTRY\USER\[{AppVCurrentUserSID}]\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\StreamMRU" />
            <RegistryExclusion ExcludePath= "REGISTRY\USER\[{AppVCurrentUserSID}]\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams" />
            <RegistryExclusion ExcludePath= "REGISTRY\USER\[{AppVCurrentUserSID}]\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\Streams" />
            <RegistryExclusion ExcludePath= "REGISTRY\MACHINE\SOFTWARE\Microsoft\AppV" />
            <RegistryExclusion ExcludePath= "REGISTRY\MACHINE\SOFTWARE\Wow6432Node\Microsoft\AppV" />
            <RegistryExclusion ExcludePath= "REGISTRY\USER\[{AppVCurrentUserSID}]\Software\Microsoft\AppV" />
            <RegistryExclusion ExcludePath= "REGISTRY\USER\[{AppVCurrentUserSID}]\Software\Wow6432Node\Microsoft\AppV" />
        </ExclusionItems>
    -->
    
    <!--Note: Specifying an installer exit code will allow you to automatically trigger a reboot during your conversion
      <v2:ValidInstallerExitCodes>
        <V2:ValidInstallerExitCode ExitCode="3010" V3:Reboot="true"/>
        <V2:ValidInstallerExitCode ExitCode="1641"/>
      </v2:ValidInstallerExitCodes>
    -->
        
    </Settings>

    <!--Note: this section takes precedence over the Settings::ApplyAllPrepareComputerFixes attribute and is optional
    <PrepareComputer
        DisableDefragService="true"
        DisableWindowsSearchService="true"
        DisableSmsHostService="true"
        DisableWindowsUpdateService="true"/>
    -->

    <SaveLocation
        PackagePath="C:\users\user\Desktop\MyPackage.msix" 
        TemplatePath="C:\users\user\Desktop\MyTemplate.xml" />

    <Installer
        Path="C:\MyAppInstaller.msi"
        InstallLocation="C:\Program Files\MyAppInstallLocation" />
    
    <!--NOTE: This section specifies that the conversion will be run on a local Virtual Machine. This is optional if you want to change your conversion environment from the default local machine.
    <VirtualMachine Name="vmname" Username="vmusername"/>
    -->

    <!--NOTE: This section specifies that the conversion will be run on a remote machine.This is optional if you want to change your conversion environment from the default local machine.
    <v2:RemoteMachine ComputerName="vmname" Username="vmusername" v3:EnableAutoLogon="true"/>
    -->

    <PackageInformation
        PackageName="MyAppPackageName"
        PackageDisplayName="MyApp Display Name"
        PublisherName="CN=MyPublisher"
        PublisherDisplayName="MyPublisher Display Name"
        Version="1.1.0.0"
        MainPackageNameForModificationPackage="MainPackageIdentityName">

    <!--Note: This is optional, if you want to sign your package with Device Guard signing
        <v4:SigningInformation>
            <v4:DeviceGuardSigning
                Tokenfile="tokenfile.json"
                TimestampUrl="https://mytimestamp.com"/>
        </v4:SigningInformation>
    -->
        
    <!--NOTE: This ID will be used if the Application entry detected matches the specified ExecutableName
        <Applications>
            <Application
                Id="MyApp1"
                Description="MyApp"
                DisplayName="My App"
                ExecutableName="MyApp.exe"/>
        </Applications>
    -->

    <!--NOTE: This is optional as “runFullTrust” capability is added by default during conversion
        <Capabilities>
            <Capability Name="runFullTrust" />
        </Capabilities>
    -->
        
    </PackageInformation>
</MsixPackagingToolTemplate>