|
|
#1 |
|
Junior Member
Join Date: Aug 2014
Posts: 44
|
Weird behaviour of "Rename" command
Hi,
from time to time I encounter issues while performing a backup of the current $INSTDIR during the upgrade process. In order to make sure that everything is closed and nothing blocks the move process, I am first closing everything that I know of and then, just to make sure, running LockedList on $INSTDIR and closing everything else that might still be open (like log files, for example). Here are the functions I am using: code: Then, in another function (that moves the existing folder), I use this: code: I then perform the following test:
While executing the installer, putty.exe is closed, Notepad is closed (with the log file) but then the Rename command fails. If at this point I try to rename the folder manually, it works!. The problem seems to be with renaming through NSIS. The folder where I try to move does not exist so there is nothing to overwrite. Any idea why this might be happening? Could it be because I have a Windows Explorer open and NSIS has some trouble with that? Thank you! |
|
|
|
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|