This is an old revision of the document!


Adobe Reader X Fontpacks

Script by Der-Matze
Comments and improvements welcome

Tested with opsi 4.0.1
Tested with opsi-winst 4.10.x - 4.11.1.6
Tested with Windows XP Professional and Windows 7 Enterprise x64

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!)

Install.ins

[Initial]
 
 
 
;Standard Text, der während der Installation angezeigt wird
 
	Message = Bitte warten, das Produkt wird installiert
 
 
 
 
 
 
 
;Loglevel einstellen
 
	setLogLevel = 6
 
 
 
 
 
 
 
;Bei Fehlern abbrechen
 
	ExitOnError=false
 
 
 
 
 
 
 
;Syntax Fehler werden in einem separaten Fenster angezeigt
 
	ScriptErrorMessages=on
 
 
 
 
 
 
 
;Single-Step Mode nicht verwenden
 
	TraceMode=off
 
 
 
 
 
 
 
;Im Batchmode das Winst-Fenster nicht im Vordergrund anzeigen
 
	StayOnTop=false
 
 
 
 
 
 
 
 
 
 
 
[Actions]
 
 
 
;Variable für die Ermittlung des Betriebssystems
 
	DefVar $OS$
 
		set $OS$ = GetOS
 
 
 
 
 
 
 
;Variable für die Ermittlung der Betriebssystem Unterversion
 
	DefVar $NTVersion$
 
		set $NTVersion$ = GetNTVersion
 
 
 
 
 
 
 
;Name des Produkts (max. 12 Zeichen)
 
	DefVar $ProductName$
 
		Set $ProductName$ = "Adobe Reader"
 
 
 
 
 
 
 
;Dateiname des Produktbildes mit Erweiterung
 
	DefVar $ProductPicture$
 
		Set $ProductPicture$ = "AdobeReader.png"
 
 
 
 
 
 
 
;Die Variable zur Auswertung des ExitCodes
 
	DefVar $ExitCode$
 
 
 
 
 
 
 
;Vollständiger Produktname incl. Versionsnummer
 
	DefVar $ProductNameFull1$
 
		set $ProductNameFull1$ = "Extended Languages Font Pack for Adobe Reader 10"
 
 
 
 
 
 
 
	DefVar $ProductNameFull2$
 
		set $ProductNameFull2$ = "Japanese Font Pack for Adobe Reader 10"
 
 
 
 
 
 
 
	DefVar $ProductNameFull3$
 
		set $ProductNameFull3$ = "Korean Font Pack for Adobe Reader 10"
 
 
 
 
 
 
 
	DefVar $ProductNameFull4$
 
		set $ProductNameFull4$ = "Chinese Simplified Font Pack for Adobe Reader 10"
 
 
 
 
 
 
 
	DefVar $ProductNameFull5$
 
		set $ProductNameFull5$ = "Chinese Traditional Font Pack for Adobe Reader 10"
 
 
 
 
 
 
 
;Dateinamen der zu installierenden MSI-Pakete
 
	DefVar $Executable1$
 
		Set $Executable1$ = "FontPack1000_Xtd_Lang.msi"
 
 
 
 
 
 
 
	DefVar $Executable2$
 
		Set $Executable2$ = "FontPack1000_ja_JP.msi"
 
 
 
 
 
 
 
	DefVar $Executable3$
 
		Set $Executable3$ = "FontPack1000_ko_KR.msi"
 
 
 
 
 
 
 
	DefVar $Executable4$
 
		Set $Executable4$ = "FontPack1000_zh_CN.msi"
 
 
 
 
 
 
 
	DefVar $Executable5$
 
		Set $Executable5$ = "FontPack1000_zh_TW.msi"
 
 
 
 
 
 
 
;Prüfen der Winst Version
 
	requiredWinstVersion >= "4.11"
 
 
 
 
 
 
 
;Anzeigen der Installationsbenachrichtigung incl. des vollen Produktnamens
 
	Message "Installiere "+$ProductNameFull1$
 
 
 
 
 
 
 
;$ProductPicture$ und $ProductName$ anzeigen
 
	ShowBitmap /3 "%scriptpath%\" + $ProductPicture$ $ProductName$
 
 
 
 
 
 
 
;Freien Speicherplatz ermitteln
 
	if not (HasMinimumSpace ("%SYSTEMDRIVE%", "500 MB"))
 
		LogError "Nicht genügend Platz auf %SYSTEMDRIVE%"
 
			isFatalError
 
	endif
 
 
 
 
 
 
 
;OS-Version ermitteln
 
	if ( $NTVersion$ = "Win2K" OR $NTVersion$ = "WinXP" OR $NTVersion$ = "Win NT 5.2" OR $NTVersion$ = "Windows Vista" )
 
 
 
 
 
 
 
			Winbatch_Install_Extended
 
				sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins"
 
 
 
 
 
 
 
		Message "Installiere "+$ProductNameFull2$
 
			Winbatch_Install_Japanese
 
				sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins"
 
 
 
 
 
 
 
		Message "Installiere "+$ProductNameFull3$
 
			Winbatch_Install_Korean
 
				sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins"
 
 
 
 
 
 
 
		Message "Installiere "+$ProductNameFull4$
 
			Winbatch_Install_Chinese_Simplified
 
				sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins"
 
 
 
 
 
 
 
		Message "Installiere "+$ProductNameFull5$
 
			Winbatch_Install_Chinese_Traditional
 
				sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins"
 
 
 
 
 
 
 
	else
 
		LogError "Kein kompatibles Betriebssystem installiert"
 
			isFatalError
 
	endif
 
 
 
 
 
 
 
 
 
 
 
