Skip to content

Commit

Permalink
Add condition that stops installation on windows home edition
Browse files Browse the repository at this point in the history
since home edition doesn't have support for virtualization we cannot run there
this check was previously part of crc setup preflight checks
  • Loading branch information
anjannath authored and praveenkumar committed Aug 12, 2021
1 parent 7d874f8 commit 7342609
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packaging/windows/product.wxs.in
Expand Up @@ -27,6 +27,13 @@
<Condition Message="CodeReady Containers requires at least 9GB of RAM to run. Aborting installation.">
<![CDATA[Installed OR (PhysicalMemory >= 9126)]]>
</Condition>
<Property Id="WINDOWSEDITION" Secure="yes">
<RegistrySearch Id="WindowsEditionReg" Root="HKLM" Key="SOFTWARE\Microsoft\Windows NT\CurrentVersion" Name="EditionID" Type="raw" />
</Property>
<Condition Message="CodeReady Containers cannot run on Windows Home edition">
<![CDATA[Installed OR (WINDOWSEDITION <> "Home")]]>
</Condition>

<util:Group Id="CrcUsersGroup" Name="crc-users" />
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFiles64Folder">
Expand Down

0 comments on commit 7342609

Please sign in to comment.