Skip to content
⌘ NSIS Forum Archive

NSIS: Rename command not reliable

3 posts

sjuvenal#

NSIS: Rename command not reliable

When I use the Rename command to move a directory, the directory doesn't always get moved.

Rename foo\bar\goop C:\barf

Apparently randomly, the C:\barf directory is not created.

Am I incorrectly using the Rename command?

Any ideas on why it fails 10% of the time?
Takhir#
Another log. volume in 10%.
MSDN: "The one caveat is that the MoveFile function will fail on directory moves when the destination is on a different volume. "
niteflyer#
You should specify the SrcDir as an absolute path. I'm not sure, whether you may rely on the 'current' directory when you execute 'Rename' with a relative path.