NSIS - Delete all files except one file -


could 1 clarify me that, when uninstalling need delete form installation folder except license file. how can nsis scripting?

thanks regards, roboalex.

instead of opening file, in anders' third point, i'd way:

rename $instdir\license.txt $pluginsdir\license.txt rmdir /r $instdir # remembering, of course, should care createdirectory $instdir rename $pluginsdir\license.txt $instdir\license.txt 

depending on when gets file can't delete, rmdir /r may leave of behind, believe stop when can't delete something; way rid of properly. lose directory stats, that's not important.

i'd recommend 1 of anders' first 2 solutions on this, though. they're more precise.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -