<?xml version="1.0" encoding="utf-8"?>
<Package
  xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
  xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
  xmlns:uap5="http://schemas.microsoft.com/appx/manifest/uap/windows10/5"
  xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
  xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10"
  xmlns:desktop4="http://schemas.microsoft.com/appx/manifest/desktop/windows10/4"
  xmlns:desktop5="http://schemas.microsoft.com/appx/manifest/desktop/windows10/5"
  xmlns:com="http://schemas.microsoft.com/appx/manifest/com/windows10"
  xmlns:win32dependencies="http://schemas.microsoft.com/appx/manifest/externaldependencies"  
  IgnorableNamespaces="uap uap5 rescap desktop desktop4 desktop5 com win32dependencies">
  <Identity Name="MediaInfo.Qt" Publisher="CN=MEDIAAREA.NET, O=MEDIAAREA.NET, L=Curienne, S=Auvergne-Rhône-Alpes, C=FR" Version="26.1.512.0" ProcessorArchitecture="x64" />
  <Properties>
    <DisplayName>MediaInfo Qt</DisplayName>
    <PublisherDisplayName>MEDIAAREA.NET</PublisherDisplayName>
    <Logo>Assets\Square150x150Logo.png</Logo>
  </Properties>
  <Resources>
    <Resource Language="en-us" />
  </Resources>
  <Dependencies>
    <TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.26100.0" />
    <PackageDependency Name="Microsoft.VCLibs.140.00.UWPDesktop" MinVersion="14.0.33728.0" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" />
    <win32dependencies:ExternalDependency Name="Microsoft.WebView2" Publisher="CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" MinVersion="1.1.1.1" Optional="true" />
  </Dependencies>
  <Capabilities>
    <rescap:Capability Name="runFullTrust" />
  </Capabilities>
  <Applications>
    <!-- Use 'EntryPoint="Windows.FullTrustApplication"' instead of 'uap10:TrustLevel="mediumIL" uap10:RuntimeBehavior="win32App"'
         to prevent an OS behaviour causing the application to be forced-closed when File Explorer context menu is loaded. -->
    <Application Id="MediaInfo.Qt" Executable="MediaInfo.exe" EntryPoint="Windows.FullTrustApplication">
      <uap:VisualElements DisplayName="MediaInfo" Description="MediaInfo" BackgroundColor="transparent" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png">
        <uap:DefaultTile Square71x71Logo="Assets\SmallTile.png" Square310x310Logo="Assets\LargeTile.png" Wide310x150Logo="Assets\Wide310x150Logo.png">
          <uap:ShowNameOnTiles>
            <uap:ShowOn Tile="square150x150Logo" />
          </uap:ShowNameOnTiles>
        </uap:DefaultTile>
      </uap:VisualElements>
      <Extensions>
        <uap5:Extension Category="windows.appExecutionAlias" EntryPoint="Windows.FullTrustApplication">
          <uap5:AppExecutionAlias>
            <uap5:ExecutionAlias Alias="mediainfo-gui.exe" />
          </uap5:AppExecutionAlias>
        </uap5:Extension>
        <desktop4:Extension Category="windows.fileExplorerContextMenus">
          <desktop4:FileExplorerContextMenus>
            <!-- Prefix Verb Ids with "0000" to work around an OS bug preventing the shell menu from appearing in the
                 context menu on some machines without it. There is no reason found why it works, but it really does -->
            <desktop5:ItemType Type="*">
              <desktop5:Verb Id="0000MediaInfo" Clsid="dea3006d-451d-4f0f-a2b2-c3250cb255b4" />
            </desktop5:ItemType>
            <desktop5:ItemType Type="Directory">
              <desktop5:Verb Id="0000MediaInfo" Clsid="dea3006d-451d-4f0f-a2b2-c3250cb255b4" />
            </desktop5:ItemType>
          </desktop4:FileExplorerContextMenus>
        </desktop4:Extension>
        <com:Extension Category="windows.comServer">
          <com:ComServer>
            <com:SurrogateServer DisplayName="MediaInfo Explorer Context Menu Shell Extension">
              <com:Class Id="dea3006d-451d-4f0f-a2b2-c3250cb255b4" Path="MediaInfo_WindowsShellExtension.dll" ThreadingModel="STA" />
            </com:SurrogateServer>
          </com:ComServer>
        </com:Extension>
      </Extensions>
    </Application>
  </Applications>
</Package>