[wpkg-users] versiongreaterorqual dont remove!‏

Stefan Pendl stefan.pendl.71 at gmail.com
Mon Aug 6 17:05:40 CEST 2012


Am 06.08.2012 12:18, schrieb Hamza K.:
> Hi i dont understand that..
>   my steps:
>
> 1. i have install the version 1.9.0 of unlocker
> 2. i write in the upgrade the command: <upgrade cmd='%ComSpec% /C md
> "C:\Hallo!"'/> because i dont know if he does a upgrade WPKG install the
> newer Software without the versiongreeaterorequal too. But i want he
> does it with versiongreaterorequal. So i change version of unlocker
> 1.9.1 now he must do a upgrade.
> 3. WPKG do a upgrade(but no "Hallo!" directory in C:... that means for
> me he dont do a upgrade.) and if i want to uninstall he do nothing.
> Here is the Package,LOG and WPKG.xml file:
>

--snip

> 2012-08-06 11:57:19, DEBUG   : Executing command: '%ComSpec% /C MOVE
> "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\%PROGRAMMNAME%"
> "C:\ProgramData\Microsoft\Windows\Start
> Menu\Programs\Anwendungen\%KATEGORIE%"' ('C:\Windows\system32\cmd.exe /C
> MOVE "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Unlocker"
> "C:\ProgramData\Microsoft\Windows\Start
> Menu\Programs\Anwendungen\System-Programme"').
> 2012-08-06 11:57:19, ERROR   : Could not process (install) package
> 'Unlocker' (unlockerx64):|Exit code returned non-successful value (1) on
> command '%ComSpec% /C MOVE "C:\ProgramData\Microsoft\Windows\Start
> Menu\Programs\%PROGRAMMNAME%" "C:\ProgramData\Microsoft\Windows\Start
> Menu\Programs\Anwendungen\%KATEGORIE%"'.

The folder "C:\ProgramData\Microsoft\Windows\Start 
Menu\Programs\Unlocker" or "C:\ProgramData\Microsoft\Windows\Start 
Menu\Programs\Anwendungen\System-Programme" is missing, so the upgrade 
fails.

You will have to include a check to move the folder only if it exists, 
or you allow "any" exit code for this command.

Resolving this problem should make sure the upgrade works.

If you have a problem, always check the log file for a line containing " 
ERROR " ;-)


--
Stefan P.

Top-posting:
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



More information about the wpkg-users mailing list