[wpkg-users] RMDIR command not working via WPKG

Stefan Pendl stefan.pendl.71 at gmail.com
Tue Jan 3 18:18:18 CET 2012


Am 03.01.2012 17:59, schrieb chiddie:
> ====================================
> While the xcopy command line works (i tried the package removing the rmdir
> line), the
> <install cmd='rmdir /s /q "%programfiles(x86)%\Squiggle" ' />  line gives an
> error in the log:
>
> "Command 'rmdir /s /q "%programfiles(x86)%\Squiggle"' ('rmdir /s /q
> "C:\Program Files (x86)\Squiggle" ') was unsuccessful.|The system cannot
> find the file specified.|"
>
> Notice that if i execute the same command directly on a target machine via
> command prompt, the rmdir command works just fine (giving i open the prompt
> with administrative rights, of course).
>
> Where am i mistaking?
>

XCOPY is an executable file, where RMDIR is just a command prompt command.

The following will work.

<install cmd='%ComSpec% /c rmdir /s /q "%programfiles(x86)%\Squiggle" ' />

In addition you may have to check for the folders existence to avoid an 
error too.


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