Office 2019 Proplus Opsi-Paket erstellen

Antworten
Jannyjoker
Beiträge: 3
Registriert: 18 Mai 2018, 17:17

Office 2019 Proplus Opsi-Paket erstellen

Beitrag von Jannyjoker »

Moin,

ich habe Probleme beim erstellen das Paketes für Microsoft Office 2019. Bisher habe ich immer "EMCO MSI Converter" benutzt. Da kann wenn man nicht alles ausstellt schon ziemlich viel Schrott mitkommen.
Da ich schon im Forum gelesen habe, dass es bei Office 2019 erschwert ist ein Paket zu erstellen, würde ich das ganze dann über ein Script installieren lassen. Bisher mache ich das über ein Batch-Script, wobei ich dieses bei jedem Client einzeln installieren muss. Wie bekomme ich das Batch-Script zu einer .opsi Datei, damit ich viele Office 2019 Installationen durchführen kann?

Das Batch Script ist ein sehr simples:

Start /wait xcopy "\\10.0.1.60\opsi_depot\microsoftoffice2019instdatein\setup.exe" "C:\tmp"
Start /wait xcopy "\\10.0.1.60\opsi_depot\microsoftoffice2019instdatein\conf-2019-x64.xml" "C:\tmp"
start /wait C:\tmp\setup.exe /download C:\tmp\conf-2019-x64.xml
start /wait C:\tmp\setup.exe /configure C:\tmp\conf-2019-x64.xml

Viele Grüße
Jannyjoker

P.S. ich bin sehr neu in dieser coolen Welt!
alnas
Beiträge: 11
Registriert: 03 Feb 2020, 09:46

Re: Office 2019 Proplus Opsi-Paket erstellen

Beitrag von alnas »

Hallo,
ich verteile Office 2019 über OPSI.
es geht eigentlich problemlos.
Zuerst downloaden "Setup.exe /download office-download.xml" --> OPSI Paket erstellen:

[Winbatch_install_office]
%ScriptPath%\Setup.exe /configure %ScriptPath%\install-Office2019_pro.xml

das was es
Viel Erfolg
r4tzeblitz
Beiträge: 66
Registriert: 17 Sep 2015, 17:55

Re: Office 2019 Proplus Opsi-Paket erstellen

Beitrag von r4tzeblitz »

Es ist zwar nicht mehr so einfach und komfortabel wie bei den alten MSI basierten Office Installationen, aber der Weg von alnas klappt wunderbar.
Die DeInstallation erfolgt dann auch durch eine XML Steuerdatei Datei.
nurweilesgeht
Beiträge: 3
Registriert: 02 Mär 2020, 18:00

Re: Office 2019 Proplus Opsi-Paket erstellen

Beitrag von nurweilesgeht »

Moin!

Meine "setup.opsiscript" sieht folgendermaßen aus:
[Winbatch_install_office]
\\ipvomserver\opsi_depot\office2019\Setup.exe /download \\10.0.1.60\opsi_depot\office2019\conf-2019-x64.xml
\\ipvomserver\opsi_depot\office2019\Setup.exe /configure \\10.0.1.60\opsi_depot\office2019\conf-2019-x64.xml
Diese habe ich mit dem "OPSI Package Builder" gepackt und das Opsi-Paket auf dem Server installiert.

Datails vom Log: "[1] [Mrz 02 19:56:47:481] [office2019] script finished: success"
Allerdings bricht das Script ohne weiteres ab und sendet ein "success" an den Server.

Was habe ich falsch gemacht?

Viele Grüße
Jannyjoker
Jan.Schmidt
Beiträge: 439
Registriert: 08 Jul 2017, 12:02

Re: Office 2019 Proplus Opsi-Paket erstellen

Beitrag von Jan.Schmidt »

nurweilesgeht hat geschrieben:Moin!

Meine "setup.opsiscript" sieht folgendermaßen aus:
[Winbatch_install_office]
\\ipvomserver\opsi_depot\office2019\Setup.exe /download \\10.0.1.60\opsi_depot\office2019\conf-2019-x64.xml
\\ipvomserver\opsi_depot\office2019\Setup.exe /configure \\10.0.1.60\opsi_depot\office2019\conf-2019-x64.xml
Moin,

