User Tools

Site Tools


userspace:google_chrome

Differences

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

Link to this comparison view

userspace:google_chrome [2011/10/11 10:23]
Der-Matze created
userspace:google_chrome [2012/06/13 09:14]
Thomas_H
Line 20: Line 20:
  
 [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$ = "Chrome"
- Set $ProductName$ = "Chrome" +
- +
- +
- +
- +
- +
- +
 ;Dateiname des Produktbildes mit Erweiterung ;Dateiname des Produktbildes mit Erweiterung
- 
  DefVar $ProductPicture$  DefVar $ProductPicture$
- + Set $ProductPicture$ = "Chrome.png"
- Set $ProductPicture$ = "Chrome.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$ = "Google Chrome 14.0.835.202"
- set $ProductNameFull1$ = "Google Chrome 14.0.835.202" +
- +
- +
- +
- +
- +
- +
 ;Dateinamen der zu installierenden MSI-Pakete ;Dateinamen der zu installierenden MSI-Pakete
- 
  DefVar $Executable1$  DefVar $Executable1$
- + Set $Executable1$ = "GoogleChromeStandaloneEnterprise.msi"
- Set $Executable1$ = "GoogleChromeStandaloneEnterprise.msi" +
- +
- +
- +
- +
- +
- +
 ;Anzeigen der Installationsbenachrichtigung incl. des vollen Produktnamens ;Anzeigen der Installationsbenachrichtigung incl. des vollen Produktnamens
- 
  Message "Installiere "+$ProductNameFull1$  Message "Installiere "+$ProductNameFull1$
- 
- 
- 
- 
- 
- 
- 
 ;Prüfen der Winst Version ;Prüfen der Winst Version
- 
  requiredWinstVersion >= "4.11"  requiredWinstVersion >= "4.11"
- 
- 
- 
- 
- 
- 
- 
 ;$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" )
- 
- 
- 
- 
- 
- 
- 
  Message "Deinstallation alter Produktversionen"  Message "Deinstallation alter Produktversionen"
- + sub "%ScriptPath%\SubUninstall.ins"
- sub "%ScriptPath%\SubUninstall.ins" +
- +
- +
- +
- +
- +
- +
  Message "Installiere "+$ProductNameFull1$  Message "Installiere "+$ProductNameFull1$
- + Winbatch_Install 
- Winbatch_Install + sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins"
- +
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" +
- +
- +
  LinkFolder_Custom  LinkFolder_Custom
- 
  Files_Copy  Files_Copy
- 
  Registry_Global /32Bit  Registry_Global /32Bit
- 
- 
- 
- 
- 
- 
- 
  else  else
- 
  LogError "Kein kompatibles Betriebssystem installiert"  LogError "Kein kompatibles Betriebssystem installiert"
- + isFatalError
- isFatalError +
  endif  endif
- 
- 
- 
- 
- 
- 
- 
- 
- 
  
  
 [Winbatch_Install] [Winbatch_Install]
- +msiexec.exe /i "%SCRIPTPATH%\$Executable1$" /qb-!
- +
- +
- msiexec.exe /i "%SCRIPTPATH%\$Executable1$" /qb-! +
- +
- +
- +
- +
- +
  
 [LinkFolder_Custom] [LinkFolder_Custom]
- 
- 
- 
 ;Startmenü anpassen ;Startmenü anpassen
- +set_basefolder common_programs 
- set_basefolder common_programs +set_subfolder "" 
- +delete_subfolder "Google Chrome" 
- set_subfolder "" +set_subfolder "" 
- +set_link 
- delete_subfolder "Google Chrome" +        name: Google Chrome 
- +        target: "%ProgramFiles32Dir%\Google\Chrome\Application\chrome.exe" 
- set_subfolder "" +        parameters: 
- +        working_dir: "%ProgramFiles32Dir%\Google\Chrome\Application" 
- set_link +        icon_file: 
- +        icon_index: 
- name: Google Chrome +end_link
- +
- target: "%ProgramFiles32Dir%\Google\Chrome\Application\chrome.exe" +
- +
- parameters: +
- +
- working_dir: "%ProgramFiles32Dir%\Google\Chrome\Application" +
- +
- icon_file: +
- +
- icon_index: +
- +
- end_link +
- +
- +
- +
- +
  
  
 [Registry_Global] [Registry_Global]
 +OpenKey [HKLM\Software\Policies\Google\Chrome]
 + ;ProxyServerMode auf Manuell einstellen
 + Set "ProxyServerMode" = REG_DWORD:0x00000002
  
 + ;Adresse für Proxy Konfigurationsdatei eintragen
 + Set "ProxyPacUrl" = REG_SZ:"http://proxy.your.domain/proxy.pac"
  
 + ;Keine Statistiken an Google senden
 + Set "MetricsReportingEnabled" = REG_DWORD:0x00000000
  
- OpenKey [HKLM\Software\Policies\Google\Chrome] + ;Keine Daten-Synchronisation mit Google Diensten 
- + Set "SyncDisabled" = REG_DWORD:0x00000001
- +
- +
- ;ProxyServerMode auf Manuell einstellen +
- +
- Set "ProxyServerMode" = REG_DWORD:0x00000002 +
- +
- +
- +
- ;Adresse für Proxy Konfigurationsdatei eintragen +
- +
- Set "ProxyPacUrl" = REG_SZ:"http://proxy.your.domain/proxy.pac" +
- +
- +
- +
- ;Keine Statistiken an Google senden +
- +
- Set "MetricsReportingEnabled" = REG_DWORD:0x00000000 +
- +
- +
- +
- ;Keine Daten-Synchronisation mit Google Diensten +
- +
- Set "SyncDisabled" = REG_DWORD:0x00000001 +
- +
- +
- +
- +
- +
- +
- +
- OpenKey [HKLM\SOFTWARE\Policies\Google\Update] +
- +
- ;Auto Update deaktivieren +
- +
- Set "AutoUpdateCheckPeriodMinutes" = REG_DWORD:0x0000a8c0 +
- +
- Set "DisableAutoUpdateChecksCheckboxValue" = REG_DWORD:0x00000001 +
- +
- +
- +
  
 +OpenKey [HKLM\SOFTWARE\Policies\Google\Update]
 + ;Auto Update deaktivieren
 + Set "AutoUpdateCheckPeriodMinutes" = REG_DWORD:0x0000a8c0
 + Set "DisableAutoUpdateChecksCheckboxValue" = REG_DWORD:0x00000001
  
  
 [Files_Copy] [Files_Copy]
- +copy "%SCRIPTPATH%\master_preferences" "%ProgramFiles32Dir%\Google\Chrome\Application"
- +
- +
- copy "%SCRIPTPATH%\master_preferences" "%ProgramFiles32Dir%\Google\Chrome\Application"+
  
 </code> </code>
Line 388: Line 135:
  
 [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$ = "Chrome"
- +
- Set $ProductName$ = "Chrome" +
- +
- +
- +
- +
- +
  
 ;Dateiname des Produktbildes mit Erweiterung ;Dateiname des Produktbildes mit Erweiterung
- +        DefVar $ProductPicture$ 
- DefVar $ProductPicture$ +        Set $ProductPicture$ = "Chrome.png"
- +
- Set $ProductPicture$ = "Chrome.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"
Line 517: Line 175:
 ;Variable für den msiexec Aufruf zur Deinstallation ;Variable für den msiexec Aufruf zur Deinstallation
  DefVar $UninstallCommand$  DefVar $UninstallCommand$
- 
- 
- 
 ;Variable für die jeweilige Version. Wird aus der Registry ausgelesen ;Variable für die jeweilige Version. Wird aus der Registry ausgelesen
  DefVar $DisplayName$  DefVar $DisplayName$
- 
- 
- 
  
  
 ;Google Chrome (alle Versionen) deinstallieren, wenn es in der Registry gefunden wurde ;Google Chrome (alle Versionen) deinstallieren, wenn es in der Registry gefunden wurde
- Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{54DF35BD-4A36-35DA-B029-A0C083C88614}] DisplayName"+Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{54DF35BD-4A36-35DA-B029-A0C083C88614}] DisplayName"
- if not ($DisplayName$ = ""+if not ($DisplayName$ = ""
- +       Message "Deinstalliere "+$DisplayName$ 
- Message "Deinstalliere "+$DisplayName$ + set $UninstallCommand$ = "MsiExec.exe /x {54DF35BD-4A36-35DA-B029-A0C083C88614} /qb-!" 
- set $UninstallCommand$ = "MsiExec.exe /x {54DF35BD-4A36-35DA-B029-A0C083C88614} /qb-!" + Winbatch_Uninstall 
- Winbatch_Uninstall + sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" 
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" +endif
- +
- endif +
- +
  
 Linkfolder_Custom Linkfolder_Custom
- 
- 
- 
- 
  
 [Winbatch_Uninstall] [Winbatch_Uninstall]
- +$UninstallCommand$
- $UninstallCommand$ +
- +
  
 [Linkfolder_Custom] [Linkfolder_Custom]
  
 ;Startmenü Verknüpfung löschen ;Startmenü Verknüpfung löschen
- Set_basefolder common_programs +Set_basefolder common_programs 
- Set_subfolder "" +Set_subfolder "" 
- delete_element "Google Chrome"+delete_element "Google Chrome"
  
 </code> </code>
userspace/google_chrome.txt · Last modified: 2021/08/23 08:37 (external edit)