Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release-1.17: Windows Installer: Do not attempt to install WSL #8111

Merged

Conversation

mook-as
Copy link
Contributor

@mook-as mook-as commented Jan 18, 2025

This is the release-1.17 PR for #8110.

Original PR description:

Due to changes in the WSL installer (see #7975), we can no longer install WSL from within our installer.

This PR drops the code to run the WSL installer, and instead just presents an error to the user if WSL was not detected. As before, the user can override this via msiexec.exe /i ….msi WSLINSTALLED=1.

This includes both the code to install the VirtualMachinePlatform Windows feature as well as WSL.

If we wish to install WSL in our installer in the future, we will likely need to use an exe installer that runs the WSL installer before running the MSI installer.

(This PR is based on v1.17.0 so it can be merged into the release-1.17 branch if desired.)

The error shows up after agreeing to the license: image Followed by the fatal exit dialog: image

We missed rebuilding the custom action when using the (development-only)
`yarn wix`.

Signed-off-by: Mark Yen <[email protected]>
The WSL installer has changed again, such that it always uses an MSI
installer, so we cannot install it from within our installer.  Rather than
trying to work around this, just detect the situation and abort the install
with a message so the user can manage it separately.  This ensures that we
do not have to detect network state, etc.

If we wish to have the installer manage WSL installation in the future, it
would be better to create an exe installer that bundles the MSI, and from
there launch the WSL installer separately (outside of the Windows Installer
database lock).

Signed-off-by: Mark Yen <[email protected]>
We already do so (since 2ca4484), this just removes the extra unused
knob.  Turning off compression does not seem to make the build faster
anyway.

Signed-off-by: Mark Yen <[email protected]>
Since we no longer attempt to install WSL as part of our installer, we can
remove the code that was used to do so.

Signed-off-by: Mark Yen <[email protected]>
@jandubois jandubois merged commit a083d59 into rancher-sandbox:release-1.17 Jan 18, 2025
38 checks passed
@mook-as mook-as deleted the win32/install/no-install-wsl branch January 23, 2025 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants