éric le hénaff schrieb:
> answers below ..
> 
> 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.
> and add the <package> block to the local database.

To mark it as "installed", yes.


>> I guess you didn't install 0.8.0.1 with WPKG?
>>
> yes.
>> So, for you, just increasing the revision by one in the XML file 
>> should trigger the upgrade.
> i thought i had done it but i'm not sure.
> I'll try again.
>> And, you can add more checks (for file size etc.).
> True.
> So i guess that when i want to upgrade a software that wasnt installed 
> by wpkg i really have to add a check for file size or file version or 
> i'll have to boot twice and change the revision number between the boots ?

More or less (depends on checks etc.).

There is also a "/force" switch, but normally, it shouldn't be used.


-- 
Tomasz Chmielewski
http://wpkg.org

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

Reply via email to