User Tools

Site Tools


userspace:adobe_reader_x

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
userspace:adobe_reader_x [2011/11/24 14:16]
Mike1987
userspace:adobe_reader_x [2021/08/23 08:37] (current)
Line 17: Line 17:
  
 <code winst> <code winst>
 +;Standard Text, shown during installation
 +Message = Bitte warten, das Produkt wird installiert
 +;Set Loglevel
 +setLogLevel = 6
 +;Stop when errors
 +ExitOnError = false
 +;Syntax Error 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
  
-[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] [Actions]
-;Variable für die Ermittlung des Betriebssystems+;Variable for the OS 
 +DefVar $OS$ 
 +set $OS$ = GetOS 
 +;Variable for the OS-subversion 
 +DefVar $NTVersion$ 
 +set $NTVersion$ = GetNTVersion
  
- DefVar $OS$+;Name of product (max. 12 columns) 
 +DefVar $ProductName$ 
 +Set $ProductName$ = "Adobe Reader"
  
- set $OS$ = GetOS+;filename of productpicture with extension 
 +DefVar $ProductPicture$ 
 +Set $ProductPicture$ = "AdobeReader.png"
  
-;Variable für die Ermittlung der Betriebssystem Unterversion+;the variable for the ExitCode 
 +DefVar $ExitCode$
  
- DefVar $NTVersion$ 
  
- set $NTVersion$ = GetNTVersion+;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"
  
-;Name des Produkts (max12 Zeichen)+;filename of MSI-package which has to be installed 
 +DefVar $Executable1$ 
 +Set $Executable1$ = "AdbeRdr1010_de_DE.msi" 
 +DefVar $Executable2$ 
 +Set $Executable2$ = "AdbeRdrUpd1011.msp"
  
- DefVar $ProductName$+;Check the winst-version 
 +requiredWinstVersion >= "4.11"
  
- Set $ProductName$ = "Adobe Reader"+;Show installation-message with full productname 
 +Message "Installiere "+$ProductNameFull1$
  
-;Dateiname des Produktbildes mit Erweiterung+;show $ProductPicture$ and $ProductName$ 
 +ShowBitmap /3 "%scriptpath%\" + $ProductPicture$ $ProductName$
  
- DefVar $ProductPicture$+;check free diskspace 
 +if not (HasMinimumSpace ("%SYSTEMDRIVE%", "500 MB")) 
 + LogError "Nicht genügend Platz auf %SYSTEMDRIVE%" 
 + isFatalError 
 +endif
  
- Set $ProductPicture$ = "AdobeReader.png" +;Get OS-Version 
- +if ( $NTVersion$ = "Win2K" OR $NTVersion$ = "WinXP" OR $NTVersion$ = "Win NT 5.2" OR $NTVersion$ = "Windows Vista" ) 
-;Die Variable zur Auswertung des ExitCodes + Winbatch_Install_Reader 
- + sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" 
- DefVar $ExitCode$ + Message "Installiere "+$ProductNameFull2$ 
- + Winbatch_Install_Update1 
- + sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" 
-;Vollständiger Produktname incl. Versionsnummer + LinkFolder_Custom 
- + Registry_Global /32Bit 
- DefVar $ProductNameFull1$ + Registry_User /SysNative /AllNTUserdats 
- +else 
- set $ProductNameFull1$ = "Adobe Reader X 10.1.0" + LogError "Kein kompatibles Betriebssystem installiert" 
- + isFatalError 
- +endif
- DefVar $ProductNameFull2$ +
- +
- set $ProductNameFull2$ = "Adobe Reader X 10.1.1" +
- +
-;Dateinamen der zu installierenden MSI-Pakete +
- +
- DefVar $Executable1$ +
- +
- Set $Executable1$ = "AdbeRdr1010_de_DE.msi" +
- +
- +
- DefVar $Executable2$ +
- +
- Set $Executable2$ = "AdbeRdrUpd1011.msp" +
- +
- +
-;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_Reader +
- +
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" +
- +
- +
- Message "Installiere "+$ProductNameFull2$ +
- +
- Winbatch_Install_Update1 +
- +
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" +
- +
- +
- LinkFolder_Custom +
- +
- Registry_Global /32Bit +
- +
- Registry_User /SysNative /AllNTUserdats +
- +
- else +
- +
- LogError "Kein kompatibles Betriebssystem installiert" +
- +
- isFatalError +
- +
- endif+
  
 [Winbatch_Install_Reader] [Winbatch_Install_Reader]
