Skip to content
⌘ NSIS Forum Archive

How to force overwrite a file

2 posts

roger_aol#

How to force overwrite a file

Hi,

I have a question of the "File" command and "SetOverwrite" attribution.

There is NO "force overwrite".

Is there a way I can do a "force overwrite"? Which means if a file is not be able to be written to(for example, it is still in use), the "File" command automatically set the reboot flag, and the file can be replaced after reboot.

Just like "Delete" command may not be able to delete a file right now, it set the reboot flag and the file can be deleted after reboot.

Thanks,
Roger
Joost Verburg#
That's because a temporary file has to be created. Someone just modified one of my macros for this situation:

Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.