<div dir="ltr"><div>Hi,</div><div><br></div><div>In CPack NSIS template I came across a variable CPACK_NSIS_DELETE_FILES. When the NSIS script is generated, this variable is expanded to "nsis delete commands" for all the cmake install commands.</div><div><br></div><div>The proble with this is, if the file is locked it will not be deleted. To overcome this NSIS has a "REBOOTOK" flag  in the delete command. When the system is reboot these locked files will be deleted.</div><div><br></div><div>eg.</div><div><br></div>Delete /REBOOTOK "$INSTDIR\uninst.exe"<br><div><br></div><div>Does CMake/CPack provide any mechanism for deleting locked files ?</div><div><br></div><div>Thanks,</div><div>  Lloyd</div><div><br></div></div>