vorerst einmal Sorry für diese Nichtsaussagende Überschrift, Da ich selbst noch ziemlich neu bin bei OPSI, wusst ich nicht so recht, wie ich das Formulieren sollte
ich bin jetzt schon ein wenig in Opsi drinne und möchte grade ein Ganz einfaches Programm in Batch schreiben, welches mir mit einer .exe oder .msi direkt ein fertiges Opsi-Paket erstellt.
Bei der Batch hab ich mehr oder Weniger keine Probleme, jedoch scheitert es schon dabei, ein OPSI-Paket zu erstellen.
Vorerst meine Ordnerstruktur:
\Firefox
-----------\CLIENT_DATA
------------------------------\install.ins
------------------------------\setup.exe
-----------\OPSI
-------------------\control
-------------------\postinst
-------------------\preinst
Und nun die jeweiligen Quellcodes:
install.ins
Code: Alles auswählen
[Aktion]
Set $pfad$ = "%Systemdrive%\tmp"
comment "execute Batch"
Files_copy
DosInAnIcon_batch
[Files_copy]
copy %scriptpath%\setup.* $pfad$
[DosInAnIcon_batch]
@echo off
cd C:/tmp
setup.exe /quiet
Code: Alles auswählen
[Package]
version: 1
depends:
incremental: False
[Product]
type: localboot
id: firefox
name: Firefox.name
description: beschreib
advice:
version: 53.0.2
priority: 0
licenseRequired: False
productClasses:
setupScript: install.ins
uninstallScript:
updateScript:
alwaysScript:
onceScript:
customScript:
userLoginScript:
[Changelog]
* Initial package
-- ---- IT it(add)----.de
Code: Alles auswählen
#! /bin/bash
#
# postinst script
# This script executes after unpacking files from that archive and registering the product at the depot.
#
# The following environment variables can be used to obtain information about the current installation:
# PRODUCT_ID: id of the current product
# CLIENT_DATA_DIR: directory which contains the installed client data
#
Code: Alles auswählen
#! /bin/bash
#
# preinst script
# This script executes before that package will be unpacked from its archive file.
#
# The following environment variables can be used to obtain information about the current installation:
# PRODUCT_ID: id of the current product
# CLIENT_DATA_DIR: directory where client data will be installed
#
Vllt könnt ihr mir ja helfen ^^ Ich bin auch gerne Bereit, den Titel zu ändern, sodass der Forumeintrag leichter zu finden ist.
Wenn jemand Interesse an dem Batch-Programm hat, das könnt ich auch noch Nachträglich posten ^^
Mit allerfreundlichsten Grüßen,
Seeeeb