Sign in to follow this  
Followers 0
pcjunki

download firefox with prefs

1 post in this topic

I wanted to share some code I pushed out to our company's computers.

downloads firefox, installs with preferences set.

InetGet("https://download.mozilla.org/?product=firefox-40.0.3-SSL&os=win&lang=en-US", @TempDir & "/firefox40.0.3.exe")
ShellExecuteWait(@TempDir & "/firefox40.0.3.exe", "-ms")
InetClose(-1)

Sleep(10000)



FileWriteLine("C:\Program Files\Mozilla Firefox\Override.ini", "[XRE]")
FileWriteLine("C:\Program Files\Mozilla Firefox\Override.ini", "EnableProfileMigrator=False")

FileWriteLine("C:\Program Files\Mozilla Firefox\browser\Override.ini", "[XRE]")
FileWriteLine("C:\Program Files\Mozilla Firefox\browser\Override.ini", "EnableProfileMigrator=False")

FileWriteLine("C:\Program Files\Mozilla Firefox\defaults\pref\local-settings.js", 'pref("general.config.obscure_value", 0);')
FileWriteLine("C:\Program Files\Mozilla Firefox\defaults\pref\local-settings.js", 'pref("general.config.filename", "mozilla.cfg");')

FileWriteLine("C:\Program Files\Mozilla Firefox\mozilla.cfg", 'pref("browser.shell.checkDefaultBrowser", false);')
FileWriteLine("C:\Program Files\Mozilla Firefox\mozilla.cfg", 'pref("browser.startup.homepage_override.mstone", "ignore");')
FileWriteLine("C:\Program Files\Mozilla Firefox\mozilla.cfg", 'pref("browser.toolbarbuttons.introduced.pocket-button", false);')
FileWriteLine("C:\Program Files\Mozilla Firefox\mozilla.cfg", 'pref("browser.pocket.enabled", false);')
FileWriteLine("C:\Program Files\Mozilla Firefox\mozilla.cfg", 'pref("loop.enabled", false);')
FileWriteLine("C:\Program Files\Mozilla Firefox\mozilla.cfg", 'pref("browser.rights.3.shown", true);')
FileWriteLine("C:\Program Files\Mozilla Firefox\mozilla.cfg", 'pref("browser.startup.homepage","https://www.google.com/?gws_rd=ssl");')

 

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0