Hi,
Found this batch file and vbscript online that sets auto update = false for Firefox. Seems like it would work. Haven't tested either I would like to reverse it so it would be true and not false. Can someone tell me if the vbscript is correct
isableFirefoxUpdate
for /F "tokens=1 delims= " %%a in ('dir "%appdata%\Mozilla\Firefox\Profiles" /b') do
call isableFirefoxUpdateSub %%a
goto isableFirefoxUpdateEnd
isableFirefoxUpdateSub
type "%appdata%\Mozilla\Firefox\Profiles\%1\prefs.js" | find "app.update.enabled" | find "true"
if %errorlevel%==1 echo user_pref("app.update.enabled", true);>>"%appdata%\Mozilla\Firefox\Profiles\%1\prefs.js"
exit /b
:BlockFirefoxUpdateEnd - See more at:
--------------------------------------------------------------------------------------------------------------------------------------------------
Set WshShell = CreateObject("WScript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")
sProgPath = GetEnvironmentVariable ("ProgramFiles")
sinstalldir= sprogfiles & "\Mozilla Firefox"
currentDirectory = left(WScript.ScriptFullName,(Len(WScript.ScriptFullName))-(len(WScript.ScriptName)))
srcFilePath = currentDirectory & "Payload\prefs.js"
destpath = sInstalldir & "\defaults\Profile\"
fso.CreateFolder destpath
fso.copyfile srcFilePath, destpath, TRUE - See more at:
Found this batch file and vbscript online that sets auto update = false for Firefox. Seems like it would work. Haven't tested either I would like to reverse it so it would be true and not false. Can someone tell me if the vbscript is correct
isableFirefoxUpdate
for /F "tokens=1 delims= " %%a in ('dir "%appdata%\Mozilla\Firefox\Profiles" /b') do
call isableFirefoxUpdateSub %%a
goto isableFirefoxUpdateEnd
isableFirefoxUpdateSub
type "%appdata%\Mozilla\Firefox\Profiles\%1\prefs.js" | find "app.update.enabled" | find "true"
if %errorlevel%==1 echo user_pref("app.update.enabled", true);>>"%appdata%\Mozilla\Firefox\Profiles\%1\prefs.js"
exit /b
:BlockFirefoxUpdateEnd - See more at:
--------------------------------------------------------------------------------------------------------------------------------------------------
Set WshShell = CreateObject("WScript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")
sProgPath = GetEnvironmentVariable ("ProgramFiles")
sinstalldir= sprogfiles & "\Mozilla Firefox"
currentDirectory = left(WScript.ScriptFullName,(Len(WScript.ScriptFullName))-(len(WScript.ScriptName)))
srcFilePath = currentDirectory & "Payload\prefs.js"
destpath = sInstalldir & "\defaults\Profile\"
fso.CreateFolder destpath
fso.copyfile srcFilePath, destpath, TRUE - See more at: