hello > So, for you, just increasing the revision by one in the XML file should trigger the upgrade.
I tried that one but the local database wasn't updated and nothing was installed. I changed the revision number from 6 to 0903 to reflect the version number of pdfcreator. i now know why it doesn't work. A string comparison is done between 6 and 0903 instead of a number comparison. so "6 is higher than 0 => do nothing" i removed the 0 and it work better. ELH Tomasz Chmielewski a écrit : > éric le hénaff schrieb: >> hello >> how does it come that the <package> block is added to >> c$\WINNT\system32\wpkg.xml but that the software is finally not >> installed. >> >> PDFCreator 0.8.0.1 is installed on our workstations. >> I added the block below to update to 0.9.3. > >> <check type="uninstall" condition="exists" path="PDFCreator"/> > >> But when i look into c$\Program Files\PDFCreator , The version of >> PDFcreator.exe is still 0.8.0.1. >> What happened ? Any hint ? > > That's expected behaviour. > > Before attempting to execute any "<install ...>" command, WPKG goes > through the "<check ...>" conditions. > > In this case, it sees "PDFCreator" in Software Add/Remove, and > correctly assumes that PDFCreator is installed - and thus, doesn't > execute any "<install ...>" commands. > > I guess you didn't install 0.8.0.1 with WPKG? > > > So, for you, just increasing the revision by one in the XML file > should trigger the upgrade. > > And, you can add more checks (for file size etc.). > > -- Éric LE HÉNAFF École normale supérieure - Centre de ressources informatiques Informaticien, Ingénieur développements et systèmes auprès des bibliothèques de l'ENS Préférez firefox! http://www.mozilla-europe.org/fr/ SVP, évitez de m'envoyer des attachements au format Word, Excel ou PowerPoint. Préférez les formats rtf, csv, html ou pdf au lieu des formats word et excel. Voir http://www.gnu.org/philosophy/no-word-attachments.fr.html pour plus d'explications. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ wpkg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wpkg-users