Line 161: Line 100:
  
 [LinkFolder_Custom] [LinkFolder_Custom]
-;Desktop Verknüpfung löschen+;Delete Desktop-Link 
 +set_basefolder common_desktopdirectory 
 +set_subfolder "" 
 +delete_element "Adobe Reader X"
  
- set_basefolder common_desktopdirectory +;Configure Startmenu 
- +set_basefolder common_programs 
- set_subfolder "" +set_subfolder "" 
- +delete_element "Adobe Reader X" 
- delete_element "Adobe Reader X" +set_subfolder "" 
-;Startmenü anpassen +set_link 
- +name: $ProductName$ 
- set_basefolder common_programs +target: "%ProgramFiles32Dir%\Adobe\Reader 10.0\Reader\AcroRd32.exe" 
- +parameters: 
- set_subfolder "" +working_dir: "%ProgramFiles32Dir%\Adobe\Reader 10.0\" 
- +icon_file: 
- delete_element "Adobe Reader X" +icon_index: 
- +end_link
- set_subfolder "" +
- +
- set_link +
- +
- name: $ProductName$ +
- +
- target: "%ProgramFiles32Dir%\Adobe\Reader 10.0\Reader\AcroRd32.exe" +
- +
- parameters: +
- +
- working_dir: "%ProgramFiles32Dir%\Adobe\Reader 10.0\" +
- +
- icon_file: +
- +
- icon_index: +
- +
- end_link+
  
 [Registry_Global] [Registry_Global]
-;Deaktiviert Adobe Updater+;Deactivate Adobe Updater 
 +OpenKey [HKLM\SOFTWARE\Adobe\Adobe ARM\1.0\ARM] 
 +Set "iCheck"=REG_DWORD:0x00000000
  
- OpenKey [HKLM\SOFTWARE\Adobe\Adobe ARM\1.0\ARM] +;Avoids start of Reader_sl.exe while booting 
- +OpenKey [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run] 
- Set "iCheck"=REG_DWORD:0x00000000 +DeleteVar "Adobe Reader Speed Launcher" 
- +DeleteVar "Adobe ARM"
-;Verhindert automatisches Laden von Reader_sl.exe beim Rechnerstart +
- +
- OpenKey [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run] +
- +
- DeleteVar "Adobe Reader Speed Launcher" +
- +
- DeleteVar "Adobe ARM"+
  
 [Registry_User] [Registry_User]
-;Mitteilungen beim Starten von Reader anzeigen deaktivieren +;Avoids splash-screens during start of the reader 
- +OpenKey [Software\Adobe\Acrobat Reader\10.0\IPM] 
- OpenKey [Software\Adobe\Acrobat Reader\10.0\IPM] +Set "bShowMsgAtLaunch"=REG_DWORD:0x00000000
- +
- Set "bShowMsgAtLaunch"=REG_DWORD:0x00000000 +
- +
-;Eröffnungsbildschirm anzeigen deaktivieren +
- +
- OpenKey [Software\Adobe\Acrobat Reader\10.0\Originals] +
- +
- Set "bDisplayAboutDialog"=REG_DWORD:0x00000000 +
- +
-;Nur zertifizierte Zusatzmodule verwenden aktivieren +
- +
- OpenKey [Software\Adobe\Acrobat Reader\10.0\Originals] +
- +
- Set "iTrustedMode"=REG_DWORD:0x00000001 +
- +
-;Verbindungsgeschwindigkeit auf LAN einstellen +
- +
- OpenKey [Software\Adobe\Acrobat Reader\10.0\AVGeneral]+
  
