mirror of
https://github.com/containers/podman.git
synced 2025-07-15 03:02:52 +08:00
Allow manual override of install location
Also reuse install location for previous installs if present Example Usage: .\podman-4.3.2-setup.exe InstallFolder=C:\Other\Loc Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
This commit is contained in:
@ -15,7 +15,7 @@
|
|||||||
SuppressOptionsUI="yes"
|
SuppressOptionsUI="yes"
|
||||||
ShowVersion="yes"/>
|
ShowVersion="yes"/>
|
||||||
</BootstrapperApplicationRef>
|
</BootstrapperApplicationRef>
|
||||||
<Variable Name='InstallFolder' Type='string' Value='[ProgramFiles64Folder]RedHat\Podman'/>
|
<Variable Name='InstallFolder' Type='string' Value='[ProgramFiles64Folder]RedHat\Podman' bal:Overridable="yes"/>
|
||||||
<Variable Name="VERSION" Value="$(var.VERSION)"/>
|
<Variable Name="VERSION" Value="$(var.VERSION)"/>
|
||||||
<Variable Name="WSLCheckbox" Type="numeric" Value="1" bal:Overridable="yes"/>
|
<Variable Name="WSLCheckbox" Type="numeric" Value="1" bal:Overridable="yes"/>
|
||||||
<Variable Name="AllowOldWin" Type="numeric" Value="0" bal:Overridable="yes"/>
|
<Variable Name="AllowOldWin" Type="numeric" Value="0" bal:Overridable="yes"/>
|
||||||
@ -23,7 +23,8 @@
|
|||||||
<Variable Name="LaunchArguments" Value=""[InstallFolder]\podman-for-windows.html""/>
|
<Variable Name="LaunchArguments" Value=""[InstallFolder]\podman-for-windows.html""/>
|
||||||
|
|
||||||
<util:RegistrySearch Id="PreviousVersionSearch" Variable="PreviousVersion" Result="value" Root="HKLM" Key="SOFTWARE\[WixBundleManufacturer]\Updates\[WixBundleName]" Value="PackageVersion"/>
|
<util:RegistrySearch Id="PreviousVersionSearch" Variable="PreviousVersion" Result="value" Root="HKLM" Key="SOFTWARE\[WixBundleManufacturer]\Updates\[WixBundleName]" Value="PackageVersion"/>
|
||||||
<util:RegistrySearch Id="PreviousInstallFolderSearch" Root="HKLM" Key="SOFTWARE\[WixBundleManufacturer]\[WixBundleName]" Value="InstallDir" Variable="PreviousInstallFolder"/>
|
<util:RegistrySearch Id="PreviousInstallFolderSearch" Root="HKLM" Key="SOFTWARE\[WixBundleManufacturer]\[WixBundleName]" Value="InstallDir" Variable="PreviousInstallFolder" Win64="yes"/>
|
||||||
|
<util:DirectorySearch Path="[PreviousInstallFolder]" Variable="InstallFolder" After="PreviousInstallFolderSearch" Condition="PreviousInstallFolder" />
|
||||||
<util:RegistrySearch Id="CurrentBuild" Variable="CBNumber" Result="value" Root="HKLM" Key="SOFTWARE\Microsoft\Windows NT\CurrentVersion" Value="CurrentBuildNumber"/>
|
<util:RegistrySearch Id="CurrentBuild" Variable="CBNumber" Result="value" Root="HKLM" Key="SOFTWARE\Microsoft\Windows NT\CurrentVersion" Value="CurrentBuildNumber"/>
|
||||||
<bal:Condition Message="Windows 10 (19041) or later is required to run this application.">
|
<bal:Condition Message="Windows 10 (19041) or later is required to run this application.">
|
||||||
<![CDATA[VersionNT >= v10.0 AND (CBNumber >= 19041 OR AllowOldWin = 1)]]>
|
<![CDATA[VersionNT >= v10.0 AND (CBNumber >= 19041 OR AllowOldWin = 1)]]>
|
||||||
|
@ -20,6 +20,9 @@
|
|||||||
<Directory Id="INSTALLDIR" Name="Podman">
|
<Directory Id="INSTALLDIR" Name="Podman">
|
||||||
<Component Id="INSTALLDIR_Component" Guid="14B310C4-9B5D-4DA5-ADF9-B9D008E4CD82" Win64="yes">
|
<Component Id="INSTALLDIR_Component" Guid="14B310C4-9B5D-4DA5-ADF9-B9D008E4CD82" Win64="yes">
|
||||||
<CreateFolder/>
|
<CreateFolder/>
|
||||||
|
<RegistryKey Root="HKLM" Key="SOFTWARE\Red Hat\Podman">
|
||||||
|
<RegistryValue Name="InstallDir" Value="[INSTALLDIR]" Type="string" />
|
||||||
|
</RegistryKey>
|
||||||
</Component>
|
</Component>
|
||||||
<Component Id="MainExecutable" Guid="73752F94-6589-4C7B-ABED-39D655A19714" Win64="yes">
|
<Component Id="MainExecutable" Guid="73752F94-6589-4C7B-ABED-39D655A19714" Win64="yes">
|
||||||
<File Id="MainExecutableFile" Name="podman.exe" Source="artifacts/podman.exe" KeyPath="yes"/>
|
<File Id="MainExecutableFile" Name="podman.exe" Source="artifacts/podman.exe" KeyPath="yes"/>
|
||||||
|
Reference in New Issue
Block a user