[wpkg-users] Firefox 3.6.8 set homepage check issue
Nick Elmendorf
nelmendorf at slcpl.org
Wed Jan 19 21:34:36 CET 2011
Hello,
I am currently trying to write a program which changes the firefox 3.6.8 homepage from default to my company's internal page. The problem I'm having is I can't get a check to work.
I have a different WPKG XML that first installs Firefox 3.6.8 normally. Then I have a second WPKG, titled "firefox_homepage.xml" that does the following:
"firefox_homepage.xml"
"<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package
id="firefox_homepage"
name="firefox_homepage"
revision="201101190002"
reboot="false"
priority="50">
<!--Check Command -->
<!-- Install Commands -->
<install cmd='%COMSPEC% /c copy /Y "%SOFTWARE%\mozilla\firefox\3.6.8\browserconfig.properties" "C:\Program Files\Mozilla Firefox"' />
<!--Upgrade Commands -->
<upgrade cmd='%COMSPEC% /c copy /Y "%SOFTWARE%\mozilla\firefox\3.6.8\browserconfig.properties" "C:\Program Files\Mozilla Firefox"' />
</package>
</packages>
As for that bit about browserconfig.properties, if you open yours up is says some generic firefox page. I edited it using notepad+ and changed just the webpage like so:
"browserconfig.properties"
"browser.startup.homepage=http://mycompanywebpage.com
browser.startup.homepage_reset=http://mycompanywebpage.com"
I have tested this lightly and it seems to work (at least on one computer). The issue is the following. We have stations set up that have users log on, EITHER with a department logon OR with a unique user logon. I'm not so concerned about department logons, they seem to work, but I need firefox to change the homepage to mycompanypage.com each time a unique staff ID logs onto any given computer. I.E. if I log onto 4 different computers I would need "firefox_homepage" to run 4 different times. The issue is, how to I write a check into the program so if I log into computer X it sees that "firefox_homepage" has run but then I go log into computer Z and it sees that it still needs to run "firefox_homepage".
I had thought of using a install/upgrade command to put a little notepad file copied from a network drive to the users profile folder on any given computer, but I can't seem to figure that out (it still very well may work, but I do not know). Can anyone think of a solution that could use a check knowing that I might log into any one of say ten computers and it needs to run for not only me, but every user that follows on not only one, but every computer in the network?
Any help would be most appreciated.
Nick Elmendorf
Senior Information Technology Specialist
More information about the wpkg-users
mailing list