User Tools

Site Tools


userspace:adobe_reader_fontpacks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
userspace:adobe_reader_fontpacks [2011/10/07 06:45]
Der-Matze
userspace:adobe_reader_fontpacks [2012/09/27 10:20]
darpakiss [Uninstall.ins]
Line 1: Line 1:
 ====== Adobe Reader X Fontpacks ====== ====== Adobe Reader X Fontpacks ======
 +Script by Der-Matze \\
 +Comments and improvements welcome \\
  
 Tested with opsi 4.0.1 \\ Tested with opsi 4.0.1 \\
Line 6: Line 8:
  
 Installation / Uninstallation Script for Adobe Reader X Fontpacks \\ Installation / Uninstallation Script for Adobe Reader X Fontpacks \\
 +This script uses the check_msi-exitcode script: https://forum.opsi.org/wiki/userspace:check_msi-exitcode \\
  
 The installation files can be downloaded from: http://www.adobe.com/support/downloads/product.jsp?product=10&platform=Windows (you might need to apply for a distribution license!) The installation files can be downloaded from: http://www.adobe.com/support/downloads/product.jsp?product=10&platform=Windows (you might need to apply for a distribution license!)
Line 14: Line 17:
  
 [Initial] [Initial]
- 
- 
- 
 ;Standard Text, der während der Installation angezeigt wird ;Standard Text, der während der Installation angezeigt wird
- 
  Message = Bitte warten, das Produkt wird installiert  Message = Bitte warten, das Produkt wird installiert
- 
- 
- 
- 
- 
- 
- 
 ;Loglevel einstellen ;Loglevel einstellen
- 
  setLogLevel = 6  setLogLevel = 6
- 
- 
- 
- 
- 
- 
- 
 ;Bei Fehlern abbrechen ;Bei Fehlern abbrechen
- 
  ExitOnError=false  ExitOnError=false
- 
- 
- 
- 
- 
- 
- 
 ;Syntax Fehler werden in einem separaten Fenster angezeigt ;Syntax Fehler werden in einem separaten Fenster angezeigt
- 
  ScriptErrorMessages=on  ScriptErrorMessages=on
- 
- 
- 
- 
- 
- 
- 
 ;Single-Step Mode nicht verwenden ;Single-Step Mode nicht verwenden
- 
  TraceMode=off  TraceMode=off
- 
- 
- 
- 
- 
- 
- 
 ;Im Batchmode das Winst-Fenster nicht im Vordergrund anzeigen ;Im Batchmode das Winst-Fenster nicht im Vordergrund anzeigen
- 
  StayOnTop=false  StayOnTop=false
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
  
 [Actions] [Actions]
- 
- 
- 
 ;Variable für die Ermittlung des Betriebssystems ;Variable für die Ermittlung des Betriebssystems
- 
  DefVar $OS$  DefVar $OS$
- 
  set $OS$ = GetOS  set $OS$ = GetOS
- 
- 
- 
- 
- 
- 
- 
 ;Variable für die Ermittlung der Betriebssystem Unterversion ;Variable für die Ermittlung der Betriebssystem Unterversion
- 
  DefVar $NTVersion$  DefVar $NTVersion$
- 
  set $NTVersion$ = GetNTVersion  set $NTVersion$ = GetNTVersion
- 
- 
- 
- 
- 
- 
- 
 ;Name des Produkts (max. 12 Zeichen) ;Name des Produkts (max. 12 Zeichen)
- 
  DefVar $ProductName$  DefVar $ProductName$
- 
  Set $ProductName$ = "Adobe Reader"  Set $ProductName$ = "Adobe Reader"
- 
- 
- 
- 
- 
- 
- 
 ;Dateiname des Produktbildes mit Erweiterung ;Dateiname des Produktbildes mit Erweiterung
- 
  DefVar $ProductPicture$  DefVar $ProductPicture$
- 
  Set $ProductPicture$ = "AdobeReader.png"  Set $ProductPicture$ = "AdobeReader.png"
- 
- 
- 
- 
- 
- 
- 
 ;Die Variable zur Auswertung des ExitCodes ;Die Variable zur Auswertung des ExitCodes
- 
  DefVar $ExitCode$  DefVar $ExitCode$
- 
- 
- 
- 
- 
- 
- 
 ;Vollständiger Produktname incl. Versionsnummer ;Vollständiger Produktname incl. Versionsnummer
- 
  DefVar $ProductNameFull1$  DefVar $ProductNameFull1$
- 
  set $ProductNameFull1$ = "Extended Languages Font Pack for Adobe Reader 10"  set $ProductNameFull1$ = "Extended Languages Font Pack for Adobe Reader 10"
- 
- 
- 
- 
- 
- 
- 
  DefVar $ProductNameFull2$  DefVar $ProductNameFull2$
- 
  set $ProductNameFull2$ = "Japanese Font Pack for Adobe Reader 10"  set $ProductNameFull2$ = "Japanese Font Pack for Adobe Reader 10"
- 
- 
- 
- 
- 
- 
- 
  DefVar $ProductNameFull3$  DefVar $ProductNameFull3$
- 
  set $ProductNameFull3$ = "Korean Font Pack for Adobe Reader 10"  set $ProductNameFull3$ = "Korean Font Pack for Adobe Reader 10"
- 
- 
- 
- 
- 
- 
- 
  DefVar $ProductNameFull4$  DefVar $ProductNameFull4$
- 
  set $ProductNameFull4$ = "Chinese Simplified Font Pack for Adobe Reader 10"  set $ProductNameFull4$ = "Chinese Simplified Font Pack for Adobe Reader 10"
- 
- 
- 
- 
- 
- 
- 
  DefVar $ProductNameFull5$  DefVar $ProductNameFull5$
- 
  set $ProductNameFull5$ = "Chinese Traditional Font Pack for Adobe Reader 10"  set $ProductNameFull5$ = "Chinese Traditional Font Pack for Adobe Reader 10"
- 
- 
- 
- 
- 
- 
- 
 ;Dateinamen der zu installierenden MSI-Pakete ;Dateinamen der zu installierenden MSI-Pakete
- 
  DefVar $Executable1$  DefVar $Executable1$
- 
  Set $Executable1$ = "FontPack1000_Xtd_Lang.msi"  Set $Executable1$ = "FontPack1000_Xtd_Lang.msi"
- 
- 
- 
- 
- 
- 
- 
  DefVar $Executable2$  DefVar $Executable2$
- 
  Set $Executable2$ = "FontPack1000_ja_JP.msi"  Set $Executable2$ = "FontPack1000_ja_JP.msi"
- 
- 
- 
- 
- 
- 
- 
  DefVar $Executable3$  DefVar $Executable3$
- 
  Set $Executable3$ = "FontPack1000_ko_KR.msi"  Set $Executable3$ = "FontPack1000_ko_KR.msi"
- 
- 
- 
- 
- 
- 
- 
  DefVar $Executable4$  DefVar $Executable4$
- 
  Set $Executable4$ = "FontPack1000_zh_CN.msi"  Set $Executable4$ = "FontPack1000_zh_CN.msi"
- 
- 
- 
- 
- 
- 
- 
  DefVar $Executable5$  DefVar $Executable5$
- 
  Set $Executable5$ = "FontPack1000_zh_TW.msi"  Set $Executable5$ = "FontPack1000_zh_TW.msi"
- 
- 
- 
- 
- 
- 
- 
 ;Prüfen der Winst Version ;Prüfen der Winst Version
- 
  requiredWinstVersion >= "4.11"  requiredWinstVersion >= "4.11"
- 
- 
- 
- 
- 
- 
- 
 ;Anzeigen der Installationsbenachrichtigung incl. des vollen Produktnamens ;Anzeigen der Installationsbenachrichtigung incl. des vollen Produktnamens
