Installvorlage für MS Office 2016 aus WIKI

Antworten
ulange
Beiträge: 64
Registriert: 15 Apr 2010, 15:05

Installvorlage für MS Office 2016 aus WIKI

Beitrag von ulange »

Hallo,

ich habe mich kürzlich mit der Paketierung von MS Office 2016 beschäftigt.

Als Basis habe ich das Templat aus dem WIKI verwendet.

wiki/doku.php?id=userspace:microsoft_office_2016

Un kommt es bei der Installation über OPSI zu eienr Fehlermeldung, das der die config.xml im temporären Ordner nicht finden kann.
Hier teile aus dem Opsi-Log:

Erstellung / Patch der config.xml:

[6] [Apr 15 09:55:46:001] [office2016] Patching: C:\tmp\config.xml
[5] [Apr 15 09:55:46:001] [office2016] FILE C:\tmp\config.xml
[6] [Apr 15 09:55:46:001] [office2016] Item Pointer set to Top (before first line)
[6] [Apr 15 09:55:46:003] [office2016] No item found containing '</CONFIGURATION>'
[6] [Apr 15 09:55:46:003] [office2016] Inserted item '<OptionState Id="LyncCoreFiles" State="absent" Children="force" />' at position 0
[6] [Apr 15 09:55:46:003] [office2016] Inserted item '<OptionState Id="OneNoteFiles" State="absent" Children="force" />' at position 0
[6] [Apr 15 09:55:46:003] [office2016] Inserted item '<OptionState Id="VisioPreviewerFiles" State="local" Children="force" />' at position 0
[6] [Apr 15 09:55:46:003] [office2016] Inserted item '<OptionState Id="WORDFiles" State="local" Children="force" />' at position 0
[6] [Apr 15 09:55:46:003] [office2016] Inserted item '<OptionState Id="QueryFiles" State="local" Children="force" />' at position 0
[6] [Apr 15 09:55:46:003] [office2016] Inserted item '<OptionState Id="PubPrimary" State="absent" Children="force" />' at position 0
[6] [Apr 15 09:55:46:003] [office2016] Inserted item '<OptionState Id="PPTFiles" State="local" Children="force" />' at position 0
[6] [Apr 15 09:55:46:003] [office2016] Inserted item '<OptionState Id="OUTLOOKFiles" State="absent" Children="force" />' at position 0
[6] [Apr 15 09:55:46:003] [office2016] Inserted item '<OptionState Id="GrooveFiles2" State="absent" Children="force" />' at position 0
[6] [Apr 15 09:55:46:003] [office2016] Inserted item '<OptionState Id="EXCELFiles" State="local" Children="force" />' at position 0
[6] [Apr 15 09:55:46:003] [office2016] Inserted item '<OptionState Id="ACCESSFiles" State="local" Children="force" />' at position 0
[6] [Apr 15 09:55:46:003] [office2016] Inserted item '<COMPANYNAME Value="XXX" />' at position 0
[6] [Apr 15 09:55:46:003] [office2016] Inserted item '<USERNAME Value="" />' at position 0
[6] [Apr 15 09:55:46:003] [office2016] Inserted item '<Setting Id="SETUP_REBOOT" Value="Never" />' at position 0
[6] [Apr 15 09:55:46:003] [office2016] Inserted item '<Logging Type="standard" Path="C:\tmp" Template="Office 2016 Professional Plus_Setup(*).txt" />' at position 0
[6] [Apr 15 09:55:46:003] [office2016] Inserted item '<Display Level="basic" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" />' at position 0
[6] [Apr 15 09:55:46:003] [office2016] Inserted item '<Configuration Product="ProPlus">' at position 0
[6] [Apr 15 09:55:46:007] [office2016] C:\tmp\config.xml saved back with 8 Bit system encoding

Hier der Aufruf und die Fehklermeldung:

[5] [Apr 15 09:55:46:343] [office2016] Execution of Winbatch_install
[6] [Apr 15 09:55:46:349] [office2016] Call ""p:\office2016\x64\setup.exe" /config "C:\tmp\config.xml""
[6] [Apr 15 09:55:46:349] [office2016] Waiting until the called process is finished
[6] [Apr 15 09:55:46:354] [office2016] Start process as invoker: SYSTEM
[6] [Apr 15 09:55:54:946] [office2016] ExitCode -2147024894 Executed process ""p:\office2016\x64\setup.exe" /config "C:\tmp\config.xml""
[6] [Apr 15 09:55:54:949] [office2016]
[6] [Apr 15 09:55:54:949] [office2016] ~~~~~~~ Start Sub ~~~~~~~ Sub_check_exitcode
[5] [Apr 15 09:55:54:950] [office2016] comment: Test for installation success via exit code
[5] [Apr 15 09:55:54:951] [office2016] Set $ExitCode$ = getLastExitCode
[6] [Apr 15 09:55:54:951] [office2016] The value of the variable "$ExitCode$" is now: "-2147024894"
[6] [Apr 15 09:55:54:951] [office2016] If
...
[3] [Apr 15 09:55:54:952] [office2016] Error: Fatal: Setup program gives an unknown exitcode unequal zero: -2147024894

Hat das auch schon jemand beobachtet und ggf. die Lösung fpür mich?

Danke.

Gruss
Ulange
andré
Beiträge: 324
Registriert: 07 Jan 2014, 10:48

