Interesting… So I’ve been setting it for all the future users, but “Global” doesn’t include the current user, who is the one that really needs it. <sigh>
I’ve tested and that does work, thanks. We install Firefox using SCCM with a VBS file. It does other stuff (like turn off the auto-updater) so should be easy enough to include this. Thanks for your testing. Regards Will Will Spratt IT Science Support Specialist Tel: 01904 46 2631 From: Éric Périard [mailto:[email protected]] Sent: 05 January 2017 14:13 To: Nicolas Gardi; William Spratt; [email protected] Subject: RE: [Mozilla Enterprise] Setting Firefox as default using a cmd line I’ve done some testing following this conversation. To make Firefox the default browser for all “future users” use the following command line: x86 "%ProgramFiles(x86)%\Mozilla Firefox\uninstall\helper.exe" /SetAsDefaultAppGlobal x64 "%ProgramFiles%\Mozilla Firefox\uninstall\helper.exe" /SetAsDefaultAppGlobal Observation: When new users login to the system regardless that “Chrome” or “Firefox” or “Internet Explorer” don’t mention being the default browser, for testing purposes I typed google.ca from an explorer window and Firefox was launched every time. However this command does not overwrite pre-exiting users on the system. To make Firefox the default browser for the current user use the following command line: x86 "%ProgramFiles(x86)%\Mozilla Firefox\uninstall\helper.exe" /SetAsDefaultAppUser x64 "%ProgramFiles%\Mozilla Firefox\uninstall\helper.exe" /SetAsDefaultAppUser Observation: This command takes effect immediately and the Firefox browser is set to the current user’s session to as default. If you got SCCM you could have a silent batch file ran with the users’ permission at the login time to set the browser default to Firefox. Or by policy you could deploy batch script that silently sets the user’s default browser. There’s many way to go about this really. Eric From: Enterprise [mailto:[email protected]] On Behalf Of Nicolas Gardi Sent: Thursday, January 05, 2017 4:25 AM To: William Spratt; [email protected]<mailto:[email protected]>; Nicolas Gardi Subject: Re: [Mozilla Enterprise] Setting Firefox as default using a cmd line After some more research I found that this seems to work: "%ProgramFiles(x86)%\Mozilla Firefox\uninstall\helper.exe" /SetAsDefaultAppUser Best, Nicolas From: "Nicolas Gardi" <[email protected]<mailto:[email protected]>> To: "William Spratt" <[email protected]<mailto:[email protected]>>, "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Date: 05 Janvier 2017 08:34 Subject: Re: [Mozilla Enterprise] Setting Firefox as default using a cmd line Hi Will, It has been a while that I am looking for the same thing. The only thing I could do so far is to force https, http and ftp to be opened via registry like: [HKEY_CLASSES_ROOT\https\shell\open\command] @="\"C:\\Program Files (x86)\\Mozilla<file:///\\Mozilla> Firefox\\firefox.exe\" -osint -url \"%1\"" "DelegateExecute"="{17FE9752-0B5A-4665-84CD-569794602F5C}" [HKEY_CLASSES_ROOT\http\shell\open\command] @="\"C:\\Program Files (x86)\\Mozilla<file:///\\Mozilla> Firefox\\firefox.exe\" -osint -url \"%1\"" [HKEY_CLASSES_ROOT\ftp\shell\open\command] @="\"C:\\Program Files (x86)\\Mozilla<file:///\\Mozilla> Firefox\\firefox.exe\" -osint -url \"%1\"" "DelegateExecute"="{17FE9752-0B5A-4665-84CD-569794602F5C}" But that seems not to be the clean way as in FF it shows me the options to make is default... Thanks, Nicolas From: William Spratt <[email protected]<mailto:[email protected]>> To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Date: 03 Janvier 2017 16:16 Subject: [Mozilla Enterprise] Setting Firefox as default using a cmd line Hi All, So during the interactive install, the installer prompts if the user wants Firefox to be the default browser. I install using a VBA script to copy settings files over before silently installing, but I can’t find the setting to make it default. Looking on the internet suggests these command lines should work: C:\Program Files (x86)\Mozilla Firefox\firefox.exe -setDefaultBrowser C:\Program Files (x86)\Mozilla Firefox\uninstall\helper.exe /SetAsDefaultAppGlobal However, once install is complete I check under “options” in Firefox and it’s still showing “not the default browser”. Running in a Windows 7 environment, but we’re shortly updating to Windows 10. We distribute Firefox via the script in SCCM, but I’m looking to get the script working locally before trying to remotely install though SCCM. Each device tends to only have one user, so not bothered about setting it automatically as default for all Window 7 profiles on the machine. Has anyone dealt with this before? Regards Will Will Spratt IT Scientific Support Specialist Fera Science Ltd. [email protected]<mailto:[email protected]> | Tel +44 (0)1904 46 2631 | Mob +44 (0)7810855621 www.fera.co.uk<http://www.fera.co.uk/> | Twitter<https://twitter.com/ferascience> | LinkedIn<https://www.linkedin.com/company/fera-science> | YouTube<http://www.youtube.com/user/FeraUK1> [OriGen-Logo] Introducing OriGen - Fera’s new contamination traceback service Utilising whole genome sequencing we can help you prevent future product recalls For more details click here<http://fera.co.uk/food-safety-quality/riskidentification/origen.cfm>.
_______________________________________________ Enterprise mailing list [email protected] https://mail.mozilla.org/listinfo/enterprise To unsubscribe from this list, please visit https://mail.mozilla.org/listinfo/enterprise or send an email to [email protected] with a subject of "unsubscribe"

