Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想锁定一个文件以防止它在安装过程中被删除,但我需要同时读取这个文件。我怎样才能使用 NSIS 做到这一点?
FileOpen $0 "$instdir\myfile.txt" r应该阻止删除并允许您从中读取...
FileOpen $0 "$instdir\myfile.txt" r