问题描述
我在安装程序中添加了一些自定义页面.这些页面从用户和磁盘收集一些数据,我想在最终安装步骤开始之前向用户显示此数据. Inno Setup的准备安装"页面正是为此目的.
I added few custom pages to my Installer. These pages gather some data from user and disk, and I'd like to show this data to user before final installation step starts. Inno Setup has 'Ready to Install' page exactly for this purpose.
如何向该页面添加文本?默认情况下,它向我显示:
How can I add text to this page? By default it shows to me:
Destination location:
C:\Program Files\MyProgram
我想在这里添加一些文字.有可能吗?
I'd like to append some text here. Is it possible?
推荐答案
找到了它... https://jrsoftware.org/ishelp/index.php?topic=scriptevents :
如果安装程序在Pascal脚本中找到UpdateReadyMemo
事件函数,则在准备安装向导页面变为活动页面时,将自动调用该函数.它应返回要在准备安装向导页面上的设置备注中显示的文本,以单个字符串形式显示,并用NewLine
参数分隔各行.参数Space
包含带空格的字符串.安装程序使用此字符串缩进设置.其他参数包含安装程序将用作设置节的(可能为空)字符串.例如,MemoDirInfo
参数包含 Selected Directory 部分的字符串.
If Setup finds the UpdateReadyMemo
event function in the Pascal script, it is called automatically when the Ready to Install wizard page becomes the active page. It should return the text to be displayed in the settings memo on the Ready to Install wizard page as a single string with lines separated by the NewLine
parameter. Parameter Space
contains a string with spaces. Setup uses this string to indent settings. The other parameters contain the (possibly empty) strings that Setup would have used as the setting sections. The MemoDirInfo
parameter for example contains the string for the Selected Directory section.
这篇关于在Inno Setup中将文本添加到“就绪页面"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!