This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
userspace:windows-subsystem-for-linux [2019/05/14 12:52] tobias created |
userspace:windows-subsystem-for-linux [2021/08/23 08:37] (current) |
||
---|---|---|---|
Line 20: | Line 20: | ||
└── setup.opsiscript | └── 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: [" | ||
+ | |||
+ | |||
+ | </ | ||
+ |