Skip to content
⌘ NSIS Forum Archive

about the "Copy" function

3 posts

n0On3#

about the "Copy" function

When I use the "Copy" function to copy a file to a folder that doesn't exist, NSIS simply sets the error flag (I think). I would like to have a switch for that command to allow the cration of the folder when it doesn't exist.
veekee#
Well, using SetOutPath $INSTDIR/newpath should create the new directory if this does not exist 😉 !
kichik#edited
printf("Oopsy... Someone has already answered the question\n");

//IfErrors should do the trick...