This shows you the differences between two versions of the page.
userspace:adobe_reader_x [2012/01/16 07:35] Thomas_H |
userspace:adobe_reader_x [2021/08/23 08:37] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Adobe Reader 10.1.1 ====== | ||
- | 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 Script for Adobe Reader X with some Program Settings changed in Registry \\ | ||
- | Uninstallation Script for Adobe Reader Versions 9.3.1 - 10.1.1 \\ | ||
- | |||
- | This script uses the check_msi-exitcode script: https:// | ||
- | |||
- | The installation files can be downloaded from: ftp:// | ||
- | |||
- | ==== Install.ins ==== | ||
- | |||
- | <code winst> | ||
- | ;Standard Text, shown during installation | ||
- | Message = Bitte warten, das Produkt wird installiert | ||
- | ;Set Loglevel | ||
- | setLogLevel = 6 | ||
- | ;Stop when errors | ||
- | ExitOnError = false | ||
- | ;Syntax Fehler are shown in a seperate window | ||
- | ScriptErrorMessages = on | ||
- | ;Do not use Single-Step Mode | ||
- | TraceMode = off | ||
- | ;No winst-window in foreground while batchmode | ||
- | StayOnTop = false | ||
- | |||
- | |||
- | [Actions] | ||
- | ;Variable for the OS | ||
- | DefVar $OS$ | ||
- | set $OS$ = GetOS | ||
- | ;Variable for the OS-subversion | ||
- | DefVar $NTVersion$ | ||
- | set $NTVersion$ = GetNTVersion | ||
- | |||
- | ;Name of product (max. 12 columns) | ||
- | DefVar $ProductName$ | ||
- | Set $ProductName$ = "Adobe Reader" | ||
- | |||
- | ;filename of productpicture with extension | ||
- | DefVar $ProductPicture$ | ||
- | Set $ProductPicture$ = " | ||
- | |||
- | ;the variable for the ExitCode | ||
- | DefVar $ExitCode$ | ||
- | |||
- | |||
- | ;complete name of product incl. versionno. | ||
- | DefVar $ProductNameFull1$ | ||
- | set $ProductNameFull1$ = "Adobe Reader X 10.1.0" | ||
- | DefVar $ProductNameFull2$ | ||
- | set $ProductNameFull2$ = "Adobe Reader X 10.1.1" | ||
- | |||
- | ;filename of MSI-package which has to be installed | ||
- | DefVar $Executable1$ | ||
- | Set $Executable1$ = " | ||
- | DefVar $Executable2$ | ||
- | Set $Executable2$ = " | ||
- | |||
- | ;Check the winst-version | ||
- | requiredWinstVersion >= " | ||
- | |||
- | ;Show installation-message with full productname | ||
- | Message " | ||
- | |||
- | ;show $ProductPicture$ and $ProductName$ | ||
- | ShowBitmap /3 " | ||
- | |||
- | ;check free diskspace | ||
- | if not (HasMinimumSpace (" | ||
- | LogError "Nicht genügend Platz auf %SYSTEMDRIVE%" | ||
- | isFatalError | ||
- | endif | ||
- | |||
- | ;Get OS-Version | ||
- | if ( $NTVersion$ = " | ||
- | Winbatch_Install_Reader | ||
- | sub " | ||
- | Message " | ||
- | Winbatch_Install_Update1 | ||
- | sub " | ||
- | LinkFolder_Custom | ||
- | Registry_Global /32Bit | ||
- | Registry_User /SysNative / | ||
- | else | ||
- | LogError "Kein kompatibles Betriebssystem installiert" | ||
- | isFatalError | ||
- | endif | ||
- | |||
- | [Winbatch_Install_Reader] | ||
- | msiexec.exe /i " | ||
- | |||
- | [Winbatch_Install_Update1] | ||
- | msiexec.exe /p " | ||
- | |||
- | [LinkFolder_Custom] | ||
- | ;Delete Desktop-Link | ||
- | set_basefolder common_desktopdirectory | ||
- | set_subfolder "" | ||
- | delete_element "Adobe Reader X" | ||
- | |||
- | ;Configure Startmenu | ||
- | set_basefolder common_programs | ||
- | set_subfolder "" | ||
- | delete_element "Adobe Reader X" | ||
- | set_subfolder "" | ||
- | set_link | ||
- | name: $ProductName$ | ||
- | target: " | ||
- | parameters: | ||
- | working_dir: | ||
- | icon_file: | ||
- | icon_index: | ||
- | end_link | ||
- | |||
- | [Registry_Global] | ||
- | ;Deactivate Adobe Updater | ||
- | OpenKey [HKLM\SOFTWARE\Adobe\Adobe ARM\1.0\ARM] | ||
- | Set " | ||
- | |||
- | ;Avoids start of Reader_sl.exe while booting | ||
- | OpenKey [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run] | ||
- | DeleteVar "Adobe Reader Speed Launcher" | ||
- | DeleteVar "Adobe ARM" | ||
- | |||
- | [Registry_User] | ||
- | ;Avoids splash-screens during start of the reader | ||
- | OpenKey [Software\Adobe\Acrobat Reader\10.0\IPM] | ||
- | Set " | ||
- | |||
- | ;Avoid Splash-Screen | ||
- | OpenKey [Software\Adobe\Acrobat Reader\10.0\Originals] | ||
- | Set " | ||
- | |||
- | ;Allow only certified Addons | ||
- | OpenKey [Software\Adobe\Acrobat Reader\10.0\Originals] | ||
- | Set " | ||
- | |||
- | ;Set connection-speed to LAN | ||
- | OpenKey [Software\Adobe\Acrobat Reader\10.0\AVGeneral] | ||
- | Set " | ||
- | |||
- | ;deactivate JavaScript | ||
- | OpenKey [Software\Adobe\Acrobat Reader\10.0\JSPrefs] | ||
- | Set " | ||
- | |||
- | </ | ||
- | |||
- | ==== Uninstall.ins ==== | ||
- | |||
- | <code winst> | ||
- | |||
- | ;Standard Text, shown during installation | ||
- | Message = Bitte warten, das Produkt wird deinstalliert | ||
- | |||
- | ;Set Loglevel | ||
- | setLogLevel = 6 | ||
- | |||
- | ;Stop when errors | ||
- | ExitOnError = false | ||
- | ;Syntax Fehler are shown in a seperate window | ||
- | ScriptErrorMessages = on | ||
- | ;Do not use Single-Step Mode | ||
- | TraceMode = off | ||
- | ;No winst-window in foreground while batchmode | ||
- | StayOnTop = false | ||
- | |||
- | [Actions] | ||
- | ;Name of product (max. 12 columns) | ||
- | DefVar $ProductName$ | ||
- | Set $ProductName$ = "Adobe Reader" | ||
- | |||
- | ;filename of productpicture with extension | ||
- | DefVar $ProductPicture$ | ||
- | Set $ProductPicture$ = " | ||
- | |||
- | ;the variable for the ExitCode | ||
- | DefVar $ExitCode$ | ||
- | |||
- | ;show $ProductPicture$ and $ProductName$ | ||
- | ShowBitmap /3 " | ||
- | |||
- | sub " | ||
- | |||
- | </ | ||
- | |||
- | ==== SubUninstall.ins ==== | ||
- | |||
- | <code winst> | ||
- | |||
- | ;Variable for msiexec-call of deinstallation | ||
- | DefVar $UninstallCommand$ | ||
- | |||
- | |||
- | |||
- | ;Variable for the diffrent versions gotten from the registry | ||
- | DefVar $DisplayName$ | ||
- | |||
- | ; | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | endif | ||
- | |||
- | ; | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | endif | ||
- | |||
- | ; | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | endif | ||
- | |||
- | ; | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | endif | ||
- | |||
- | Linkfolder_Custom | ||
- | |||
- | [Winbatch_Uninstall] | ||
- | $UninstallCommand$ | ||
- | |||
- | [Linkfolder_Custom] | ||
- | ;Delete Startmenu-Link | ||
- | Set_basefolder common_programs | ||
- | Set_subfolder "" | ||
- | delete_element " | ||
- | |||
- | </ |