Old 12th June 2006, 08:15   #1
flizebogen
Senior Member
 
Join Date: Jan 2002
Location: Berlin
Posts: 171
!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
flizebogen is offline   Reply With Quote
Old 16th August 2006, 12:49   #2
cadwal
Junior Member
 
Join Date: Jan 2004
Location: Sweden
Posts: 8
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)
cadwal is offline   Reply With Quote
Old 19th August 2006, 18:35   #3
UVV
Junior Member
 
Join Date: Jan 2006
Location: Russia, Norilsk
Posts: 22
2. Yes, I agree too.
Is it changed already?
UVV is offline   Reply With Quote
Old 25th August 2006, 22:43   #4
vitoco
Junior Member
 
Join Date: May 2006
Posts: 22
Requested !iffileexists compiler command should help on item 2:
code:
!iffileexists unwanted.txt
!delfile unwanted.txt
!endif


++Vitoco
vitoco is offline   Reply With Quote
Old 26th August 2006, 14:49   #5
Comperio
Major Dude
 
Comperio's Avatar
 
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
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.
Comperio is offline   Reply With Quote
Old 27th August 2006, 14:04   #6
flizebogen
Senior Member
 
Join Date: Jan 2002
Location: Berlin
Posts: 171
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.
flizebogen is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump