NSIS 基本字体安装/卸载,需要用到头文件 FontInstall.nsh FontInstall.nsh: !include LogicLib.nsh !include WinMessages.nsh !macro FontInstallHelper FontFileSrc FontFileDst FontInternalName Resource RegSuffix RegRoot ClearErrors !if "${FontFileSrc}" != "" ${IfNot} ${FileExists} "$…

2025-06-08 0条评论 89点热度 1人点赞 南陇居士 阅读全文

以往在 NSIS 中我们使用 WinVer.nsh 头文件可以获取 Windows 系统版本号,自 NSIS 3.08 起官方新增了一个获取 Windows 版本号的命令 GetWinVer,通过它我们可以获取到详细的版本构建号,方便我们安装程序对系统支持的判断。 GetWinVer 参数: GetWinVer user_var(output) Major|Minor|Build|ServicePack 先看一段示例脚本: Name "GetWinVer" OutFile "GetWinVer.exe" ShowI…

2024-03-22 2条评论 2257点热度 0人点赞 南陇居士 阅读全文