如何在 javafx 应用程序中添加许可证/安装文件夹屏幕

How to add licence /installation folder screen in javafx app

我在 Windows 8.1+ NetBeans 8.2 中创建了一个 JavaFx 应用程序,它的安装工作完美。但是,它没有提供任何在安装过程中选择目标文件夹或许可协议屏幕的选项。我尝试在项目属性上添加 licenceheader.txt 并构建应用程序,但它仍然直接安装。所以我的问题是如何将这些东西添加到我的应用程序中?

编辑:使用 InnoSetup 创建 .exe 自包含安装程序。

[Languages] 部分指定您的许可证。示例:

[Languages]
Name: "English"; MessagesFile: "compiler:Default.isl"; LicenseFile: "..\..\Inno\l.eng\LicenseEnglish.rtf"; InfoAfterFile: "..\..\Inno\l.eng\InfoAfterEnglish.rtf"

确保 DisableDirPage 未设置为 no。也许您可以展示您的脚本,以便我们可以适当地帮助您。

请注意,默认设置为 auto,如前所述,这意味着如果已安装相同的应用程序,window 将 不会显示 。这是通常的行为。要强制显示,请使用 no 的值,如前所述。


您可以使用 Inno Script Studio 设置这些内容。例如:


如果您安装了 QuickStart Pack 那么它会提供安装这个 IDE。

The Inno Setup QuickStart Pack includes Inno Setup itself and additionally includes an option to install the Inno Script Studio script editor. This script editor is not official and is not required for general usage, but make Inno Setup easier to use. See the Third-Party Files page for more information.

The Inno Setup QuickStart Pack also includes an option to download and install official encryption support.


澄清

根据评论,对于 single-language 安装程序,仅使用 LicenseFile directive[Setup] 部分。无需为了添加许可证而引入虚拟 [Languages] 部分。

也可以使用 Inno Script Installer 进行设置: