Skip to content
⌘ NSIS Forum Archive

Delete Files in use

7 posts

Pravin#

Delete Files in use

HI all,

In Uninstallation section Is there any way to delete the files which are in use by another application. Thanks in advance..!!
Netsurfer24#
Originally Posted by Pravin View Post
In Uninstallation section Is there any way to delete the files which are in use by another application.
No.

You first have to close the other application(s) to free the files or you have a look at the /REBOOTOK switch of the Delete command (http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.1.1)

Gunther

PS: If the files are in use by other applications are you sure these programs do not need these files?
Pravin#
yes.. It does not delete the files which are in use..

is there any other method through which we can force delete??
jpderuiter#
From manual...
If /REBOOTOK is specified and the file cannot be deleted then the file is deleted when the system reboots
jpderuiter#
The locking application must be closed first then.
Use http://nsis.sourceforge.net/LockedList_plug-in to find it.