仅在外部文件存在时安装
Install only if external file exists
我想指示 Inno Setup 只在某个外部文件存在时才安装它。
像这样:
Source: "d:\sources\SomeDLL.dll"; DestDir: {app}; \
Flags: external regserver uninsneveruninstall ignoreversion
但是,我没有找到指示 Inno Setup 在 d:\sources\SomeDLL.dll
不存在时跳过此行/文件的标志。
这可能吗?
谢谢!
试试这个标志:
onlyifdestfileexists
仅当用户系统上已存在同名文件时才安装该文件。如果您的安装是现有安装的补丁,并且您不希望安装用户还没有的文件,则此标志可能很有用。
http://www.jrsoftware.org/ishelp/index.php?topic=filessection
使用skipifsourcedoesntexist
flag:
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.
我想指示 Inno Setup 只在某个外部文件存在时才安装它。
像这样:
Source: "d:\sources\SomeDLL.dll"; DestDir: {app}; \
Flags: external regserver uninsneveruninstall ignoreversion
但是,我没有找到指示 Inno Setup 在 d:\sources\SomeDLL.dll
不存在时跳过此行/文件的标志。
这可能吗?
谢谢!
试试这个标志:
onlyifdestfileexists
仅当用户系统上已存在同名文件时才安装该文件。如果您的安装是现有安装的补丁,并且您不希望安装用户还没有的文件,则此标志可能很有用。
http://www.jrsoftware.org/ishelp/index.php?topic=filessection
使用skipifsourcedoesntexist
flag:
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.