This shows you the differences between two versions of the page.
userspace:microsoft_office_365 [2018/01/11 19:08] l3kk3r [setup.opsiscript] |
userspace:microsoft_office_365 [2021/08/23 08:37] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Microsoft Office 365 ====== | ||
- | //Author Dominik Daehn, based on Office 2013 Code by Jens Eppler, based on Office 2010 Code by Soren Birk | ||
- | // | ||
- | ===== Anleitung / Descripton ===== | ||
- | ==== Deutsch ==== | ||
- | Die Setup.exe ist das [[https:// | ||
- | |||
- | Microsoft hat mit dem Wechsel zu Office 2016/365 den Syntax der XML Setupdatei geändert und ich habe diese angepast. Der Download von den Setupdateien um von diesen lokal zu installieren hat interne Gründe. | ||
- | |||
- | **Wichtig MS hat mit 2016/365 Office den Update Mechanismus geändert, nach meinem Wissen funktioniert WSUS nicht mehr mit diesen Produkten** | ||
- | ==== English ==== | ||
- | The Setup.exe ist the [[https:// | ||
- | |||
- | **Importent with my knowlege Updates via WSUS don`t work with Office 2016/365** | ||
- | |||
- | FIXME Die Anleitung ist noch nicht fertig mehr morgen!! | ||
- | === CLIENT_DATA === | ||
- | ├ office_config.xml | ||
- | ├ setup.exe | ||
- | ├ office365.png | ||
- | ├ setup.opsiscript | ||
- | ├ uninstall.opsiscript | ||
- | ├ 64 | ||
- | └ ... | ||
- | └ 32 | ||
- | └ ... | ||
- | | ||
- | ===== Dateien / Files ===== | ||
- | ==== setup.opsiscript ==== | ||
- | <code winst> | ||
- | [Actions] | ||
- | requiredWinstVersion >= " | ||
- | |||
- | DefVar $LogDir$ | ||
- | DefVar $ProductId$ | ||
- | DefVar $ProductName$ | ||
- | DefVar $OfficeId$ | ||
- | DefVar $OfficeVersion$ | ||
- | |||
- | DefVar $MinimumSpace$ | ||
- | DefVar $InstallDir$ | ||
- | DefVar $InstallPfad$ | ||
- | DefVar $SystemType$ | ||
- | DefVar $OfficeArchitecture$ | ||
- | DefVar $Office_Source$ | ||
- | DefVar $Language$ | ||
- | DefVar $InstallPath$ | ||
- | DefVar $AutoActivate$ | ||
- | DefVar $LicenseRequired$ | ||
- | DefVar $LicensePool$ | ||
- | DefVar $UninstallProgram$ | ||
- | DefVar $UninstCmd$ | ||
- | DefVar $ExitCode$ | ||
- | DefVar $exitcodeActivation$ | ||
- | DefVar $Config_Product$ | ||
- | DefVar $Config_Eula$ | ||
- | DefVar $Config_Log$ | ||
- | DefVar $Config_Updates$ | ||
- | DefVar $UpdateChannel$ | ||
- | DefVar $UpdateSource$ | ||
- | DefVar $ACCESSFiles$ | ||
- | DefVar $EXCELFiles$ | ||
- | DefVar $GrooveFiles2$ | ||
- | DefVar $OUTLOOKFiles$ | ||
- | DefVar $PPTFiles$ | ||
- | DefVar $PubPrimary$ | ||
- | DefVar $WORDFiles$ | ||
- | DefVar $XDOCSFiles$ | ||
- | DefVar $LYNCFiles$ | ||
- | DefVar $ONENOTEFiles$ | ||
- | DefVar $ONEDRIVE$ | ||
- | DefVar $VISIOVIEWERFiles$ | ||
- | DefStringList $Products$ | ||
- | |||
- | ; ---------------------------------------------------------------- | ||
- | ; - Please edit the following values | ||
- | ; ---------------------------------------------------------------- | ||
- | Set $LogDir$ | ||
- | Set $ProductId$ | ||
- | Set $ProductName$ | ||
- | Set $OfficeId$ | ||
- | Set $MinimumSpace$ | ||
- | Set $InstallDir$ = " | ||
- | Set $SystemType$ = GetSystemType | ||
- | Set $OfficeArchitecture$ = GetProductProperty(" | ||
- | Set $InstallPath$ | ||
- | Set $UpdateSource$ = ' | ||
- | |||
- | ;Variablen zum patchen der office_config.xml | ||
- | Set $Office_Source$ = '< | ||
- | Set $Config_Product$ = '< | ||
- | Set $Language$ = '< | ||
- | Set $Config_Eula$ = '< | ||
- | Set $Config_Log$ = '< | ||
- | Set $Config_Updates$ = '< | ||
- | Set $AutoActivate$ = '< | ||
- | Set $Products$ | ||
- | Set $ACCESSFiles$ | ||
- | Set $EXCELFiles$ | ||
- | Set $GrooveFiles2$ | ||
- | Set $OUTLOOKFiles$ | ||
- | Set $PPTFiles$ | ||
- | Set $PubPrimary$ | ||
- | Set $WORDFiles$ | ||
- | Set $LYNCFiles$ | ||
- | Set $ONENOTEFiles$ | ||
- | Set $ONEDRIVE$ = takeFirstStringContaining($Products$, | ||
- | Set $VISIOVIEWERFiles$ | ||
- | |||
- | ; ---------------------------------------------------------------- | ||
- | |||
- | if CompareDotSeparatedNumbers(GetMsVersionInfo," | ||
- | LogError "This is for NT 6 (Vista) and above" | ||
- | isFatalError | ||
- | else | ||
- | if not ($ACCESSFiles$ = "" | ||
- | Set $ACCESSFiles$ | ||
- | else | ||
- | Set $ACCESSFiles$ | ||
- | endif | ||
- | if not ($EXCELFiles$ = "" | ||
- | Set $EXCELFiles$ | ||
- | else | ||
- | Set $EXCELFiles$ | ||
- | endif | ||
- | if not ($GrooveFiles2$ = "" | ||
- | Set $GrooveFiles2$ | ||
- | else | ||
- | Set $GrooveFiles2$ | ||
- | endif | ||
- | if not ($OUTLOOKFiles$ = "" | ||
- | Set $OUTLOOKFiles$ | ||
- | else | ||
- | Set $OUTLOOKFiles$ | ||
- | endif | ||
- | if not ($PPTFiles$ = "" | ||
- | Set $PPTFiles$ | ||
- | else | ||
- | Set $PPTFiles$ | ||
- | endif | ||
- | if not ($PubPrimary$ = "" | ||
- | Set $PubPrimary$ | ||
- | else | ||
- | Set $PubPrimary$ | ||
- | endif | ||
- | if not ($WORDFiles$ = "" | ||
- | Set $WORDFiles$ | ||
- | else | ||
- | Set $WORDFiles$ | ||
- | endif | ||
- | if not ($LYNCFiles$ = "" | ||
- | Set $LYNCFiles$ | ||
- | else | ||
- | Set $LYNCFiles$ | ||
- | endif | ||
- | if not ($ONENOTEFiles$ = "" | ||
- | Set $ONENOTEFiles$ | ||
- | else | ||
- | Set $ONENOTEFiles$ | ||
- | endif | ||
- | if not ($VISIOVIEWERFiles$ = "" | ||
- | Set $VISIOVIEWERFiles$ | ||
- | else | ||
- | Set $VISIOVIEWERFiles$ | ||
- | endif | ||
- | if not ($ONEDRIVE$ = "" | ||
- | Set $ONEDRIVE$ | ||
- | else | ||
- | Set $ONEDRIVE$ | ||
- | endif | ||
- | |||
- | if not(HasMinimumSpace (" | ||
- | LogError "Not enough space on %SystemDrive%, | ||
- | isFatalError "Not enough space" | ||
- | else | ||
- | comment " | ||
- | ShowBitmap " | ||
- | |||
- | if ($OfficeArchitecture$ = " | ||
- | Set $OfficeArchitecture$ = " | ||
- | comment " | ||
- | endif | ||
- | |||
- | comment " | ||
- | Message " | ||
- | Files_copy_installfiles | ||
- | |||
- | comment " | ||
- | Files_copy_patchtextfile | ||
- | |||
- | comment " | ||
- | PatchTextFile_config_xml $LogDir$ + " | ||
- | |||
- | Message " | ||
- | |||
- | comment " | ||
- | ChangeDirectory " | ||
- | Winbatch_install | ||
- | Sub_check_exitcode | ||
- | |||
- | comment " | ||
- | Files_clean_installfiles | ||
- | |||
- | endif | ||
- | endif | ||
- | |||
- | [Files_copy_installfiles] | ||
- | copy -s " | ||
- | |||
- | [Files_copy_patchtextfile] | ||
- | copy " | ||
- | |||
- | [Files_clean_installfiles] | ||
- | delete -s " | ||
- | |||
- | [PatchTextFile_config_xml] | ||
- | FindLine "</ | ||
- | InsertLine ' | ||
- | InsertLine ' | ||
- | InsertLine ' | ||
- | InsertLine ' | ||
- | InsertLine ' | ||
- | InsertLine ' | ||
- | InsertLine ' | ||
- | InsertLine ' | ||
- | InsertLine ' | ||
- | InsertLine ' | ||
- | InsertLine ' | ||
- | InsertLine ' | ||
- | InsertLine ' | ||
- | InsertLine ' | ||
- | InsertLine ' | ||
- | InsertLine ' | ||
- | InsertLine ' | ||
- | InsertLine ' | ||
- | InsertLine ' | ||
- | InsertLine ' | ||
- | InsertLine '< | ||
- | |||
- | [Winbatch_install] | ||
- | " | ||
- | |||
- | [Sub_check_exitcode] | ||
- | comment "Test for installation success via exit code" | ||
- | set $ExitCode$ = getLastExitCode | ||
- | ; informations to exit codes see | ||
- | ; http:// | ||
- | ; http:// | ||
- | if ($ExitCode$ = " | ||
- | comment "Looks good: setup program gives exitcode zero" | ||
- | else | ||
- | comment "Setup program gives a exitcode unequal zero: " + $ExitCode$ | ||
- | if ($ExitCode$ = " | ||
- | comment " | ||
- | comment " | ||
- | else | ||
- | if ($ExitCode$ = " | ||
- | comment "looks good: setup program gives exitcode 1641" | ||
- | comment " | ||
- | else | ||
- | if ($ExitCode$ = " | ||
- | comment "looks good: setup program gives exitcode 3010" | ||
- | comment " | ||
- | else | ||
- | logError " | ||
- | isFatalError | ||
- | endif | ||
- | endif | ||
- | endif | ||
- | endif | ||
- | </ | ||
- | |||
- | ==== office_config.xml ==== | ||
- | <code xml> | ||
- | </ | ||
- | |||
- | <!-- Config Datei wird durch OPSI dynamisch generiert ... don't edit !!! --> | ||
- | </ | ||
- | |||
- | ==== uninstall.opsiscript ==== | ||
- | <code winst> | ||
- | [Actions] | ||
- | requiredWinstVersion >= " | ||
- | |||
- | DefVar $LogDir$ | ||
- | DefVar $ProductId$ | ||
- | DefVar $ProductName$ | ||
- | DefVar $OfficeId$ | ||
- | |||
- | DefVar $MinimumSpace$ | ||
- | DefVar $InstallDir$ | ||
- | DefVar $InstallPfad$ | ||
- | DefVar $SystemType$ | ||
- | DefVar $Config_Product$ | ||
- | DefVar $Language$ | ||
- | DefVar $ExitCode$ | ||
- | |||
- | |||
- | ; ---------------------------------------------------------------- | ||
- | ; - Please edit the following values | ||
- | ; ---------------------------------------------------------------- | ||
- | Set $LogDir$ | ||
- | Set $ProductId$ | ||
- | Set $ProductName$ | ||
- | Set $OfficeId$ | ||
- | Set $InstallDir$ = " | ||
- | Set $SystemType$ = GetSystemType | ||
- | |||
- | ;Variablen zum patchen der office_remove.xml | ||
- | Set $Config_Product$ = '< | ||
- | Set $Language$ = '< | ||
- | |||
- | ; ---------------------------------------------------------------- | ||
- | |||
- | if CompareDotSeparatedNumbers(GetMsVersionInfo," | ||
- | LogError "This is for NT 6 (Vista) and above" | ||
- | isFatalError | ||
- | else | ||
- | comment " | ||
- | ShowBitmap " | ||
- | |||
- | comment " | ||
- | Files_copy_patchtextfile | ||
- | |||
- | comment " | ||
- | PatchTextFile_remove_xml $LogDir$ + " | ||
- | |||
- | Message " | ||
- | |||
- | comment "Start setup program" | ||
- | ChangeDirectory " | ||
- | Winbatch_remove | ||
- | endif | ||
- | |||
- | [Files_copy_patchtextfile] | ||
- | copy " | ||
- | |||
- | [PatchTextFile_remove_xml] | ||
- | FindLine "</ | ||
- | InsertLine ' | ||
- | InsertLine ' | ||
- | InsertLine ' | ||
- | InsertLine ' | ||
- | InsertLine ' | ||
- | InsertLine '< | ||
- | |||
- | [Winbatch_remove] | ||
- | " | ||
- | </ | ||
- | |||
- | |||
- | ==== control ==== | ||
- | <code winst> | ||
- | [Package] | ||
- | version: 1 | ||
- | depends: | ||
- | incremental: | ||
- | |||
- | [Product] | ||
- | type: localboot | ||
- | id: office2016 | ||
- | name: Office 365 | ||
- | description: | ||
- | advice: | ||
- | version: 1.0 | ||
- | priority: 0 | ||
- | licenseRequired: | ||
- | productClasses: | ||
- | setupScript: | ||
- | uninstallScript: | ||
- | updateScript: | ||
- | alwaysScript: | ||
- | onceScript: | ||
- | customScript: | ||
- | userLoginScript: | ||
- | |||
- | [ProductProperty] | ||
- | type: unicode | ||
- | name: architecture | ||
- | multivalue: False | ||
- | editable: False | ||
- | description: | ||
- | values: [" | ||
- | default: [" | ||
- | |||
- | [ProductProperty] | ||
- | type: unicode | ||
- | name: officeid | ||
- | multivalue: False | ||
- | editable: True | ||
- | description: | ||
- | values: [" | ||
- | default: [" | ||
- | |||
- | [ProductProperty] | ||
- | type: unicode | ||
- | name: Sprache | ||
- | multivalue: False | ||
- | editable: True | ||
- | description: | ||
- | values: [" | ||
- | default: [" | ||
- | |||
- | [ProductProperty] | ||
- | type: unicode | ||
- | name: Updatekanal | ||
- | multivalue: False | ||
- | editable: True | ||
- | description: | ||
- | values: [" | ||
- | default: [" | ||
- | |||
- | [ProductProperty] | ||
- | type: unicode | ||
- | name: Updates | ||
- | multivalue: False | ||
- | editable: False | ||
- | description: | ||
- | values: [" | ||
- | default: [" | ||
- | |||
- | [ProductProperty] | ||
- | type: unicode | ||
- | name: Installationsdateien | ||
- | multivalue: False | ||
- | editable: True | ||
- | description: | ||
- | values: [" | ||
- | default: [" | ||
- | |||
- | [ProductProperty] | ||
- | type: unicode | ||
- | name: Updatedateien | ||
- | multivalue: False | ||
- | editable: True | ||
- | description: | ||
- | values: [" | ||
- | default: ["" | ||
- | |||
- | [ProductProperty] | ||
- | type: unicode | ||
- | name: Auto_Aktivierung | ||
- | multivalue: False | ||
- | editable: False | ||
- | description: | ||
- | values: [" | ||
- | default: [" | ||
- | |||
- | [ProductProperty] | ||
- | type: unicode | ||
- | name: products | ||
- | multivalue: True | ||
- | editable: False | ||
- | description: | ||
- | values: [" | ||
- | default: [" | ||
- | </ | ||
- | |||
- | ===== Office Deployment Tool ===== | ||
- | Übersicht von dem MS Office Deployment Tool / Overview about MS ODT | ||
- | * [[https:// | ||
- | * [[https:// | ||
- | |||