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:firefox [2011/10/27 08:19]
Thomas_H
userspace:firefox [2019/09/09 15:36] (current)
Whoops! Update recommended addons
Line 1: Line 1:
-Frei nach dieser Anleitung: http://​wiki.welter-online.com/​index.php/​OPSI+==== Mozilla Firefox ====
  
-Sehr minimal aber erstmal ein Einstieg. Mehr findet Infos man unter: https://wiki.mozilla.org/Deployment:Deploying_Firefox+--- //[[thomas.heinrich@polizei.berlin.de|Thomas_H]] 2011/10/27 09:24//
  
-Install.ins +Tested with opsi 4.0.1\\ 
-  [Initial] +requiredWinstVersion >4.10.8.6\\ 
-  Message=installiere Firefox 7.0.1 DE +Download Setup-Files at http://www.mozilla.org//
-  ​StayOnTop=false +
-  ​[Aktionen] +
-  Winbatch_produkt_silent_install +
-  [Winbatch_produkt_silent_install] +
-  %SCRIPTPATH%\firefox-de-7.0.1.exe -ms+
  
- +Last Check\\ 
-Uninstall.ins +[[thomas.heinrich@polizei.berlin.de|Thomas_H]] 2019/05/14 12:03\\
-  ​[Initial] +
-  Message=deinstalliere Firefox +
-  StayOnTop=false +
-  ​[Aktionen] +
-  ; We need to wait for "Au_.exe" to finishHopefully 5 minutes are enough +
-  Winbatch_produkt_silent_uninstall /​WaitForProcessEnding "Au_.exe" ​/TimeOutSeconds 300 +
-  [Winbatch_produkt_silent_uninstall] +
-  "​%ProgramFilesDir%\Mozilla Firefox\uninstall\Helper.exe"​ /S +
-   +
-   +
-----+
  
 Hier kommt eine erweitere Version, welche auch ein zuvor eingerichtetes Profil berücksichtigt. ​ Hier kommt eine erweitere Version, welche auch ein zuvor eingerichtetes Profil berücksichtigt. ​
  
-1) Firefox installieren +  - Firefox installieren 
-2) Add-ons herunterladen und installieren (empfohlen: ​WOTAdblock PlusGhostery+  ​- ​Add-ons herunterladen und installieren (empfohlen: ​uBlock OriginHTTPS EverywherePrivacy Badger
-3) Firefox den Erfordernissen anpassen (zB. Proxy etc.) +  ​- ​Firefox den Erfordernissen anpassen (zB. Proxy etc.)\\ 
-4) Profil des aktuellen Nutzers kopieren. (Win7: C:​\Users\<​name>​\AppData\Local\Mozilla\Firefox\Profiles)+** Wichtig: Sind Datenschutzrichtlinien besonders zu beachten, muss bei Firefox ab V.13 unter Umständen\\ 
 +    die Übersicht beim öffnen eines neuen Tabs, bzw. neuen Fensters abgeschaltet werden, weil möglicherweise\\ 
 +    der Zugang zu passwortgeschützten Seiten mit gespeichert wird! Dazu in der Menüleiste "​about:​config"​\\ 
 +    eingeben und mit der Maus doppelt auf den Eintrag browser.newtab.url klicken und damit den Wert von  
 +    about:​newtab auf "​about:​blank ändern"​ ** 
 +  - Profil des aktuellen Nutzers kopieren. (Win7/10: C:​\Users\<​name>​\AppData\Roaming\Mozilla\Firefox\Profiles)
  
 This is an extended Version which also installs a defined profile. This is an extended Version which also installs a defined profile.
  
