[英]Changing NSIS installer properties
我有一個名為setup.exe的基於NSIS的安裝程序文件。 當我進入Properties-> Details時,很多細節都缺失了。 當我運行安裝程序時,UAC請求提升權限(這沒關系),但發布者是“未知”。
如何在最終的setup.exe中設置這些屬性,最好只更改NSIS安裝程序腳本本身?
對於屬性,您需要版本信息表:各種VIAddVersionKey
指令和VIProductVersion
。 例如,這是PortableApps.com Launcher的一個片段:
Name "${NamePortable} (PortableApps.com Launcher)"
OutFile "${PACKAGE}\${AppID}.exe"
Icon "${PACKAGE}\App\AppInfo\appicon.ico"
Caption "${NamePortable} (PortableApps.com Launcher)"
VIProductVersion ${Version}
VIAddVersionKey ProductName "${NamePortable}"
VIAddVersionKey Comments "A build of the PortableApps.com Launcher for ${NamePortable}, allowing it to be run from a removable drive. For additional details, visit PortableApps.com"
VIAddVersionKey CompanyName PortableApps.com
VIAddVersionKey LegalCopyright PortableApps.com
VIAddVersionKey FileDescription "${NamePortable} (PortableApps.com Launcher)"
VIAddVersionKey FileVersion ${Version}
VIAddVersionKey ProductVersion ${Version}
VIAddVersionKey InternalName "PortableApps.com Launcher"
VIAddVersionKey LegalTrademarks "PortableApps.com is a Trademark of Rare Ideas, LLC."
VIAddVersionKey OriginalFilename "${AppID}.exe"
至於UAC提示中的發布者字段,則不同。 這與簽名有關。 您首先需要一個數字證書,這需要花錢,然后您可以將其與!finalize
集成。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.