[wpkg-users] Firefox homepage question
Stefan Pendl
stefan.pendl.71 at gmail.com
Thu Sep 8 08:25:38 CEST 2011
> Hi,
> I'm in the process of deploying Firefox to our users. I'd like to initially
> set their homepage to our organization's homepage but allow them to change
> this as they wish.
> When I follow the instructions here
> (http://wpkg.org/Firefox#Setting_and_Locking_Preferences) and amend the
> mozilla.cfg file then the homepage is set as expected. I changed a line in
> this file from lockPref... to pref... and was hoping that this would allow
> the users to set their homepage but instead the option to set the homepage
> is no longer greyed-out but when they change it their change is overwritten
> the next time Firefox is restarted.
> To test this I've tried granting Full control over the mozilla.cfg file (and
> subsequently the entire application folder) but it appears that their
> changes are written to their local profile prefs rather than the one
> specified in defaults\pref\profile.js which is used at startup.
> Any ideas whether what I'm trying to do is possible?
> Thanks,
> Peter
> -------------------------------------------------------------------------
I am using the following package and JS file:
<package
id="FirefoxDefaultsExtension"
name="Mozilla Firefox Extension JH Defaults"
revision="2011.07.29-09.37"
reboot="false"
priority="10">
<depends package-id="Firefox" />
<variable name="PKG_SRC" value="%SOFTWARE%\NT-Install\Firefox" />
<variable name="PKG_DEST" value="%ProgramFiles%\Mozilla Firefox"
architecture="x86"/>
<variable name="PKG_DEST" value="%ProgramFiles(x86)%\Mozilla
Firefox" architecture="x64"/>
<check type="file" condition="sizeequals"
path="%PKG_DEST%\defaults\pref\all-haidlmair.js" value="894" />
<install cmd='%ComSpec% /c copy /v /Y "%PKG_SRC%\all-haidlmair.js"
"%PKG_DEST%\defaults\pref"' />
<upgrade cmd='%ComSpec% /c copy /v /Y "%PKG_SRC%\all-haidlmair.js"
"%PKG_DEST%\defaults\pref"' />
<remove cmd='%ComSpec% /c if exist
"%PKG_DEST%\defaults\pref\all-haidlmair.js" del /f /q
"%PKG_DEST%\defaults\pref\all-haidlmair.js"' />
</package>
all-haidlmair.js:
pref("browser.download.useDownloadDir", false);
pref("browser.search.openintab", true);
pref("browser.startup.homepage", "http://jh_net/");
---
Stefan
More information about the wpkg-users
mailing list