简体   繁体   English

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

[英]Inno Setup how to NOT delete special folder during uninstall

I'am wondering is it possible to keep my "special" folder on the partition after I uninstall my app? 我想知道我卸载应用程序后是否可以将“特殊”文件夹保留在分区上? I need to keep some files for possibly next installation and it will be very usefull for me this time. 我需要保留一些文件以便下次安装,这对我来说非常有用。 Maybe is there any way to set exact location to uninstall or something like this? 也许有什么办法可以设置确切的位置来卸载或类似的东西?

Any ideas? 有任何想法吗?

In order to avoid deletion of installed files/folders during the uninstall process you should use uninsneveruninstall flag described in [Files] section . 为了避免在卸载过程中删除已安装的文件/文件夹,您应该使用[Files]部分中描述的uninsneveruninstall标志。

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. 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM