如何在 InnoSetup 安装程序中显示更大的许可证框?
默认情况下,InnoSetup 在一个非常小的文本区域中显示许可协议,用户无法以任何方式放大该文本区域。
虽然我知道大多数人不会阅读这些内容,但我认为以一种特别难以阅读的格式提供它是一个坏主意,并且可能构成法庭辩护的一部分。
InnoSetup 有没有办法在一个大的单独窗口中显示许可证?也许是预先卷好的 Pascal 脚本?
InnoSetup by default displays the license agreement in a really tiny text area that the user can't make bigger in any way.
While I know most people don't read these, I feel that providing it in a format that makes it particularly hard to read is a bad idea, and might form part of a defense in court.
Is there any way in InnoSetup to display the license in a large separate window? A pre-rolled Pascal script perhaps?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您想让 WizardForm 变大,您可以更改 WizardForm 的大小并重新排列其中的控件。我制作此示例是为了向您展示如何更改许可证页面的表单高度。
将其复制到新的 iss 文件并提供有效的 license.txt 文件才能成功编译。该脚本在 inno 5.4.0 上进行了测试,但它应该适用于任何 5.x。
You can change the WizardForm size and rearrange the controls in it if you want to make it bigger. I made this example to show you how to change the form height for the License page.
Copy it to a new iss file and provide a valid license.txt file in order to compile successfully. The script is tested with inno 5.4.0 but it should work with any 5.x.
调整许可证框的大小效果不太好,因此我们最终提供了一个按钮来在写字板中查看许可证。这效果出奇的好;我最终还是比较喜欢它。代码:
Resizing the license box didn't work too well, so instead we ended up providing a button to view the license in WordPad. This works surprisingly well; I rather liked it in the end. Code:
如果您使用 LicenseFile 指令,则 Inno 需要纯文本或 RTF 文件。如果您提供 RTF 文件,您可以根据需要设置字体和其他简单格式(粗体、斜体等)。
If you use the LicenseFile directive than Inno expects a plain text or RTF file. If you provide an RTF file you can set the font and other simple formatting (bold, italic etc) as you wish.