Rename can't overwrite

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2795 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2003-08-08 22:03:11 +00:00
parent fabf2f79ea
commit 962d787224

View file

@ -52,7 +52,7 @@ Adds file(s) to be extracted to the current output path ($OUTDIR).
\c [/REBOOTOK] source_file dest_file
Rename source_file to dest_file. Functions just like the Win32 API MoveFile, which means you can move a file from anywhere on the system to anywhere else, and you can move a directory to somewhere else on the same drive. If /REBOOTOK is specified, and the file cannot be overwritten, then the file is moved when the system reboots -- if the file will be moved on a reboot, the reboot flag will be set. The error flag is set if the file cannot be renamed (and /REBOOTOK is not used) or if the source file does not exist.
Rename source_file to dest_file. Functions just like the Win32 API MoveFile, which means you can move a file from anywhere on the system to anywhere else, and you can move a directory to somewhere else on the same drive. It also means the destination file must not exist or the move will fail . If /REBOOTOK is specified, and the file cannot be moved, then the file is moved when the system reboots -- if the file will be moved on a reboot, the reboot flag will be set. The error flag is set if the file cannot be renamed (and /REBOOTOK is not used) or if the source file does not exist.
\S2{reservefile} ReserveFile