开发者

Skipping installation of already existing fonts in nullsoft SIS

I'm using Nullsoft SIS and I want to know how to detect whether certain fonts are already installed on the system.

So I can skip their installation if they are found.

I want to install th开发者_开发知识库e fonts only in case they are not installed already.


Use IfFileExists to check existence of certain file.

  IfFileExists "$FONTS\arial.ttf" Continue InstallFont

InstallFont:
  SetOutPath "$FONTS"
  File "arial.ttf"

Continue:
  # Continue in installation...

If you have multiple files then use nsArray for storing file names and {For} loop to iterate all files.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