Skip to content
⌘ NSIS Forum Archive

Delete /r not documented (modern ui only?)

7 posts

l_d_allan#edited

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.
Comm@nder21#
/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!
l_d_allan#
Well, the /r flag is accepted by the compiler (and I suppose works?) with the Modern UI.

Also,
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.


HTH
kichik#
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?
l_d_allan#
Sorry ... my error ... Red Face 🧟

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?
kichik#
Well, the correct answer is here, so it could only help someone who encounters the same problem.