spaetz
15th March 2001 08:50 UTC
Currently NSIS allows only to delete empty directories (which is good). But in some rare cases it would be needed to delete a whole directory anyway. I propose to introduce a -f(orce) option that wipes the whole thing.
The problem case I have is that I have a "data" subdirectory which contains an arbitrary directory whose name depends on the used portnumber. So I'd like to be able to wipe the "data" directory brutally not caring what's in there.
jarsonic
15th March 2001 22:46 UTC
I see your problem (and proposed solution), but I think that the danger of this is that potentially some evil developer/terrorist/"1337 h4x0r"-wannabe will program the installer to delete the Windows directory, etc. in the instruction set. It would be like a new class of virus or something.
Basically, I think that your proposed patch has a valid purpose, but the potential misuse of the function could have disasterous results. We also wouldn't want NSIS to get the reputation of being a "virus package" or something.
Just my 2 cents. :D
-- Jarsonic
spaetz
15th March 2001 23:24 UTC
Jupp, I know it is dangerous, but nearly every other installer offers this functionality and if I want to destroy somebodies computer, it can conveniently be done with a
!system "format c: /yes" (or similar) anyway. I used to use deltree, but that isn't provided with W2K anymore (and some other versions), so I can delete c:\Windows on Win9x easily.
justin
16th March 2001 01:58 UTC
Yeah, it's a good thing to have.
http://firehose.net/free/nsis/
has v1.1p, which adds that functionality.
I made it a nice recursive thing with
pretty minimal overhead.
-Justin
spaetz
16th March 2001 02:26 UTC
Thx
Thanks Justin, you rock!
Until now I just popped up a Messagebox on Uninstall telling the user to delete their f...reaking directories themselves :-)
jarsonic
16th March 2001 03:35 UTC
spaetz, I stand corrected :D
My bad. You know, the more I think about it, the more useful that feature wuodl be (especially with the stuff I'm making right now).
Thanks for the new version, Justin!
--Peace--
-- Jarsonic