- 
  Message "Installiere "+$ProductNameFull1$  Message "Installiere "+$ProductNameFull1$
- 
- 
- 
- 
- 
- 
- 
 ;$ProductPicture$ und $ProductName$ anzeigen ;$ProductPicture$ und $ProductName$ anzeigen
- 
  ShowBitmap /3 "%scriptpath%\" + $ProductPicture$ $ProductName$  ShowBitmap /3 "%scriptpath%\" + $ProductPicture$ $ProductName$
- 
- 
- 
- 
- 
- 
- 
 ;Freien Speicherplatz ermitteln ;Freien Speicherplatz ermitteln
- 
  if not (HasMinimumSpace ("%SYSTEMDRIVE%", "500 MB"))  if not (HasMinimumSpace ("%SYSTEMDRIVE%", "500 MB"))
- 
  LogError "Nicht genügend Platz auf %SYSTEMDRIVE%"  LogError "Nicht genügend Platz auf %SYSTEMDRIVE%"
- 
  isFatalError  isFatalError
- 
  endif  endif
- 
- 
- 
- 
- 
- 
- 
 ;OS-Version ermitteln ;OS-Version ermitteln
- 
  if ( $NTVersion$ = "Win2K" OR $NTVersion$ = "WinXP" OR $NTVersion$ = "Win NT 5.2" OR $NTVersion$ = "Windows Vista" )  if ( $NTVersion$ = "Win2K" OR $NTVersion$ = "WinXP" OR $NTVersion$ = "Win NT 5.2" OR $NTVersion$ = "Windows Vista" )
- 
- 
- 
- 
- 
- 
- 
  Winbatch_Install_Extended  Winbatch_Install_Extended
- 
  sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins"  sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins"
- 
- 
- 
- 
- 
- 
- 
  Message "Installiere "+$ProductNameFull2$  Message "Installiere "+$ProductNameFull2$
- 
  Winbatch_Install_Japanese  Winbatch_Install_Japanese
- 
  sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins"  sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins"
- 
- 
- 
- 
- 
- 
- 
  Message "Installiere "+$ProductNameFull3$  Message "Installiere "+$ProductNameFull3$
- 
  Winbatch_Install_Korean  Winbatch_Install_Korean
- 
  sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins"  sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins"
- 
- 
- 
- 
- 
- 
- 
  Message "Installiere "+$ProductNameFull4$  Message "Installiere "+$ProductNameFull4$
- 
  Winbatch_Install_Chinese_Simplified  Winbatch_Install_Chinese_Simplified
- 
  sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins"  sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins"
- 
- 
- 
- 
- 
- 
- 
  Message "Installiere "+$ProductNameFull5$  Message "Installiere "+$ProductNameFull5$
- 
  Winbatch_Install_Chinese_Traditional  Winbatch_Install_Chinese_Traditional
- 
  sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins"  sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins"
- 
- 
- 
- 
- 
- 
- 
  else  else
- 
  LogError "Kein kompatibles Betriebssystem installiert"  LogError "Kein kompatibles Betriebssystem installiert"
- 
  isFatalError  isFatalError
  
  endif  endif
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
  
 [Winbatch_Install_Extended] [Winbatch_Install_Extended]
- 
- 
- 
  msiexec.exe /i "%SCRIPTPATH%\$Executable1$" /qb-!  msiexec.exe /i "%SCRIPTPATH%\$Executable1$" /qb-!
- 
- 
- 
- 
- 
- 
  
 [Winbatch_Install_Japanese] [Winbatch_Install_Japanese]
- 
- 
- 
  msiexec.exe /i "%SCRIPTPATH%\$Executable2$" /qb-!  msiexec.exe /i "%SCRIPTPATH%\$Executable2$" /qb-!
- 
- 
- 
- 
- 
- 
  
 [Winbatch_Install_Korean] [Winbatch_Install_Korean]
