仅在存在外部文件时安装 [英] Install only if external file exists

查看:67
本文介绍了仅在存在外部文件时安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想指示Inno Setup仅在存在某个外部文件时安装该文件.

I would like to instruct Inno Setup to install a certain external file only if does exist.

像这样:

Source: "d:\sources\SomeDLL.dll"; DestDir: {app}; \
    Flags: external regserver uninsneveruninstall ignoreversion

但是,我没有找到一个标志,如果d:\sources\SomeDLL.dll不存在,该标志会指示Inno Setup跳过此行/文件.

However, I did not find a flag that would instruct Inno Setup to skip this line / file if d:\sources\SomeDLL.dll does not exist.

这可能吗?

谢谢!

推荐答案

使用

如果源文件不存在,则此标志指示编译器(或安装程序,如果还使用external标志)则以静默方式跳过条目,而不显示错误消息.

This flag instructs the compiler -- or Setup, if the external flag is also used -- to silently skip over the entry if the source file does not exist, instead of displaying an error message.

这篇关于仅在存在外部文件时安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