ist das die ganze setup.opsiscript ?
nurweilesgeht
Beiträge: 3
Registriert: 02 Mär 2020, 18:00

Re: Office 2019 Proplus Opsi-Paket erstellen

Beitrag von nurweilesgeht »

Moin moin,

wie würde es denn vollständig aussehen? Ich bin selbst noch sehr neu im Opsi-Clientmanagment.

Viele Grüße
jannyjoker
Jan.Schmidt
Beiträge: 439
Registriert: 08 Jul 2017, 12:02

Re: Office 2019 Proplus Opsi-Paket erstellen

Beitrag von Jan.Schmidt »

mindestens das da fehlt.

Code: Alles auswählen

[Actions]
Winbatch_install_office
[Winbatch_install_office]
%ScriptPath%\Setup.exe /download %ScriptPath%\conf-2019-x64.xml
%ScriptPath%\Setup.exe /configure %ScriptPath%\conf-2019-x64.xml
Benutzeravatar
CKoehler
Beiträge: 35
Registriert: 14 Sep 2015, 21:12
Wohnort: Braunschweig

Re: Office 2019 Proplus Opsi-Paket erstellen

Beitrag von CKoehler »

Moin,
alnas hat geschrieben: Zuerst downloaden "Setup.exe /download office-download.xml" --> OPSI Paket erstellen:

[Winbatch_install_office]
%ScriptPath%\Setup.exe /configure %ScriptPath%\install-Office2019_pro.xml

das was es
Das kommt auf die Konfiguration der .xml-file drauf an. ;-)
nurweilesgeht hat geschrieben: wie würde es denn vollständig aussehen? Ich bin selbst noch sehr neu im Opsi-Clientmanagment.
Dann schau dir am Besten mal in Ruhe die Dokumentation an. Es dauert ggf. etwas, ist aber durchaus sehr hilfreich!
Manuals-Übersicht: https://www.opsi.org/documentationco/manuals/
opsi-Getting-Started: https://download.uib.de/opsi4.1/documen ... -v4.1.html
das komplette opsi-script Manual: http://download.uib.de/opsi_stable/doc/ ... anual.html
opsi-script reference-card: http://download.uib.de/opsi_stable/doc/ ... -card.html

Ich nutze nun schon einige Jahre opsi und muss trotzdem immer wieder reinschauen. Man kann sich halt nicht alles merken. Aber oft hilft es, zu wissen wo es steht.
Jan.Schmidt hat geschrieben:mindestens das da fehlt.

Code: Alles auswählen

[Actions]
Winbatch_install_office
[Winbatch_install_office]
%ScriptPath%\Setup.exe /download %ScriptPath%\conf-2019-x64.xml
%ScriptPath%\Setup.exe /configure %ScriptPath%\conf-2019-x64.xml
Dem stimme ich zu. Bei vielen Installationsdateien empfehle ich diese in den Ordner files auszulagern. Auf der Workbench würde die Struktur wie folgt aussehen:

Code: Alles auswählen

/path/to/workbench/office2019/CLIENT_DATA/files/Setup.exe
/path/to/workbench/office2019/CLIENT_DATA/files/conf-2019-x64.xml
/path/to/workbench/office2019/CLIENT_DATA/setup.opsiscript
...
In deinem setup.opsiscript wäre der Pfad dann anzupassen:

Code: Alles auswählen

[Winbatch_install_office]
%ScriptPath%\files\Setup.exe /download %ScriptPath%\files\conf-2019-x64.xml
%ScriptPath%\files\Setup.exe /configure %ScriptPath%\files\conf-2019-x64.xml
Du könntest auch mit weiteren Variablen Arbeiten, die dir später evtl. Arbeit ersparen, falls es noch um versch. Optionen erweitert werden soll:

Code: Alles auswählen

[Actions]
DefVar $setupfile$
DefVar $x64conf$
DefVar $x86conf$
Set $setupfile$ = %ScriptPath% + "\files\Setup.exe"
Set $x64conf$ = %ScriptPath% + "\files\conf-x64.xml"
Set $x86conf$ = %ScriptPath% + "\files\conf-x86.xml"

Winbatch_install_office

[Winbatch_install_office]
$setupfile$ /download $x64conf$
$setupfile$ /configure $x64conf$
Grüße
Christopher
Let's try something new: opsi-docker
Antworten