rancher-sandbox / rancher-desktop

Container Management and Kubernetes on the Desktop
https://rancherdesktop.io
Apache License 2.0
5.84k stars 272 forks source link

Struggling to deploy Rancher Desktop via Intune #7356

Open Jiddeh opened 1 month ago

Jiddeh commented 1 month ago

Hello,

Not sure if this is the right place for this or if i need to try the Slack channel...

My company are trying to roll out the deployment of Rancher Desktop and ideally we want to deploy it via our Company Portal via Intune. The MSI package has been uploaded as a line-of-business app and in an ideal world it just works as the install commands are packaged into the MSI. However it seems something isn't quite right with it and it constantly fails.

Just wondering if anyone has managed to achieve deploying this via Intune and if so, how?

Thanks, Jack

mook-as commented 1 month ago

Do you have WSL2 already installed on the machines? The installer will check for that and try to install it if it's not there, which seems like a thing that might fail.

ademaf commented 3 weeks ago

Hello Jack,

Yes I'm facing the same issue. When installing it via cmd prompt open by the user installation is working also when I use Winget for it. But when I use winget or Win32 for installation via the company portal it fails and I can find why?

Thanks

Francis

SYSMANTEAM commented 3 weeks ago

We are having the same issue with deploying rancher Desktop using Intune. We have tried in System Context and user context, also allowing the user to interact with the application does not work, the application fails with Fatal error during installation (0x80070643)

WSL2 is installed..

Yet it works manually, i suspect it has something to do with the install asking if it should be installed in user context or System context.

makes it difficult for us, as our users do not have admin access, but we use Intune to deploy applications in System context. We would like to deploy this in system context so that users can use all the available functionalities.

Silent install parameters used (Works manually) with admin access.

msiexec /i "Rancher.Desktop.Setup.1.15.1.msi" /qn

ademaf commented 3 weeks ago

rancherdesktop

We changed the install behaviour to User and now it installs with out a problem. The only thing is that you can't uninstall the application via the company portal but that's no problem because RancherDesktop has auto update and that means that after an update you can uninstall with the old MSI file.

mook-as commented 3 weeks ago

You may want to try setting the standard MSI properties ALLUSERS=[0|1] and MSIINSTALLPERUSER=[0|1] (but I'd have thought InTune would have done that already — I haven't had a need to use InTune personally so I don't know for sure). See docs for details.

It's also possible to set WSLINSTALLED=1 to force the Rancher Desktop installer to skip checking for WSL and assume it is installed.

Jiddeh commented 2 weeks ago

rancherdesktop

We changed the install behaviour to User and now it installs with out a problem. The only thing is that you can't uninstall the application via the company portal but that's no problem because RancherDesktop has auto update and that means that after an update you can uninstall with the old MSI file.

This doesn't seem to work for me in our setup, still just fails when trying to install from Company Portal...

Jiddeh commented 2 weeks ago

You may want to try setting the standard MSI properties ALLUSERS=[0|1] and MSIINSTALLPERUSER=[0|1] (but I'd have thought InTune would have done that already — I haven't had a need to use InTune personally so I don't know for sure). See docs for details.

It's also possible to set WSLINSTALLED=1 to force the Rancher Desktop installer to skip checking for WSL and assume it is installed.

Where can these properties be adjusted?

mook-as commented 2 weeks ago

They are on the msiexec command line, see msiexec /?:

msiexec /i "Rancher.Desktop.Setup.1.15.1.msi" /qn WSLINSTALLED=1 ALLUSERS=0

Jiddeh commented 1 week ago

Tried it with the command and still no luck, just fails after the progress bar of installing hit 100%... so WSL has to be installed to even attempt the installation silently?

jandubois commented 1 week ago

so WSL has to be installed to even attempt the installation silently

Yes, WSL2 is a prerequisite for installing Rancher Desktop. WSLINSTALLED=1 is a promise that a compatible version is already installed. It is expected to break if you were not telling the truth. 😄

mook-as commented 1 week ago

If possible, please attach the logs for the install where it gets stuck at 100% so we can see what is going on? Please use something like msiexec /lv*x C:\path\to\log.txt /i "Rancher.Desktop.Setup.1.15.1.msi" /qn WSLINSTALLED=1 ALLUSERS=0