-1) Install Firefox  +  - Install Firefox  
-2) download and install add-ons (recommended: ​WOTAdblock PlusGhostery+  ​- ​download and install add-ons (recommended: ​uBlock OriginHTTPS EverywherePrivacy Badger
-3) set preferences for firefox (i.e. proxy etc.) +  ​- ​set preferences for firefox (i.e. proxy etc.)\\ 
-4) copy profile of actual user. +**Attention:​ if you have to follow privacy policy, so for Firefox V.13 and higher you have to switch\\ 
 +        off the overview which is shown when opening a new window or tab. Enter a '​about:​config'​ in addressline\\ 
 +        and do a doubleclick on the entry browser.newtab.url,​ so it changes from '​about:​newtab'​ to '​about:​blank'​** 
 +  - copy profile of actual user.
  
 tree: tree:
-/​opsi-installs/​firefox/​CLIENT_DATA # ls -l +├ delsub.ins 
-insgesamt 13552 +├ firefox.bmp 
-delsub.ins +├ firefox-profile (THIS is the directory with the copied profile!) 
-firefox.bmp +├ Firefox ​Installer.exe 
-firefox-profile (THIS is the directory with the copied profile!) +├ setup.ins 
-Firefox ​Setup 6.0.exe +└ uninstall.ins
-setup.ins +
-uninstall.ins+
  
  
------- +==== setup.ins ​====
-setup.ins+
-------+
  
 +<code winst>
  
 [Initial] [Initial]
Line 95: Line 83:
  
  
-;​---------------------------------------------------------------------- +; ---------------------------------------------------------------------- 
-    Set $TEMP$ = EnvVar("​TEMP"​) +Set $TEMP$ = EnvVar("​TEMP"​) 
-    Set $PRODUCTPATH$="​%ProgramFilesDir%\Mozilla Firefox"​ +Set $PRODUCTPATH$="​%ProgramFilesDir%\Mozilla Firefox"​ 
-    Set $MozInstallDir$ = $PRODUCTPATH$ +Set $MozInstallDir$ = $PRODUCTPATH$ 
-    set $InstallDir$=$PRODUCTPATH$ +set $InstallDir$=$PRODUCTPATH$ 
-    set $NewExe$= $PRODUCTPATH$+"​\"​ +set $NewExe$= $PRODUCTPATH$+"​\"​ 
-    set $ProductId$ = "​firefox"​ +set $ProductId$ = "​firefox"​ 
-    set $OS$ = GetNTVersion +set $OS$ = GetNTVersion 
-    set $FIREFOXVER$ = "​Firefox ​Setup 6.0.exe"​ +set $FIREFOXVER$ = "​Firefox ​Installer.exe"​ 
-    set $SilentSwitch$ = "​-ms"​ +set $SilentSwitch$ = "​-ms"​ 
-;​---------------------------------------------------------------------- +; ----------------------------------------------------------------------
 ; Haben wir genug Speicherplatz?​ ; Haben wir genug Speicherplatz?​
- 
 if not(HasMinimumSpace ("​%SYSTEMDRIVE%",​ "30 MB")) if not(HasMinimumSpace ("​%SYSTEMDRIVE%",​ "30 MB"))
-    ​LogError "Nicht gengend Platz auf C: . 30 MB auf C: fuer Firefox erforderlich."​ +   LogError "Nicht gengend Platz auf C: . 30 MB auf C: fuer Firefox erforderlich."​ 
-    isFatalError +   ​isFatalError 
-    comment "​Bearbeitung beenden und Produktschalter auf failed setzen"​+   ​comment "​Bearbeitung beenden und Produktschalter auf failed setzen"​
 else else
-    ​comment "show product picture"​ +   comment "show product picture"​ 
-    ShowBitmap /3 "​%scriptpath%\firefox.bmp"​ "​Firefox"​+   ​ShowBitmap /3 "​%scriptpath%\firefox.bmp"​ "​Firefox"​ 
 +   if FileExists("​%ScriptPath%\delsub.ins"​) 
 +       ​comment "start delsub.ins"​ 
 +       sub "​%ScriptPath%\delsub.ins"​ 
 +   ​endif 
 +   ​comment "​Message at install time:"​ 
 +   ​Message "​Installing Firefox..."​ 
 +   ​comment "kill a running firefox"​ 
 +   ​killtask "​firefox.exe"​ 
 +   ​comment "check for depotshare"​ 
 +   if not (FileExists("​%SCRIPTPATH%"​)) 
 +       ​DosInAnIcon_TryToReconnect 
 +   endif
  