- Set "iConnectionSpeed"=REG_DWORD:0x00989680+;Avoid Splash-Screen 
 +OpenKey [Software\Adobe\Acrobat Reader\10.0\Originals] 
 +Set "bDisplayAboutDialog"=REG_DWORD:0x00000000
  
-;JavaScript deaktivieren+;Allow only certified Addons 
 +OpenKey [Software\Adobe\Acrobat Reader\10.0\Originals] 
 +Set "iTrustedMode"=REG_DWORD:0x00000001
  
- OpenKey [Software\Adobe\Acrobat Reader\10.0\JSPrefs]+;Set connection-speed to LAN 
 +OpenKey [Software\Adobe\Acrobat Reader\10.0\AVGeneral] 
 +Set "iConnectionSpeed"=REG_DWORD:0x00989680
  
- Set "bEnableJS" = REG_DWORD:0x00000000+;deactivate JavaScript 
 +OpenKey [Software\Adobe\Acrobat Reader\10.0\JSPrefs] 
 +Set "bEnableJS" = REG_DWORD:0x00000000
  
 </code> </code>
Line 246: Line 156:
 <code winst> <code winst>
  
-[Initial]+;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
  
-;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] [Actions]
-;Name des Produkts (max. 12 Zeichen) +;Name of product (max. 12 columns
- +DefVar $ProductName$ 
- DefVar $ProductName$ +Set $ProductName$ = "Adobe Reader"
- +
- Set $ProductName$ = "Adobe Reader" +
- +
-;Dateiname des Produktbildes mit Erweiterung +
- +
- DefVar $ProductPicture$ +
- +
- Set $ProductPicture$ = "AdobeReader.png" +
- +
-;Die Variable zur Auswertung des ExitCodes+
  
- DefVar $ExitCode$+;filename of productpicture with extension 
 +DefVar $ProductPicture$ 
 +Set $ProductPicture$ = "AdobeReader.png"
  
-;$ProductPictureund $ProductName$ anzeigen+;the variable for the ExitCode 
 +DefVar $ExitCode$
  
- ShowBitmap /3 "%scriptpath%\" + $ProductPicture$ $ProductName$+;show $ProductPicture$ and $ProductName$ 
 +ShowBitmap /3 "%scriptpath%\" + $ProductPicture$ $ProductName$
  
 sub "%ScriptPath%\SubUninstall.ins" sub "%ScriptPath%\SubUninstall.ins"
Line 302: Line 194:
 <code winst> <code winst>
  
-;Variable für den msiexec Aufruf zur Deinstallation +;Variable for msiexec-call of deinstallation 
- DefVar $UninstallCommand$+DefVar $UninstallCommand$
  
  
  
-;Variable für die jeweilige Version. Wird aus der Registry ausgelesen +;Variable for the diffrent versions gotten from the registry 
- DefVar $DisplayName$+DefVar $DisplayName$
  
-;Adobe Reader 9.3.1 - 9.3.4 deinstallierenwenn es in der Registry gefunden wurde +;Deinstalling Adobe Reader 9.3.1 - 9.3.4, if found in the Registry 
- Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76BA86-7AD7-1031-7B44-A93000000001}] DisplayName"+Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76BA86-7AD7-1031-7B44-A93000000001}] DisplayName"
- if not ($DisplayName$ = "")+if not ($DisplayName$ = "") 
 + Message "Deinstalliere "+$DisplayName$ 
 + set $UninstallCommand$ = "MsiExec.exe /x {AC76BA86-7AD7-1031-7B44-A93000000001} /qb-! REBOOT=ReallySuppress" 
 + Winbatch_Uninstall 
 + sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" 
 +endif
  
- Message "Deinstalliere "+$DisplayName$ +;Deinstalling Adobe Reader 9.4.0, if found in the Registry 
- set $UninstallCommand$ = "MsiExec.exe /x {AC76BA86-7AD7-1031-7B44-A93000000001} /qb-! REBOOT=ReallySuppress" +Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76BA86-7AD7-1031-7B44-A94000000001}] DisplayName"
- Winbatch_Uninstall +if not ($DisplayName$ = ""
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins"+ Message "Deinstalliere "+$DisplayName$ 
 + set $UninstallCommand$ = "MsiExec.exe /x {AC76BA86-7AD7-1031-7B44-A94000000001} /qb-! REBOOT=ReallySuppress" 
 + Winbatch_Uninstall 
 + sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" 
 +endif
  
- endif+;Deinstalling Adobe Reader 10.0.x, if found in the Registry 
 +Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76BA86-7AD7-1031-7B44-AA0000000001}] DisplayName"
 +if not ($DisplayName$ = ""
 + Message "Deinstalliere "+$DisplayName$ 
 + set $UninstallCommand$ = "MsiExec.exe /x {AC76BA86-7AD7-1031-7B44-AA0000000001} /qb-! REBOOT=ReallySuppress" 
 + Winbatch_Uninstall 
 + sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" 
 +endif
  
-;Adobe Reader 9.4.0 deinstallierenwenn es in der Registry gefunden wurde +;Deinstalling Adobe Reader 10.1.xif found in the Registry 
- Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76BA86-7AD7-1031-7B44-A94000000001}] DisplayName"+Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76BA86-7AD7-1031-7B44-AA1000000001}] DisplayName"
- if not ($DisplayName$ = "")+ if not ($DisplayName$ = "") 
 + Message "Deinstalliere "+$DisplayName$ 
 + set $UninstallCommand$ = "MsiExec.exe /x {AC76BA86-7AD7-1031-7B44-AA1000000001} /qb-! REBOOT=ReallySuppress" 
 + Winbatch_Uninstall 
 + sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" 
 +endif
  
- Message "Deinstalliere "+$DisplayName$ 
- set $UninstallCommand$ = "MsiExec.exe /x {AC76BA86-7AD7-1031-7B44-A94000000001} /qb-! REBOOT=ReallySuppress" 
- Winbatch_Uninstall 
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" 
- 
- endif 
- 
-;Adobe Reader 10.0.x deinstallieren, wenn es in der Registry gefunden wurde 
- Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76BA86-7AD7-1031-7B44-AA0000000001}] DisplayName") 
- if not ($DisplayName$ = "") 
- 
- Message "Deinstalliere "+$DisplayName$ 
- set $UninstallCommand$ = "MsiExec.exe /x {AC76BA86-7AD7-1031-7B44-AA0000000001} /qb-! REBOOT=ReallySuppress" 
- Winbatch_Uninstall 
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" 
- 
- endif 
- 
-;Adobe Reader 10.1.x deinstallieren, wenn es in der Registry gefunden wurde 
- Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76BA86-7AD7-1031-7B44-AA1000000001}] DisplayName") 
- if not ($DisplayName$ = "") 
- 
- Message "Deinstalliere "+$DisplayName$ 
- set $UninstallCommand$ = "MsiExec.exe /x {AC76BA86-7AD7-1031-7B44-AA1000000001} /qb-! REBOOT=ReallySuppress" 
- Winbatch_Uninstall 
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" 
- 
- endif 
 Linkfolder_Custom Linkfolder_Custom
  
 [Winbatch_Uninstall] [Winbatch_Uninstall]
- +$UninstallCommand$
- $UninstallCommand$+
  
 [Linkfolder_Custom] [Linkfolder_Custom]
-;Startmenü Verknüpfung löschen +;Delete Startmenu-Link 
- Set_basefolder common_programs +Set_basefolder common_programs 
- Set_subfolder "" +Set_subfolder "" 
- delete_element "$ProductName$"+delete_element "$ProductName$"
  
 </code> </code>
userspace/adobe_reader_x.1322144186.txt.gz · Last modified: 2021/08/23 08:37 (external edit)