Install only if external file exists

前端 未结 2 1778
醉酒成梦
醉酒成梦 2021-01-14 12:36

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

Like so:

Source: \"d:\\sources\\SomeDLL.dll\"; DestDir: {a         


        
2条回答
  •  爱一瞬间的悲伤
    2021-01-14 12:48

    Use the 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.

提交回复
热议问题