-    if FileExists("%ScriptPath%\delsub.ins") +   ​comment ​"start setup program
-        comment "start delsub.ins+   Files_copy_local 
-        ​sub ​"%ScriptPath%\delsub.ins" +   ​Winbatch_firefox 
-    endif+   ​sub_check_exitcode 
 +   comment "kill a running firefox
 +   killtask ​"firefox.exe"
  
-    comment "​Message at install time:"​ +   if not(FileExists($NewExe$)) 
-    Message "​Installing Firefox..."​ +       ​logError "​Fatal:​ After Installation "​+$NewExe$+"​ not found"​ 
-    comment "kill a running firefox"​ +       ​isFatalError 
-    killtask "​firefox.exe"​ +   ​endif
- +
-    comment "check for depotshare"​ +
-    if not (FileExists("​%SCRIPTPATH%"​)) +
-      DosInAnIcon_TryToReconnect +
-    endif +
- +
-    comment "start setup program"​ +
-    Files_copy_local +
-    Winbatch_firefox +
-    sub_check_exitcode +
- +
-    comment "kill a running firefox"​ +
-    killtask "​firefox.exe"​ +
- +
-    if not(FileExists($NewExe$)) +
-        logError "​Fatal:​ After Installation "​+$NewExe$+"​ not found"​ +
-        isFatalError +
-    endif+
  
    ​comment "del temporary files"    ​comment "del temporary files"
    ​Files_del    ​Files_del
- 
 endif endif
- +  ​ 
 +  
 [Files_copy_local] [Files_copy_local]
 copy -x "​%SCRIPTPATH%\$FIREFOXVER$"​ c:\tmp copy -x "​%SCRIPTPATH%\$FIREFOXVER$"​ c:\tmp
Line 190: Line 171:
 ; http://​msdn.microsoft.com/​en-us/​library/​aa368542.aspx ; http://​msdn.microsoft.com/​en-us/​library/​aa368542.aspx
 if ($ExitCode$ = "​0"​) if ($ExitCode$ = "​0"​)
-   comment "looks good: setup program gives exitcode zero"​ +  ​comment "looks good: setup program gives exitcode zero"​ 
-else +  else 
-   ​comment "Setup program gives a exitcode unequal zero: "​+$ExitCode$ +  comment "Setup program gives a exitcode unequal zero: "​+$ExitCode$ 
-   ​if ($ExitCode$ = "​1605"​) +  if ($ExitCode$ = "​1605"​) 
-      comment "​ERROR_UNKNOWN_PRODUCT ​  ​1605 ​  This action is only valid for products that are currently installed."​ +     ​comment "​ERROR_UNKNOWN_PRODUCT ​  ​1605 ​  This action is only valid for products that are currently installed."​ 
-      comment "​Uninstall of a not installed product failed - no problem"​ +     ​comment "​Uninstall of a not installed product failed - no problem"​ 
-   ​else +  else 
-      if ($ExitCode$ = "​1641"​) +     ​if ($ExitCode$ = "​1641"​) 
-         ​comment "looks good: setup program gives exitcode 1641"​ +        comment "looks good: setup program gives exitcode 1641"​ 
-         ​comment "​ERROR_SUCCESS_REBOOT_INITIATED ​  ​1641 ​  The installer has initiated a restart. This message is indicative of a success."​ +        comment "​ERROR_SUCCESS_REBOOT_INITIATED ​  ​1641 ​  The installer has initiated a restart. This message is indicative of a success."​ 
-      else +     ​else 
-         ​if ($ExitCode$ = "​3010"​) +        if ($ExitCode$ = "​3010"​) 
-            comment "looks good: setup program gives exitcode 3010"​ +           ​comment "looks good: setup program gives exitcode 3010"​ 
-            comment "​ERROR_SUCCESS_REBOOT_REQUIRED ​  ​3010 ​  A restart is required to complete the install. This message is indicative of a success."​ +           ​comment "​ERROR_SUCCESS_REBOOT_REQUIRED ​  ​3010 ​  A restart is required to complete the install. This message is indicative of a success."​ 
-         ​else +        else 
-            logError "​Fatal:​ Setup program gives an unknown exitcode unequal zero: "​+$ExitCode$ +           ​logError "​Fatal:​ Setup program gives an unknown exitcode unequal zero: "​+$ExitCode$ 
-            isFatalError +           ​isFatalError 
-         ​endif +        endif 
-      endif +     ​endif 
-   ​endif+  endif
 endif endif
 +</​code>​
  
