This shows you the differences between two versions of the page.
userspace:windows-subsystem-for-linux [2019/05/14 12:56] tobias |
userspace:windows-subsystem-for-linux [2021/08/23 08:37] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | This Script installes the Windows Subsystem for Linux and any linux distribution. | ||
- | \\ | ||
- | \\ | ||
- | You need the " | ||
- | |||
- | |||
- | - Download the needed Distributions --> [[https:// | ||
- | |||
- | **Tree:** | ||
- | < | ||
- | CLIENT_DATA | ||
- | ├── files | ||
- | │ ├── wsl-debian-gnulinux.appx | ||
- | │ ├── wsl-kalilinux-1140.appx | ||
- | │ ├── wsl-opensuse-42.appx | ||
- | │ ├── wsl-sles-12.appx | ||
- | │ ├── wsl-ubuntu-1604.appx | ||
- | │ └── wsl-ubuntu-1804.appx | ||
- | ├── Microsoft-WSL.png | ||
- | └── setup.opsiscript | ||
- | |||
- | </ | ||
- | |||
- | |||
- | < | ||
- | [Actions] | ||
- | importlib " | ||
- | requiredWinstVersion >= " | ||
- | ScriptErrorMessages=off | ||
- | |||
- | |||
- | DefVar $MsiId$ | ||
- | DefVar $UninstallProgram$ | ||
- | DefVar $LogDir$ | ||
- | DefVar $ProductId$ | ||
- | DefVar $MinimumSpace$ | ||
- | DefVar $rebootCounter$ | ||
- | DefVar $rebooted$ | ||
- | |||
- | DefVar $distribution$ | ||
- | |||
- | Set $LogDir$ = " | ||
- | |||
- | Message "init reboot counter" | ||
- | set $rebooted$ = rebootcontrol(" | ||
- | |||
- | ; ---------------------------------------------------------------- | ||
- | ; - Please edit the following values | ||
- | ; ---------------------------------------------------------------- | ||
- | ; | ||
- | ; therefore please: only lower letters, no umlauts, | ||
- | ; no white space use ' | ||
- | Set $ProductId$ | ||
- | Set $MinimumSpace$ | ||
- | ; the path were we find the product after the installation | ||
- | ; ---------------------------------------------------------------- | ||
- | |||
- | if not(HasMinimumSpace (" | ||
- | LogError "Not enough space on %SystemDrive%, | ||
- | isFatalError "No Space" | ||
- | ; Stop process and set installation status to failed | ||
- | else | ||
- | comment "Show product picture" | ||
- | ShowBitmap " | ||
- | |||
- | comment "get property value ....." | ||
- | set $distribution$ = getProductProperty(" | ||
- | |||
- | |||
- | Message " | ||
- | comment "Start setup program" | ||
- | ChangeDirectory " | ||
- | |||
- | if $rebooted$ <= " | ||
- | powershellCall(' | ||
- | set $rebootCounter$ = rebootcontrol(" | ||
- | ExitWindows / | ||
- | else | ||
- | message "WSL is enabled" | ||
- | message " | ||
- | powershellCall(' | ||
- | |||
- | set $rebootCounter$ = rebootcontrol(" | ||
- | endif | ||
- | |||
- | |||
- | endif | ||
- | |||
- | </ | ||
- | |||
- | < | ||
- | [Package] | ||
- | version: 1 | ||
- | depends: | ||
- | incremental: | ||
- | |||
- | [Product] | ||
- | type: localboot | ||
- | id: Microsoft-WSL | ||
- | name: Windows Subsystem for Linux | ||
- | description: | ||
- | advice: | ||
- | version: 4.0.6 | ||
- | priority: 0 | ||
- | licenseRequired: | ||
- | productClasses: | ||
- | setupScript: | ||
- | uninstallScript: | ||
- | updateScript: | ||
- | alwaysScript: | ||
- | onceScript: | ||
- | customScript: | ||
- | userLoginScript: | ||
- | |||
- | [ProductProperty] | ||
- | type: unicode | ||
- | name: Distribution | ||
- | multivalue: False | ||
- | editable: True | ||
- | description: | ||
- | values: [" | ||
- | default: [" | ||
- | |||
- | |||
- | </ | ||