Re: Installvorlage für MS Office 2016 aus WIKI

Beitrag von andré »

Zeig mal das entsprechende Skript dazu. Laut Log sucht der in dem config.xml nach </CONFIGURATION>, kann aber entweder das oder die Datei selber nicht finden.

Und das nächste könnte der Inhalt der XML sein.
Ich habe gefühlt ne Ewigkeit gebraucht um das Office 365 zum Laufen zu bekommen, bei mir war die Ursache der XML. Evtl ist das bei deiner Office-Version genauso.

Die Grunddatei sieht so aus:

Code: Alles auswählen

<Configuration>
  <Add SourcePath="\\opsi\opsi_depot\msoffice\x86\" OfficeClientEdition="32" >
    <Product ID="O365ProPlusRetail">
      <Language ID="de-DE" />
    </Product>
  </Add>
  <Display Level="none" AcceptEULA="TRUE" />
</Configuration>
Und dort werden einfach nur alle Programmbestandteile integriert, die nicht installiert werden sollen. Diese zu integrierenden Bestandteile sehen so aus. Sprich, die <ExcludeApp ID="Access" />-Bestandteile sind das Wichtige.

Code: Alles auswählen

;Access weglassen
if not ($ACCESS$ = "")
		Set $ACCESS$  = '<ExcludeApp ID="Access" />'	
endif
;Excel weglassen
if not ($EXCEL$ = "")
		Set $EXCEL$  = '<ExcludeApp ID="Excel" />'
endif
;OneDrive weglassen
if not ($ONEDRIVE$ = "")
		Set $ONEDRIVE$  = '<ExcludeApp ID="OneDrive" />'
endif
;OneDrive for Business weglassen
if not ($GROOVE$ = "")
		Set $GROOVE$  = '<ExcludeApp ID="Groove" />'	
endif
;OneNote weglassen
if not ($ONENOTE$ = "")
		Set $ONENOTE$  = '<ExcludeApp ID="OneNote" />'
endif
;Outlook weglassen
if not ($OUTLOOK$ = "")
		Set $OUTLOOK$  = '<ExcludeApp ID="Outlook" />'
endif
;Powerpoint weglassen
if not ($POWERPOINT$ = "")
		Set $POWERPOINT$  = '<ExcludeApp ID="PowerPoint" />'
endif
;Publisher weglassen
if not ($PUBLISHER$ = "")
		Set $PUBLISHER$  = '<ExcludeApp ID="Publisher" />'
endif
;Skype weglassen
if not ($LYNC$ = "")
		Set $LYNC$  = '<ExcludeApp ID="Lync" />'
endif
;Word weglassen
if not ($WORD$ = "")
		Set $WORD$  = '<ExcludeApp ID="Word" />'
endif
;Visio aktiv installieren, wenn es nicht ausgewählt wurde
if ($VISIO$ = "")
Set $VISIO$ = "install"
		Set $VISIO_Beginn$  = '<Product ID="VisioProRetail">'
		Set $VISIO_Mitte$ = '<Language ID="de-DE" />'					
		Set $VISIO_Ende$ = '</Product>'
endif
ulange
Beiträge: 64
Registriert: 15 Apr 2010, 15:05

Re: Installvorlage für MS Office 2016 aus WIKI

Beitrag von ulange »

Hallo,

die Konfig die erzeugt wird sieht so aus:


<Configuration Product="ProPlus">
<Display Level="basic" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" />
<Logging Type="standard" Path="C:\tmp" Template="Office 2016 Professional Plus_Setup(*).txt" />
<Setting Id="SETUP_REBOOT" Value="Never" />
<USERNAME Value="" />
<COMPANYNAME Value="XXX" />
<OptionState Id="ACCESSFiles" State="local" Children="force" />
<OptionState Id="EXCELFiles" State="local" Children="force" />
<OptionState Id="GrooveFiles2" State="absent" Children="force" />
<OptionState Id="OUTLOOKFiles" State="absent" Children="force" />
<OptionState Id="PPTFiles" State="local" Children="force" />
<OptionState Id="PubPrimary" State="absent" Children="force" />
<OptionState Id="QueryFiles" State="local" Children="force" />
<OptionState Id="WORDFiles" State="local" Children="force" />
<OptionState Id="VisioPreviewerFiles" State="local" Children="force" />
<OptionState Id="OneNoteFiles" State="absent" Children="force" />
<OptionState Id="LyncCoreFiles" State="absent" Children="force" />

Wenn ich das richtig sehen fehlt nach Deinem Hinweis das </Configuration>, oder ??

Gruss
Ulange
andré
Beiträge: 324
Registriert: 07 Jan 2014, 10:48

Re: Installvorlage für MS Office 2016 aus WIKI

Beitrag von andré »

Du hast recht, das </Configuration> fehlt.
Offensichtlich lässt du nur die Datei erstellen, ohne eine xml zu kopieren.
Du hast das Skript nicht mitgeliefert, aber ich schätze mal, dass es eine Grund-XML-Datei im Format

Code: Alles auswählen

<Configuration Product="ProPlus">
</Configuration>
benötigt. Ähnlich wie bei mir.Du kannst einfach ein </Configuration> am Ende mit hinzufügen und den Eintrag FindLine_Containing "</Configuration>" aus deinem Skript nehmen, dann müsste die XML-Datei zumindest von der Syntax funktionieren.
Antworten