开发者

Skipping installation of already existing fonts in nullsoft SIS

开发者 https://www.devze.com 2023-03-09 10:02 出处:网络
I\'m using Nullsoft SIS and I want to know how to detect whether certain fonts are already installed on the system.

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

精彩评论

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

关注公众号