[wpkg-users] removing a menu

Joe joe at freakyacres.com
Mon Feb 15 16:37:21 CET 2010


Prior to upgrading to 1.1.2 this package worked ok.  Now I get an error saying the package is already
installed but the check failed.  I am trying to remove a directory from certain computers.  If the
directory exists it should do the install which deletes the directory.  On my computer the directory
is gone but the error message persists.   The <upgrade> and <remove> commands are not used.  What am
I doing wrong?

<package
   id="RemovePrgsMenu"
   name="Remove Progress from start menu"
   revision="1"
   priority="100">

   <check type="logical" condition="not">
     <check type="file" condition="exists" path="C:\Documents and Settings\All Users\Start Menu\Programs\PROGRESS 9.1D 
  Shared Network Installation" />
   </check>

   <install cmd='cmd /C rmdir /s /q "C:\Documents and Settings\All Users\Start Menu\Programs\PROGRESS 9.1D Shared 
Network Installation"' />
   <upgrade cmd='cmd /C rmdir /s /q "C:\Documents and Settings\All Users\Start Menu\Programs\PROGRESS 9.1D Shared 
Network Installation"' />
   <remove cmd='cmd /C  rmdir /s /q "C:\Documents and Settings\All Users\Start Menu\Programs\PROGRESS 9.1D Shared 
Network Installation"' />
</package>

Here is the portion of the logs that refers to it...


2010-02-15 09:45:13, DEBUG   : Checking existence of package: Remove Progress from start menu
2010-02-15 09:45:13, DEBUG   : Package 'Remove Progress from start menu' (RemovePrgsMenu): Installed but checks failed. 
Re-Installing.
2010-02-15 09:45:13, DEBUG   : Installation of references (dependencies) for 'Remove Progress from start menu' 
(RemovePrgsMenu) successfully finished.
2010-02-15 09:45:13, INFO    : Installing 'Remove Progress from start menu' (RemovePrgsMenu)...
2010-02-15 09:45:13, DEBUG   : Saving current environment
2010-02-15 09:45:13, DEBUG   : Reading variables from package Remove Progress from start menu
2010-02-15 09:45:13, DEBUG   : Reading variables from profile[s]
2010-02-15 09:45:13, DEBUG   : Getting profiles which apply to this node.
2010-02-15 09:45:13, DEBUG   : 1 profiles apply to this host.
2010-02-15 09:45:13, DEBUG   : Reading variables from profile other
2010-02-15 09:45:13, DEBUG   : Reading variables from host .+
2010-02-15 09:45:13, DEBUG   : Install type: install
2010-02-15 09:45:13, DEBUG   : Fetched 1 install command(s).
2010-02-15 09:45:13, DEBUG   : Found system locale: 409
2010-02-15 09:45:13, DEBUG   : Found language definition node for language ID 409
2010-02-15 09:45:13, INFO    : User notification suppressed. Message: The automated software installation utility has or 
is currently applying software updates to your system. Please check the time shown at the beginning of this message to 
determine if it is out of date. If not, please save all your open documents, as the system might require a reboot. If 
so, the system will be rebooted with no warning when installation is complete. Thank you.
2010-02-15 09:45:13, DEBUG   : Executing command: cmd /C rmdir /s /q "C:\Documents and Settings\All Users\Start 
Menu\Programs\PROGRESS 9.1D Shared Network Installation"
2010-02-15 09:45:14, ERROR   : Could not process (install) package 'Remove Progress from start menu' 
(RemovePrgsMenu):|Exit code returned non-successful value (2) on command 'cmd /C rmdir /s /q "C:\Documents and 
Settings\All Users\Start Menu\Programs\PROGRESS 9.1D Shared Network Installation"'.
2010-02-15 09:45:14, DEBUG   : Cleaning up temporary downloaded files
2010-02-15 09:45:14, DEBUG   : Restoring previous environment.



More information about the wpkg-users mailing list