Skip to content
⌘ NSIS Forum Archive

save list of copied files (with *.*) in order to uninstall them later

3 posts

Guest#

save list of copied files (with *.*) in order to uninstall them later

During my setup I need to copy files from a folder in $EXEDIR to a specific folder like this
CopyFiles "$EXEDIR\folder\*.*" "C:\destFolder"

Now I want to get the list of all the copied files, in order to store it in a log file and then to uninstall only files previously copied.
Am I clear... ?

Can you give me some hint on how to do that ?

Thx
Red Wine#
if you know that dest dir is empty before you extract your files on it, you can use ${Locate} in a function e.g .onInstSuccess to create a file list and pass this list to your uninstaller.
See Instructor's examples on how to use ${Locate} along with other macros from FileFunc.nsh.
Also, Instructor has posted here in forum working examples on creating list for uninstall, so you must perform a forum search about that.
Afrow UK#
Or use this:

with this:


-Stu