Ich habe hier ein überaus simpel gestricktes Paket erstellt, welches Openoffice 3.2 installieren soll.
Nach Ausführen des Installationsscriptes wird unbeabsichtigt auch das Update-Script ausgeführt und ich wüßte gerne, warum.
Herzlichen Dank für einen Fingerzeig!
Dies sind die Scripte:
Installation:
Code: Alles auswählen
# cat CLIENT_DATA/oo32test.ins
[Initial]
Message=Installiere OpenOffice 3.2 (deutsch)
[Aktionen]
WinBatch_openoffice_silent_install
[WinBatch_openoffice_silent_install]
msiexec /i %SCRIPTPATH%\openofficeorg32.msi /qb
Code: Alles auswählen
# cat CLIENT_DATA/oo32test.upd
[Initial]
Message=Update OpenOffice auf Version 3.2 (deutsch)
[Aktionen]
WinBatch_oldopenoffice_silent_remove
WinBatch_openoffice_silent_install
[WinBatch_oldopenoffice_silent_remove]
msiexec /x {7EC19307-7C22-47A8-922B-3FA965291260} /qb
[WinBatch_openoffice_silent_install]
msiexec /i %SCRIPTPATH%\openofficeorg32.msi /qb
Code: Alles auswählen
# cat CLIENT_DATA/oo32test.uns
[Initial]
Message=Entferne OpenOffice 3.2 (deutsch)
[Aktionen]
WinBatch_openoffice_silent_uninstall
[WinBatch_openoffice_silent_uninstall]
msiexec /x %SCRIPTPATH%\openofficeorg32.msi /qb
Code: Alles auswählen
# cat OPSI/control
[Package]
version: 2
depends:
incremental: False
[Product]
type: localboot
id: openoffice32test
name: Open Office
description: freies Officepaket von Sun/Oracle
advice:
version: 3.2.0
priority: 0
licenseRequired: False
productClasses:
setupScript: oo32test.ins
uninstallScript: oo32test.uns
updateScript: oo32test.upd
alwaysScript:
onceScript:
[ProductDependency]
action: setup
requiredProduct: javavm
requiredStatus: installed
requirementType: before