[wpkg-users] Thanks for everything - WPKG is nice but it still needs improve

Jens Geile jens.geile at mzbs.de
Thu Mar 27 11:22:55 CET 2008


Hi, 

> > You wrote that after removing Firefox, rebooting and then manually 
> > executing WPKG it did not re-install it. This is exactly the situation I 
> > testet many many times and it works perfectly.
> I've noticed WPKG not installing the application again after it has been uninstalled by a user manually a couple times too but I never actually tested it since i knew there is the /force parameter (which currently doesnt really work ;).
> Since I currently have the resources (test servers and clients as many as I want/need) and time I'll run a couple tests in my test environment tomorrow and supply you with my finding on the issue.
I just ran a test with Firefox. I installed it with WPKG, then uninstalled it using the controll panel, then ran WPKG again and it installed Firefox again.

My setup: "WPKG 1.0-rc8" with "WPKG-Client 1.2-rc6"

config.xml:
<param name='quiet' value='true' />
<param name='nonotify' value='true' />
<param name='force' value='false' />


Settings.xml:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <file>\\iserv\install\wpkg\wpkg.js</file>
  <path-user>LAN2\iserv-ci</path-user>
  <path-password>SECRETPASSWORD</path-password>
  <exec-user>SYSTEM</exec-user>
  <exec-password></exec-password>
  <parameters>/synchronize</parameters>
  <silent>YES</silent>
  <pre-action></pre-action>
  <post-action></post-action>
  <show-GUI>NO</show-GUI>
  <logon-delay>5</logon-delay>
  <logon-message-1>Software wird installiert</logon-message-1>
  <logon-message-2>Bitte warten...</logon-message-2>
  <script-variable name="SOFTWARE">\\iserv\install\software</script-variable>
  <script-variable name="SOFTWARE_ISERV">\\iserv\install\software\iserv</script-variable>
  <script-variable name="SOFTWARE_CUSTOM">\\iserv\install\software\custom</script-variable>
  <priority>normal</priority>
  <stop-service-after-done>YES</stop-service-after-done>
  <laptop-mode>YES</laptop-mode>
  <server-connecting-method>standard</server-connecting-method>
  <server-connecting-ip>iserv</server-connecting-ip>
  <server-connecting-timeout>3</server-connecting-timeout>
  <server-connecting-script-timeout>3</server-connecting-script-timeout>
  <server-connecting-script-file></server-connecting-script-file>
</configuration>


Firefox.xml:
<package id="firefox" name="Mozilla Firefox" revision="2.0.0.12" priority="100" reboot="false" notify="false" vendor="IServ">
  <check type="logical" condition="and">
    <check type="file" condition="exists" path="%PROGRAMFILES%\Mozilla Firefox\firefox.exe" />
    <check type="uninstall" condition="exists" path="Mozilla Firefox (2.0.0.12)" />
  </check>

  <downloads>
    <download source="http://download.mozilla.org/?product=firefox-2.0.0.12&os=win&lang=de" target="firefox/firefox-2.0.0.12-de.exe" checksum="ecd6e6d649c8a288a000c91e99cc13d7" />
  </downloads>

  <install cmd='"%SOFTWARE_ISERV%\firefox\firefox-2.0.0.12-de.exe" -ms -ira' />
  <install cmd='cmd /c IF NOT EXIST "%ALLUSERSPROFILE%\Startmenü\Programme\Internet" MKDIR "%ALLUSERSPROFILE%\Startmenü\Programme\Internet"' />
  <install cmd='cmd /c IF EXIST "%ALLUSERSPROFILE%\Startmenü\Programme\Mozilla Firefox" MOVE /Y "%ALLUSERSPROFILE%\Startmenü\Programme\Mozilla Firefox" "%ALLUSERSPROFILE%\Startmenü\Programme\Internet"' />
  <upgrade cmd='"%SOFTWARE_ISERV%\firefox\firefox-2.0.0.12-de.exe" -ms -ira' />
  <upgrade cmd='cmd /c IF NOT EXIST "%ALLUSERSPROFILE%\Startmenü\Programme\Internet" MKDIR "%ALLUSERSPROFILE%\Startmenü\Programme\Internet"' />
  <upgrade cmd='cmd /c IF EXIST "%ALLUSERSPROFILE%\Startmenü\Programme\Mozilla Firefox" MOVE /Y "%ALLUSERSPROFILE%\Startmenü\Programme\Mozilla Firefox" "%ALLUSERSPROFILE%\Startmenü\Programme\Internet"' />
  <remove cmd='"%PROGRAMFILES%\Mozilla Firefox\Uninstall\helper.exe" /s' />
  <remove cmd='cmd /c IF EXIST "%PROGRAMFILES%\Mozilla Firefox" RMDIR "%PROGRAMFILES%\Mozilla Firefox" /Q /S' />
  <remove cmd='cmd /c IF EXIST "%ALLUSERSPROFILE%\Startmenü\Programme\Internet\Mozilla Firefox" RMDIR "%ALLUSERSPROFILE%\Startmenü\Programme\Internet\Mozilla Firefox" /Q /S' />
</package>


Now the question is: What do we need the /force parameter for?

/force - Uses force when performing actions (does not honour wpkg.xml). Handy when you're not sure if your system is "up to date" with the state described in hosts.xml, packages.xml and profiles.xml (i.e., when someone was adding / removing software by other means than WPKG). It will "scan" your system for all possible packages from packages.xml, and then, install and/or uninstall packages, according to profiles.xml / packages.xml / hosts.xml for a given host. 

WPKG does the exact same thing already without /force?!

-
jens



More information about the wpkg-users mailing list