[wpkg-users] Prevent Firefox 31 ESR to be installed as default PDF viewer?

Marco Gaiarin gaio at sv.lnf.it
Tue Oct 21 09:55:31 CEST 2014


Mandi! Luca Manganelli
  In chel di` si favelave...

> It seems that Firefox 31 ESR ignores the presence of Adobe Reader
> and thus "steals" the PDF extension, running the internal PDF.js
> viewer.

It is a know problem of the recent release of FF. It is really loosely
related to WPKG, because it is a ''user'' trouble.

if you use the system-wide 'set FF as default'', eg, in WPKG:

	<!-- Boh, esce con exit status 2 ma fa il suo sporco lavoro... -->
        <install cmd='"%ProgramFiles32%\Mozilla Firefox\uninstall\helper.exe" /SetAsDefaultAppGlobal' >
                <exit code='2' />
        </install>

it works, without breaking PDFs, but this is only the system-wide
default.


If instead you use the user-side comand '/SetAsDefaultAppUser' (or if
you click on the browser 'set me as default client'), the PDF trouble
appear.


To fix/mitigate it i've put on netlogon script:

 :: Setto FF e TB come programmi di default lato utente.
 :: (TB non funziona, si veda https://bugzilla.mozilla.org/show_bug.cgi?id=870348)
 ::
 if exist "%ProgramFiles32%\Mozilla Firefox\uninstall\helper.exe" (
         "%ProgramFiles32%\Mozilla Firefox\uninstall\helper.exe" /SetAsDefaultAppUser
 )
 if exist "%ProgramFiles32%\Mozilla Thunderbird\uninstall\helper.exe" (
         "%ProgramFiles32%\Mozilla Thunderbird\uninstall\helper.exe" /SetAsDefaultAppUser
 )
 :: Ma purtroppo FF 31+ ha un baco, per cui se eseguo quanto sopra, pretende di essere l'applicazione predefinita
 :: anche per PDF e altri file. Faccio Pulizia.
 ::
 reg query "HKCU\Software\Classes\.pdf" /f "FirefoxHTML" /d /e >nul 2>nul
 if %ERRORLEVEL% equ 0 (
         reg delete "HKCU\Software\Classes\.pdf" /f >nul
 )
 reg query "HKCU\Software\Classes\.oga" /f "FirefoxHTML" /d /e >nul 2>nul
 if %ERRORLEVEL% equ 0 (
         reg delete "HKCU\Software\Classes\.oga" /f >nul
 )
 reg query "HKCU\Software\Classes\.ogg" /f "FirefoxHTML" /d /e >nul 2>nul
 if %ERRORLEVEL% equ 0 (
        reg delete "HKCU\Software\Classes\.ogg" /f >nul
 ) 
 reg query "HKCU\Software\Classes\.ogv" /f "FirefoxHTML" /d /e >nul 2>nul
 if %ERRORLEVEL% equ 0 (
         reg delete "HKCU\Software\Classes\.ogv" /f >nul
 )


so at every logon FF became the default browser, but i delete also the wrong
data.


There's also a bugreport just opened on mozilla BTS, but i've lost the link.


Salutami la tua splendida città. ;-)

-- 
dott. Marco Gaiarin				        GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''                    http://www.sv.lnf.it/
  Polo FVG   -   Via della Bontà, 7 - 33078   -   San Vito al Tagliamento (PN)
  marco.gaiarin(at)lanostrafamiglia.it   t +39-0434-842711   f +39-0434-842797

		Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
	   http://www.lanostrafamiglia.it/chi_siamo/5xmille.php
	(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)



More information about the wpkg-users mailing list