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.
精彩评论