[wpkg-users] Firefox 3.6.8 set homepage check issue

Dehennin Daniel daniel.dehennin at ac-caen.fr
Wed Jan 19 23:04:28 CET 2011


Nick Elmendorf <nelmendorf at slcpl.org> a ecrit:

> 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:

[...]

Why not creating a package like this[1]:

<package
   id="firefox-config"
   name="Mozilla Firefox configuration"
   revision="3.6"
   reboot="false"
   priority="10">

   <!-- you can add filesize checking and/or compare -->
   <check type="file" condition="exists" path="%PROGRAMFILES%\Mozilla  
Firefox\defaults\pref\my-global-setup.js"/>
   <check type="file" condition="exists" path="%PROGRAMFILES%\Mozilla  
Firefox\firefox.cfg"/>

   <install cmd='%COMSPEC% /c copy /Y  
"%SOFTWARE%\mozilla\firefox\3.6.8\my-global-setup.js"  
"%PROGRAMFILES%\Mozilla Firefox\defaults\pref\"'>

   <install cmd='%COMSPEC% /c copy /Y  
"%SOFTWARE%\mozilla\firefox\3.6.8\firefox.cfg" "%PROGRAMFILES%\Mozilla  
Firefox\"'>

</package>

[1] Look Mozilla auto configuration at http://wpkg.org/Talk:Firefox




More information about the wpkg-users mailing list