Archive: !delfile


!delfile
I recently upgraded to NSIS 2.17 and used the new compile-time command !delfile as its really helpful cleaning up and noticed two little issues.

1. No support for wildcards

2. If a given file can't be deleted because the file doesn't exist the compilation aborts.
In my opinion the command should only abort if a file that exists can't be deleted and should skip if the file wasn't found.

Could this be changed in next release?

Thanks in Advance


2: Yes, I agree.

This would mean changing the if statement at line 1133 in script.cpp of nsis 2.19 to just return a warning or do nothing at all.

(1: would need far more work)

/Ulf

(Also noted that HM NIS Edit are not aware of those directives)


2. Yes, I agree too.
Is it changed already?


Requested !iffileexists compiler command should help on item 2:

!iffileexists unwanted.txt
!delfile unwanted.txt
!endif

++Vitoco

Hey guys,
The forums are probably not the place to be adding stuff like this becuase after a while, things tend to get buried and forgotten when in the forums.

If you feel so strongly about something that needs updated or added to NSIS, the best place to visit it the main Feature Requests page in SourceForge:
https://sourceforge.net/tracker/?gro...49&atid=373088

Here you can search for existing requests and add notes to them or submit your own new features if what you seek is not already there.


Well additionally i made a feature request but made this posting to check if anybody has a similar issue.

Btw vitocos solution is quite nice. Lets hope one of these solutions find its way in one of the next releases.