Mandi! chiddie
  In chel di` si favelave...

> Is there a way to deploy a new settings.xml file to the clients that
> overrides the old one?

Sure! You can use:

        %ProgramFiles%\WPKG\wpkginst.exe --SETTINGSFILE=%WPKGROOT%\settings.xml

i use a recipe like that:

 <package
        id="wpkg-settings"
        name="WPKG Settings"
        revision="20120120:2"
        priority="5"
        reboot="false">
        <depends package-id="wpkg" />

        <check type="file" condition="datemodifyolderthan" 
path="%WPKGROOT%\settings.xml" value="@%SystemRoot%\system32\wpkg.old" />

        <install cmd='%ProgramFiles%\WPKG\wpkginst.exe 
--SETTINGSFILE=%WPKGROOT%\settings.xml' />
        <upgrade include="install" />
        <downgrade include="upgrade" />
 </package>


Consider that settings are applied but used the next time wpkg run, so
if you write recipe that depend on some settings.xml modification, take
some precautions.

-- 
dott. Marco Gaiarin                                 GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''                http://www.sv.lnf.it/
  Polo FVG  -  Via della Bontà, 7 - 33078  -  San Vito al Tagliamento (PN)
  marco.gaiarin(at)sv.lnf.it      tel +39-0434-842711  fax +39-0434-842797

                Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
           http://www.lanostrafamiglia.it/chi_siamo/5xmille.php
        (cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
_______________________________________________
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users

Reply via email to