KlaasT
12th September 2006 19:28 UTC
relative paths with copyfiles
Hi.
I know relative paths are bad with copyfiles. But I have folders A with subfolder B. There there a 2 files in folder B and when one of the applications is executed it should copy this file from folder B back up to folder A.
For example
CopyFiles $EXEDIR\file.exe $EXEDIR\.. but somehow this idea won't work.
Have you got any idea of what I could use there?
Thanks
n0On3
13th September 2006 01:12 UTC
I guess the problem is the ".." on the last path.
If you can't come up with another way, you can use the function GetParent which I can't find at the moment.
http://nsis.sourceforge.net/Special:...etparent&go=Go
should be here, but sourceforge is lazy right now.
KlaasT
14th September 2006 18:37 UTC
I tried the getparent and inserted it. I used Push $EXEDIR however it still won't copy the file to the parent directory.
Any ideas?
Afrow UK
14th September 2006 18:39 UTC
It would help if you showed your code.
-Stu
KlaasT
15th September 2006 17:32 UTC
Ok. I just found the error. Got the paths wrong so my mistake.