This shows you the differences between two versions of the page.
userspace:adobe_reader_fontpacks [2012/09/27 10:20] darpakiss [Uninstall.ins] |
userspace:adobe_reader_fontpacks [2021/08/23 08:37] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== 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:// | ||
- | |||
- | The installation files can be downloaded from: http:// | ||
- | |||
- | ==== Install.ins ==== | ||
- | |||
- | <code winst> | ||
- | |||
- | [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 | ||
- | ; | ||
- | 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$ = " | ||
- | ;Die Variable zur Auswertung des ExitCodes | ||
- | DefVar $ExitCode$ | ||
- | ; | ||
- | DefVar $ProductNameFull1$ | ||
- | set $ProductNameFull1$ = " | ||
- | DefVar $ProductNameFull2$ | ||
- | set $ProductNameFull2$ = " | ||
- | DefVar $ProductNameFull3$ | ||
- | set $ProductNameFull3$ = " | ||
- | DefVar $ProductNameFull4$ | ||
- | set $ProductNameFull4$ = " | ||
- | DefVar $ProductNameFull5$ | ||
- | set $ProductNameFull5$ = " | ||
- | ;Dateinamen der zu installierenden MSI-Pakete | ||
- | DefVar $Executable1$ | ||
- | Set $Executable1$ = " | ||
- | DefVar $Executable2$ | ||
- | Set $Executable2$ = " | ||
- | DefVar $Executable3$ | ||
- | Set $Executable3$ = " | ||
- | DefVar $Executable4$ | ||
- | Set $Executable4$ = " | ||
- | DefVar $Executable5$ | ||
- | Set $Executable5$ = " | ||
- | ;Prüfen der Winst Version | ||
- | requiredWinstVersion >= " | ||
- | ;Anzeigen der Installationsbenachrichtigung incl. des vollen Produktnamens | ||
- | Message " | ||
- | ; | ||
- | ShowBitmap /3 " | ||
- | ;Freien Speicherplatz ermitteln | ||
- | if not (HasMinimumSpace (" | ||
- | LogError "Nicht genügend Platz auf %SYSTEMDRIVE%" | ||
- | isFatalError | ||
- | endif | ||
- | ;OS-Version ermitteln | ||
- | if ( $NTVersion$ = " | ||
- | Winbatch_Install_Extended | ||
- | sub " | ||
- | Message " | ||
- | Winbatch_Install_Japanese | ||
- | sub " | ||
- | Message " | ||
- | Winbatch_Install_Korean | ||
- | sub " | ||
- | Message " | ||
- | Winbatch_Install_Chinese_Simplified | ||
- | sub " | ||
- | Message " | ||
- | Winbatch_Install_Chinese_Traditional | ||
- | sub " | ||
- | else | ||
- | LogError "Kein kompatibles Betriebssystem installiert" | ||
- | isFatalError | ||
- | |||
- | endif | ||
- | |||
- | [Winbatch_Install_Extended] | ||
- | msiexec.exe /i " | ||
- | |||
- | [Winbatch_Install_Japanese] | ||
- | msiexec.exe /i " | ||
- | |||
- | [Winbatch_Install_Korean] | ||
- | msiexec.exe /i " | ||
- | |||
- | [Winbatch_Install_Chinese_Simplified] | ||
- | msiexec.exe /i " | ||
- | |||
- | [Winbatch_Install_Chinese_Traditional] | ||
- | msiexec.exe /i " | ||
- | |||
- | </ | ||
- | |||
- | ==== Uninstall.ins ==== | ||
- | |||
- | <code winst> | ||
- | |||
- | [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 | ||
- | ; | ||
- | 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$ = " | ||
- | ;Die Variable zur Auswertung des ExitCodes | ||
- | DefVar $ExitCode$ | ||
- | ; | ||
- | ShowBitmap /3 " | ||
- | |||
- | sub " | ||
- | </ | ||
- | |||
- | ==== SubUninstall.ins ==== | ||
- | |||
- | <code winst> | ||
- | |||
- | ;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(" | ||
- | if not ($DisplayName$ = "" | ||
- | |||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | |||
- | endif | ||
- | |||
- | |||
- | |||
- | ;Japanese Font Pack for Adobe Reader 10 | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | |||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | |||
- | endif | ||
- | |||
- | |||
- | |||
- | ;Korean Font Pack for Adobe Reader 10 | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | |||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | |||
- | endif | ||
- | |||
- | |||
- | |||
- | ;Chinese Simplified Font Pack for Adobe Reader 10 | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | |||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | |||
- | endif | ||
- | |||
- | |||
- | |||
- | ;Chinese Traditional Font Pack for Adobe Reader 10 | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | |||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | |||
- | endif | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | [Winbatch_Uninstall] | ||
- | |||
- | $UninstallCommand$ | ||
- | |||
- | </ | ||