- 
- 
- 
  msiexec.exe /i "%SCRIPTPATH%\$Executable3$" /qb-!  msiexec.exe /i "%SCRIPTPATH%\$Executable3$" /qb-!
- 
- 
- 
- 
- 
- 
  
 [Winbatch_Install_Chinese_Simplified] [Winbatch_Install_Chinese_Simplified]
- 
- 
- 
  msiexec.exe /i "%SCRIPTPATH%\$Executable4$" /qb-!  msiexec.exe /i "%SCRIPTPATH%\$Executable4$" /qb-!
- 
- 
- 
- 
- 
- 
  
 [Winbatch_Install_Chinese_Traditional] [Winbatch_Install_Chinese_Traditional]
- 
- 
- 
  msiexec.exe /i "%SCRIPTPATH%\$Executable5$" /qb-!  msiexec.exe /i "%SCRIPTPATH%\$Executable5$" /qb-!
  
Line 440: Line 122:
  
 [Initial] [Initial]
- 
- 
- 
 ;Standard Text, der während der Deinstallation angezeigt wird ;Standard Text, der während der Deinstallation angezeigt wird
- 
  Message = Bitte warten, das Produkt wird deinstalliert  Message = Bitte warten, das Produkt wird deinstalliert
- 
- 
- 
- 
- 
- 
- 
 ;Loglevel einstellen ;Loglevel einstellen
- 
  setLogLevel = 6  setLogLevel = 6
- 
- 
- 
- 
- 
- 
- 
 ;Bei Fehlern abbrechen ;Bei Fehlern abbrechen
- 
  ExitOnError = false  ExitOnError = false
- 
- 
- 
- 
- 
- 
- 
 ;Syntax Fehler werden in einem separaten Fenster angezeigt ;Syntax Fehler werden in einem separaten Fenster angezeigt
- 
  ScriptErrorMessages = on  ScriptErrorMessages = on
- 
- 
- 
- 
- 
- 
- 
 ;Single-Step Mode nicht verwenden ;Single-Step Mode nicht verwenden
- 
  TraceMode = off  TraceMode = off
- 
- 
- 
- 
- 
- 
- 
 ;Im Batchmode das Winst-Fenster nicht im Vordergrund anzeigen ;Im Batchmode das Winst-Fenster nicht im Vordergrund anzeigen
- 
  StayOnTop = false  StayOnTop = false
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
  
 [Actions] [Actions]
- 
- 
- 
 ;Name des Produkts (max. 12 Zeichen) ;Name des Produkts (max. 12 Zeichen)
- 
  DefVar $ProductName$  DefVar $ProductName$
- 
  Set $ProductName$ = "Adobe Reader"  Set $ProductName$ = "Adobe Reader"
- 
- 
- 
- 
- 
- 
- 
 ;Dateiname des Produktbildes mit Erweiterung ;Dateiname des Produktbildes mit Erweiterung
- 
  DefVar $ProductPicture$  DefVar $ProductPicture$
- 
  Set $ProductPicture$ = "AdobeReader.png"  Set $ProductPicture$ = "AdobeReader.png"
- 
- 
- 
- 
- 
- 
- 
 ;Die Variable zur Auswertung des ExitCodes ;Die Variable zur Auswertung des ExitCodes
- 
  DefVar $ExitCode$  DefVar $ExitCode$
- 
- 
- 
- 
- 
- 
- 
 ;$ProductPicture$ und $ProductName$ anzeigen ;$ProductPicture$ und $ProductName$ anzeigen
- 
  ShowBitmap /3 "%scriptpath%\" + $ProductPicture$ $ProductName$  ShowBitmap /3 "%scriptpath%\" + $ProductPicture$ $ProductName$
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
  
 sub "%ScriptPath%\SubUninstall.ins" sub "%ScriptPath%\SubUninstall.ins"
- 
 </code> </code>
  
userspace/adobe_reader_fontpacks.txt · Last modified: 2021/08/23 08:37 (external edit)