[Winbatch_Install_Extended]
 
 
 
	msiexec.exe /i "%SCRIPTPATH%\$Executable1$" /qb-!
 
 
 
 
 
 
 
[Winbatch_Install_Japanese]
 
 
 
	msiexec.exe /i "%SCRIPTPATH%\$Executable2$" /qb-!
 
 
 
 
 
 
 
[Winbatch_Install_Korean]
 
 
 
	msiexec.exe /i "%SCRIPTPATH%\$Executable3$" /qb-!
 
 
 
 
 
 
 
[Winbatch_Install_Chinese_Simplified]
 
 
 
	msiexec.exe /i "%SCRIPTPATH%\$Executable4$" /qb-!
 
 
 
 
 
 
 
[Winbatch_Install_Chinese_Traditional]
 
 
 
	msiexec.exe /i "%SCRIPTPATH%\$Executable5$" /qb-!

Uninstall.ins

[Initial]
 
 
 
;Standard Text, der während der Deinstallation angezeigt wird
 
	Message = Bitte warten, das Produkt wird deinstalliert
 
 
 
 
 
 
 
;Loglevel einstellen
 
	setLogLevel = 6
 
 
 
 
 
 
 
;Bei Fehlern abbrechen
 
	ExitOnError = false
 
 
 
 
 
 
 
;Syntax Fehler werden in einem separaten Fenster angezeigt
 
	ScriptErrorMessages = on
 
 
 
 
 
 
 
;Single-Step Mode nicht verwenden
 
	TraceMode = off
 
 
 
 
 
 
 
;Im Batchmode das Winst-Fenster nicht im Vordergrund anzeigen
 
	StayOnTop = false
 
 
 
 
 
 
 
 
 
 
 
[Actions]
 
 
 
;Name des Produkts (max. 12 Zeichen)
 
	DefVar $ProductName$
 
		Set $ProductName$ = "Adobe Reader"
 
 
 
 
 
 
 
;Dateiname des Produktbildes mit Erweiterung
 
	DefVar $ProductPicture$
 
		Set $ProductPicture$ = "AdobeReader.png"
 
 
 
 
 
 
 
;Die Variable zur Auswertung des ExitCodes
 
	DefVar $ExitCode$
 
 
 
 
 
 
 
;$ProductPicture$ und $ProductName$ anzeigen
 
	ShowBitmap /3 "%scriptpath%\" + $ProductPicture$ $ProductName$
 
 
 
 
 
 
 
 
 
 
 
sub "%ScriptPath%\SubUninstall.ins"

SubUninstall.ins

;Variable für den msiexec Aufruf zur Deinstallation
	DefVar $UninstallCommand$
 
 
 
;Variable für die jeweilige Version. Wird aus der Registry ausgelesen
	DefVar $DisplayName$
 
 
 
 
 
;Extended Languages Font Pack for Adobe Reader 10
	Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76BA86-7AD7-5676-5A64-A00000000003}] DisplayName")
		if not ($DisplayName$ = "")
 
			Message "Deinstalliere "+$DisplayName$
				set $UninstallCommand$ = "MsiExec.exe /x {AC76BA86-7AD7-5676-5A64-A00000000003} /qb-!"
					Winbatch_Uninstall
						sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins"
 
		endif
 
 
 
;Japanese Font Pack for Adobe Reader 10
	Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76BA86-7AD7-5760-0000-A00000000003}] DisplayName")
		if not ($DisplayName$ = "")
 
			Message "Deinstalliere "+$DisplayName$
				set $UninstallCommand$ = "MsiExec.exe /x {AC76BA86-7AD7-5760-0000-A00000000003} /qb-!"
					Winbatch_Uninstall
						sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins"
 
		endif
 
 
 
;Korean Font Pack for Adobe Reader 10
	Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76BA86-7AD7-5670-0000-A00000000003}] DisplayName")
		if not ($DisplayName$ = "")
 
			Message "Deinstalliere "+$DisplayName$
				set $UninstallCommand$ = "MsiExec.exe /x {AC76BA86-7AD7-5670-0000-A00000000003} /qb-!"
					Winbatch_Uninstall
						sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins"
 
		endif
 
 
 
;Chinese Simplified Font Pack for Adobe Reader 10
	Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76BA86-7AD7-2447-0000-A00000000003}] DisplayName")
		if not ($DisplayName$ = "")
 
			Message "Deinstalliere "+$DisplayName$
				set $UninstallCommand$ = "MsiExec.exe /x {AC76BA86-7AD7-2447-0000-A00000000003} /qb-!"
					Winbatch_Uninstall
						sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins"
 
		endif
 
 
 
;Chinese Traditional Font Pack for Adobe Reader 10
	Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76BA86-7AD7-2448-0000-A00000000003}] DisplayName")
		if not ($DisplayName$ = "")
 
			Message "Deinstalliere "+$DisplayName$
				set $UninstallCommand$ = "MsiExec.exe /x {AC76BA86-7AD7-2448-0000-A00000000003} /qb-!"
					Winbatch_Uninstall
						sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins"
 
		endif
 
 
 
 
 
[Winbatch_Uninstall]
 
	$UninstallCommand$

QR Code
QR Code userspace:adobe_reader_fontpacks (generated for current page)