github.com/containers/podman/v4@v4.9.4/contrib/win-installer/burn.wxs (about)

     1  <?xml version="1.0" encoding="UTF-8"?>
     2  <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:bal="http://schemas.microsoft.com/wix/BalExtension" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
     3    <?ifndef var.VERSION?>
     4       <?error VERSION must be defined via command line argument?>
     5    <?endif?>
     6    <Bundle Name="Podman" Version="$(var.VERSION)" Manufacturer="Red Hat"
     7            UpgradeCode="f3e1f40a-a791-49b7-9bc6-050975293353" IconSourceFile="resources\podman-logo.ico"
     8            Compressed="yes">
     9      <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkSidebarLicense">
    10        <bal:WixStandardBootstrapperApplication LicenseUrl=""
    11                                                ThemeFile="podman-theme.xml"
    12                                                LocalizationFile="podman-theme.wxl"
    13                                                LogoFile="resources\podman-banner2.png"
    14                                                LogoSideFile="resources\podman-sidebar.png"
    15                                                SuppressOptionsUI="yes"
    16                                                ShowVersion="yes"/>
    17      </BootstrapperApplicationRef>
    18      <Variable Name='InstallFolder' Type='string' Value='[ProgramFiles64Folder]RedHat\Podman' bal:Overridable="yes"/>
    19      <Variable Name="VERSION" Value="$(var.VERSION)"/>
    20      <Variable Name="WSLCheckbox" Type="numeric" Value="1" bal:Overridable="yes"/>
    21      <Variable Name="AllowOldWin" Type="numeric" Value="0" bal:Overridable="yes"/>
    22      <Variable Name="LaunchTarget" Value="explorer.exe"/>
    23      <Variable Name="LaunchArguments" Value="&quot;[InstallFolder]\podman-for-windows.html&quot;"/>
    24  
    25      <util:RegistrySearch Id="PreviousVersionSearch" Variable="PreviousVersion"  Result="value" Root="HKLM"  Key="SOFTWARE\[WixBundleManufacturer]\Updates\[WixBundleName]" Value="PackageVersion"/>
    26      <util:RegistrySearch Id="PreviousInstallFolderSearch" Root="HKLM" Key="SOFTWARE\[WixBundleManufacturer]\[WixBundleName]" Value="InstallDir" Variable="PreviousInstallFolder" Win64="yes"/>
    27      <util:DirectorySearch Path="[PreviousInstallFolder]" Variable="InstallFolder" After="PreviousInstallFolderSearch" Condition="PreviousInstallFolder" />
    28      <util:RegistrySearch Id="CurrentBuild" Variable="CBNumber" Result="value" Root="HKLM" Key="SOFTWARE\Microsoft\Windows NT\CurrentVersion" Value="CurrentBuildNumber"/>
    29      <bal:Condition Message="Windows 10 (19041) or later is required to run this application.">
    30        <![CDATA[VersionNT >= v10.0 AND (CBNumber >= 19041 OR AllowOldWin = 1)]]>
    31      </bal:Condition>
    32      <bal:Condition Message="You have an installed development, pre-release version, or alternative build identifying as the same version of this installer. You must uninstall the existing version of Podman first, before proceeding.">
    33         <![CDATA[WixBundleAction <> 5 OR WixBundleInstalled OR WixBundleForcedRestartPackage OR PreviousVersion <> VERSION]]>
    34      </bal:Condition>
    35      <Chain>
    36        <MsiPackage Id="Setup" SourceFile="podman.msi" Vital="yes">
    37          <MsiProperty Name="INSTALLDIR" Value="[InstallFolder]" />
    38          <MsiProperty Name="WITH_WSL" Value="[WSLCheckbox]"/>
    39        </MsiPackage>
    40        <ExePackage DisplayName="WSL Kernel Install" InstallCondition="WSLCheckbox = 1" SourceFile="artifacts\podman-wslkerninst.exe"/>
    41      </Chain>
    42      <OptionalUpdateRegistration/>
    43    </Bundle>
    44  </Wix>