FriBen
11th January 2005 14:01 UTC
File /r new behavior?
I've just updated my install script in order to be used with the nsis new version (2.2 -> 2.4).
After changing the name of the mui functions (I hope this will work in the same way as in the previous version. Ex: mui_pagecommand_welcome -> mui_page_welcome), I've compiled it without errors.
The problem is that when I execute the installer it fails in line File /r mydirectory and popups a message with abort,retry and ignore buttons saying that files cannot be copied. In this directory there are subdirectories but it doesn't work for any file. I have tried using with an * but the same error occurs, these files are not copied.
If somebody could help me it would be very helpful. Thanks in advance!!!
kichik
11th January 2005 14:11 UTC
This thread should explain the change.
FriBen
11th January 2005 14:27 UTC
Thanks for your fast reply!! I've read the linked thread but maybe I don't understand it correctly but if that was a bug it would be solved in new versions, no?.
What you mean is that it should work in a way like this?
File /r mydirectory\*
Because using this instruction it only works for files directly in mydirectory but not for the subdirectories.
BTW I've tried to do it in another way and then it works without /r in the following way:
File mydirectory\*.*
File mydirectory\subdirectory1\*.*
File mydirectory\subdirectory2\*.*
...
Anyway, thanks but it could be very anoying to write this for many subdirectories.
kichik
11th January 2005 14:30 UTC
`File /r mydirectory\*` should include all of the subdirectories under mydirectory. It will not include other files or directories named mydirectory below the current working directory like `File /r mydirectory` does.
Afrow UK
11th January 2005 14:30 UTC
I thought that way should add subdirectories too...
-Stu
FriBen
11th January 2005 14:57 UTC
Ok, ok I think I start to understand it but I could talk about this for centuries and I wouldn't understand it completely. It's a bit complicated.
Thanks for your patience.