Wollte heute mein erstes Software Packet erstellen und hab mich dabei mal ziemlich an das Beispielskript aus der WINST Doku gehalten.
Zuvor habe ich natürlich mit opsi-newprod ein neues Produkt erstellt, sowie die nötigen setup.exes in die dazugehörigen Verzeichnisse unter CLIENT_DATA kopiert.
Danach mit opsi-makeproductfile die .opsi Datei erstellt um sie dann mit opsi-packet-manager erfolgreich zu installieren.
Nun wollte ich also das Packet auf den ersten Client ausrollen, jedoch kommt die Fehlermeldung:
Code: Alles auswählen
Sektion Aktionen(Kommands in Zeile 6):
$OS$ = GetOS
Variable Unbekannt
Code: Alles auswählen
firefox\
CLIENT_DATA\
setup.ins
uninstall.ins
files\
firefoxsetup.exe
OPSI\
control
postinst (unverändert)
preinst (unverändert)
SERVER_DATA\ (leer)
Code: Alles auswählen
[Package]
version: 1
depends:
incremental: False
[Product]
type: localboot
id: firefox3.5
name: Firefox
description: Firefox 3.5
advice:
version: 3.5
priority: 0
licenseRequired: False
productClasses:
setupScript: setup.ins
uninstallScript: uninstall.ins
updateScript:
alwaysScript:
onceScript:
Code: Alles auswählen
[Initial]
Message "Installation von Mozilla"
LogLevel=2
[Aktionen]
;Betriebssystem feststellen
DefVar $0S$
Set $OS$ = GetOS
; Windows NT family (inklusive Win2k, WinXP)
; oder Win95 (inklusive Win98, WinME)
; oder Linux
;Welche NT-Version?
DefVar $NTVersion$
if $OS$ = "Windows_95"
Sub_install_win95
else
Set $NTVersion$ = GetNTVersion
; hat die Werte "NT4" oder "Win2k" oder "WinXP"
; oder "Win NT " + majorVersion + "." + minorVersion
if ( $NTVersion$ = "NT4" ) or ( $NTVersion$ = "Win2k" )
sub_install_winnt
else
if ( $NTVersion$ = "WinXP" )
sub_install_winXP
else
stop "Keine unterstüBetriebssystem-Version"
endif
endif
else
stop "Betriebssystem wird nicht unterstüendif
[sub_install_win95]
Files_Kopieren_95
WinBatch_Setup
[sub_install_winNT]
Files_Kopieren_NT
WinBatch_Setup
[sub_install_winXP]
Files_Kopieren_XP
WinBatch_SetupXP
[Files_Kopieren_95]
copy "%scriptpath%\files_win95\*.*" "c:\temp\installation"
[Files_Kopieren_XP]
copy "%scriptpath%\files\*.*" "c:\temp\installation"
[WinBatch_Setup]
c:\temp\installation\setup.exe
[WinBatch_SetupXP]
c:\temp\installation\firefoxsetup.exe
Jemand eine Idee wo das Problem liegt?
Mfg