Archive: Delete Files in use


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..!!


Originally posted by Pravin
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?

yes.. It does not delete the files which are in use..

is there any other method through which we can force delete??


From manual...

If /REBOOTOK is specified and the file cannot be deleted then the file is deleted when the system reboots

Is there any other way to delete with out a reboot. because i have such a scenario.


The locking application must be closed first then.
Use http://nsis.sourceforge.net/LockedList_plug-in to find it.


Thanks a lot jpderuiter , Netsurfer24 . Will use the above mentioned plugin .