---- END SCRIPT ---- +==== uninstall.ins ​====
- +
-uninstall.ins+
  
 +<code winst>
 ; Copyright (c) uib gmbh (www.uib.de) ; Copyright (c) uib gmbh (www.uib.de)
 ; This sourcecode is owned by uib gmbh ; This sourcecode is owned by uib gmbh
Line 242: Line 223:
 Set $INST_SystemType$ = GetSystemType Set $INST_SystemType$ = GetSystemType
 set $INST_architecture$ = GetProductProperty("​install_architecture","​system specific"​) set $INST_architecture$ = GetProductProperty("​install_architecture","​system specific"​)
- 
  
 Set $LogDir$ = "​%SystemDrive%\tmp"​ Set $LogDir$ = "​%SystemDrive%\tmp"​
- 
 ; ---------------------------------------------------------------- ; ----------------------------------------------------------------
 ; - Please edit the following values ​                            - ; - Please edit the following values ​                            -
 ; ---------------------------------------------------------------- ; ----------------------------------------------------------------
-Set $ProductId$ ​      = "firefox6"+Set $ProductId$ ​      = "firefox"
 Set $MozInstallDir$ ​   = "​%ProgramFilesDir%\Mozilla Firefox"​ Set $MozInstallDir$ ​   = "​%ProgramFilesDir%\Mozilla Firefox"​
 Set $LicenseRequired$ = "​false"​ Set $LicenseRequired$ = "​false"​
Line 257: Line 236:
  
 comment "Show product picture"​ comment "Show product picture"​
-ShowBitmap "​%ScriptPath%\"​ + $ProductId$ + ".png" $ProductId$+ShowBitmap "​%ScriptPath%\"​ + $ProductId$ + ".bmp" $ProductId$
  
 Message "​Uninstalling " + $ProductId$ + " ..." Message "​Uninstalling " + $ProductId$ + " ..."
Line 284: Line 263:
 ; $WindowsSoftwareId$ = "​..."​ ; $WindowsSoftwareId$ = "​..."​
 ; set $result$ = FreeLicense("",​ "",​ $WindowsSoftwareId$) ; set $result$ = FreeLicense("",​ "",​ $WindowsSoftwareId$)
 +</​code>​
  
  
---- END SCRIPT --- +==== delsub.ins ​====
- +
-delsub.ins+
  
 +<code winst>
 ;​************************************************************ ;​************************************************************
 ; ;
Line 326: Line 305:
 [Files_copy_deinstall] [Files_copy_deinstall]
 delete -sf "​$MozInstallDir$\"​ delete -sf "​$MozInstallDir$\"​
 +  ​
 [Registry_delete_current_version] [Registry_delete_current_version]
 OpenKey [HKEY_LOCAL_MACHINE\Software\Mozilla\Mozilla Firefox] OpenKey [HKEY_LOCAL_MACHINE\Software\Mozilla\Mozilla Firefox]
Line 359: Line 338:
         endif         endif
 endif endif
- +</​code>​
---- END SCRIPT ---+
  

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