Archive: Delete /r not documented (modern ui only?)


Delete /r not documented (modern ui only?)
Please ignore this post. My error. Will try to delete entire thread to preclude confusion.

The nsis documentation doesn't mention the /r flag (for recursion?).

This /r flag seems to work with the Modern UI but not "standard" nsis. Is there some "magic" happening such that the MUI includes library.nsh and/or filefunc.nsh?

IMHO, seems flawed that the MUI would change this behavior.
rmdir /r
is available for what
delete /r
seems to want to accomplish.


/r is a flag for RMDir only because RMDir can delete directories(!) recursively.
Delete is for deleting files only it does not have this flag!


There's no such thing as Delete /r, only RMDir /r. Where did you see it?


Well, the /r flag is accepted by the compiler (and I suppose works?) with the Modern UI.

Also,
http://forums.winamp.com/showthread....ht=delete+%2Fr

HTH


The /r switch is not accepted by my compiler and in that thread, right after the message saying Delete /r should work, stonkers says:

This is not in the documentation, and is a compile time error when I try it. The only argument to delete is Reboot. Anyone else?

Sorry ... my error ... Red Face :igor:

I guess I was looking at a commented out statement or something. It was code generated by the EclipsePlugIn and then modified by a nsis newbie with even less nsis experience than myself. I'll try to be more careful before posting.

Perhaps you might remove this entire thread to preclude confusion?


Well, the correct answer is here, so it could only help someone who encounters the same problem.