Brian May wrote:
> On Mon, 2007-11-12 at 11:27 +0900, Gregory Orange wrote:
>> I have used a script to (among other things) set up our proxy to a
>> particular autoproxy using information from the following page. I just
>> run a batch file with the necessary changes after the Firefox
>> installation finishes (or as part of the same batch file that calls the
>> Firefox install).
>
> Interesting approach, although I am still not clear on the details (I
> can't seem to see the batch file anywhere in the page given - am I
> bind?)
You're not blind - I've had a look and the batch file itself is my
creation from scratch. The content of it however is learned mostly if
not entirely from those pages I mentioned. Here's the crux of it:
--cut--
set SED="%PROGRAMFILES%\GnuWin32\bin\sed.exe"
:: Disable import wizard
copy %SOURCE%\override.ini "%PROGRAMFILES%\Mozilla Firefox\"
:: Set default homepage
C:
cd "%PROGRAMFILES%\Mozilla Firefox"
ren browserconfig.properties browserconfig.properties.moe_orig
type browserconfig.properties.moe_orig | %SED% -r
s/^browser.startup.homepage=.*/browser.startup.homepage=http:\/\/intranet/
> browserconfig.properties
:: Set default proxies
C:
cd "%PROGRAMFILES%\Mozilla Firefox\greprefs"
copy all.js all.js.moe_orig
type all.js | %SED% -r
s/^pref(.*network.proxy.autoconfig_url.*);/pref(\"network.proxy.autoconfig_url\",\"http:\/\/intranet\/proxy.pac\");/
> tmp.js
type tmp.js | %SED% -r
s/^pref(.*network.proxy.type.*);/pref(\"network.proxy.type\",2);/ > all.js
del tmp.js
--cut--
(override.ini is an empty file)
> It seems to work. The downside of this method though, is I have to redo
> the changes with every release of firefox.
That's the precise downside that has sent me running from repackaging,
leaving it as a last resort. I'm now returning to it for another package
on a much slower release cycle (ie one we develop entirely in house).
--
- ---- -----
Gregory Orange Phone: +61 8 9387 7955
System Administator Fax: +61 8 9387 6686
RPS MetOcean http://www.metoceanengineers.com
System Administrators Guild of Australia http://www.sage-au.org.au
- ---- -----
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
unattended-info mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unattended-info