Install only if external file exists

前端 未结 2 1775
醉酒成梦
醉酒成梦 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 13:01

    Try this flag:

    onlyifdestfileexists

    Only install the file if a file of the same name already exists on the user's system. This flag may be useful if your installation is a patch to an existing installation, and you don't want files to be installed that the user didn't already have.

    http://www.jrsoftware.org/ishelp/index.php?topic=filessection

提交回复
热议问题