1 . Ich kopiere ein Script z.B. wie unten Acrobat Reader 8 vom Winst-Script Wiki.
2. [Unklar] Wohin kopiere ich es, was gebe ich für eine Dateiendung?
3. [Unklar] .exe oder .msi files heruterladen und in CLIENT_DATA kopieren. Wo ist das?
4. (newprod, makeproductfile, opsi-package-manager -i) machen. Denke das sollte ich hinbringen.
5. Variable %scriptpath% wo ist die definiert?
Code: Alles auswählen
cQualified for opsi 3.2
---------------------------------------------------------------------
; Copyright (c) uib gmbh (www.uib.de)
; This sourcecode is owned by uib
; and published under the Terms of the General Public License.
; Acrobat Standard 8.x
; http://www.appdeploy.com/packages/detail.asp?id=931
; Acrobat Professional 8.x
; http://www.appdeploy.com/packages/detail.asp?id=937
; read setup.ini ; abcpy.ini
; use Adobe Customization Wizard to create a transform
; 860MB of available hard-disk space; cache for optional installation files (recommended) requires an additional 460MB of available hard-disk space
[Initial]
Message= Installiere Adobe Acrobat...
LogLevel=2
ExitOnError=false
ScriptErrorMessages=on
TraceMode=off
StayOnTop=false
[Aktionen]
DefVar $UninstallCommand$
DefVar $DisplayName$
DefVar $UninstallReg$
set $UninstallReg$="[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"
DefVar $MsiCode$
DefVar $DesktopIconName$
DefVar $SCRIPTPATH$
Set $SCRIPTPATH$ = "%SCRIPTPATH%"
DefVar $ProgramFilesDir$
Set $ProgramFilesDir$ = "%ProgramFilesDir%"
DefVar $LOCATION_EXE$
Set $LOCATION_EXE$ = $ProgramFilesDir$+"\Adobe\Acrobat 8.0\Acrobat\Acrobat.exe"
requiredWinstVersion >= "4.4"
DefStringList $languageInfo$
set $languageInfo$ = getLocaleInfo
; we have a 5 elements String List. In the log file we get
; retrieving strings from getLocaleInfo:
; (string 0)DE
; (string 1)DEU
; (string 2)German
; (string 3)Germany
; (string 4)0407
; We may now construct scripts for conditionial statements (cf. section 6.7) like
DefVar $LANGUAGE_VER$
Set $LANGUAGE_VER$ = takeString(0, $languageInfo$)
DefVar $MSI_FILE_LOC$
DefVar $TRANSFORM_FILE$
DefVar $TRANSFORM_FILE_2$
DefVar $MSI_FILE$
Set $MSI_FILE$ = "\acropro.msi"
DefVar $FROM_LOCATION$
Set $FROM_LOCATION$ = $SCRIPTPATH$ + "\files\Adobe_8"
Set $TRANSFORM_FILE$ = "" + $FROM_LOCATION$ + "\bern.mst" + ""
Set $TRANSFORM_FILE$ = "" + $FROM_LOCATION$ + "\acropro.mst" + ""
Set $TRANSFORM_FILE_2$ = "" + $FROM_LOCATION$ + "\1031.mst" + ""
if ( $LANGUAGE_VER$ = "DE")
; install German version
Set $MSI_FILE_LOC$ = "" + $FROM_LOCATION$ + $MSI_FILE$ + ""
else
logError="Language not supported Installation failed"
isFatalError
endif
DefVar $LOG_LOCATION$
Set $LOG_LOCATION$ = "c:\tmp\adobeprof.txt"
DefVar $OS
set $OS=GetOS
DefVar $MinorOS$
set $MinorOS$ = GetNTVersion
if ( $MinorOS$ = "Win2K" OR $MinorOS$ = "WinXP" OR $MinorOS$ = "Win NT 5.2" OR $MinorOS$ = "Windows Vista" )
if not (HasMinimumSpace ("%SYSTEMDRIVE%", "1800 MB"))
LogError "Nicht genügend Platz auf C: . 1800 MB auf C: für Adobe Acrobat erforderlich."
else
ShowBitmap /3 "%SCRIPTPATH%\acrobat.bmp" "Adobe Acrobat Professional"
; already in mshotfix install msiexec 3.1
;WinBatch_msi31
Message "Installing Acrobat Acrobat Professional 8"
WinBatch_akt_acrowrit8_installieren
; update 8.1.0
Message "Update 8.10 dauert.. Acrobat Acrobat Professional"
WinBatch_akt_acrowrit8_update_810
; update 8.1.1
Message "Update 8.11 dauert ... Acrobat Acrobat Professional"
WinBatch_akt_acrowrit8_update_811
Message "Update 8.12 dauert ... Acrobat Acrobat Professional"
WinBatch_akt_acrowrit8_update_812
; security update 2006-06 im update-script
; winbatch_acroread_update812
if not(FileExists($LOCATION_EXE$))
logError="Installation failed"
isFatalError
endif
endif
ExitWindows /RebootWanted
endif
; aktueller acroread
[WinBatch_akt_acrowrit8_installieren]
;msiexec /qb-! /l* $LOG_LOCATION$ /i "$MSI_FILE_LOC$" REBOOT=ReallySuppress EULA_ACCEPT=YES SUPPRESS_APP_LAUNCH=YES TRANSFORMS="$TRANSFORM_FILE$"
;msiexec /i AcroPro.msi TRANSFORMS="AcroPro.mst" /qb /L*v c:\acrobat.log
;msiexec /i "$MSI_FILE_LOC$" TRANSFORMS="$TRANSFORM_FILE$" /qb /L*v $LOG_LOCATION$ REINSTALLMODE=omus REINSTALL=ALL REBOOT=Suppress /qb-!
msiexec /qb-! /l* $LOG_LOCATION$ /i "$MSI_FILE_LOC$" TRANSFORMS="$TRANSFORM_FILE$;$TRANSFORM_FILE_2$" REINSTALLMODE=omus
[WinBatch_akt_acrowrit8_update_810]
msiexec /p [color=#FF0000]"%SCRIPTPATH%[/color]\files\Adobe_8_updates\AcrobatUpd810_efgj_incr.msp" /qn /log c:\tmp\adobeacrobat81.log
[WinBatch_akt_acrowrit8_update_811]
msiexec /p [color=#FF0000]"%SCRIPTPATH%\[/color]files\Adobe_8_updates\AcrobatUpd811_all_incr.msp" /qn /log c:\tmp\adobeacrobat811.log
[WinBatch_akt_acrowrit8_update_812]
msiexec /p [color=#FF0000]"%SCRIPTPATH%\[/color]\files\Adobe_8_updates\AcrobatUpd812_all_incr.msp" /qn /log c:\tmp\adobeacrobat812.log
[winbatch_acroread_update812]
msiexec /qb /l* [color=#FF0000]"%SCRIPTPATH%\[/color]tmp\adobe-reader_update812.txt /i [color=#FF0000]"%SCRIPTPATH%\[/color]\files\AcrobatReaderUpd812_SU1_all.msi" REBOOT=ReallySuppress