Inno Setup 如何在卸载过程中不删除特殊文件夹

Inno Setup how to NOT delete special folder during uninstall

我想知道在卸载我的应用程序后是否可以将我的 "special" 文件夹保留在分区上?我需要为可能的下一次安装保留一些文件,这一次对我来说非常有用。也许有什么方法可以设置确切的卸载位置或类似的东西吗?

有什么想法吗?

为了避免在卸载过程中删除已安装的 files/folders,您应该使用 [Files] section 中描述的 uninsneveruninstall 标志。

uninsneveruninstall

Never remove the file. This flag can be useful when installing 
very common shared files that shouldn't be deleted under any circumstances, 
such as MFC DLLs.
Note that if this flag is combined with the sharedfile flag, 
the file will never be deleted at uninstall time but the reference 
count will still be properly decremented.