inno-setup - 如何在 InnoSetup 中的 StatusMsg 中换行?
问题描述
Filename: "{app}\program.exe"; Parameters: -d; \
StatusMsg: "How to put line break after this sentence? This sentence should be on new line."; \
Flags: runascurrentuser;
我试过了+ #13#10 +
,%n
但他们没有用。
解决方案
状态消息行只有一行(因此虽然您可以在消息中插入新行,但不会显示第二行)。
第二行是为文件名保留的(安装文件时)。
您可以像这样滥用文件名行:
[Run]
Filename: "{app}\program.exe"; Parameters: "-d"; \
StatusMsg: "How to put line break after this sentence?"; Flags: runascurrentuser; \
BeforeInstall: SetFileName('This sentence should be on new line.'); \
AfterInstall: SetFileName('')
[Code]
procedure SetFileName(FileName: string);
begin
WizardForm.FilenameLabel.Caption := FileName;
end;
另一个(更复杂的)选项是暂时使状态行更高(多行)。
推荐阅读
- bluetooth - 如何理解 Mesh Spec 4.2.19.2 中的 Network Transmit Interval Steps?
- python - 改变熊猫数据框的形状
- ssl - Python 安全通道 gRPC 'ssl_transport_security.cc:1807] 在远程实例上找不到服务器名称的匹配项
- vue.js - 动态组件通过 select input /w Vuex store 绑定
- python - 使用 Weazprint 的 CSS 文件不反映在 PDF 上的原因
- vue.js - Vuetify 数据表:如何应用标题过滤器功能
- vba - 页面更改时 OnSlideShowChangePage 不运行
- internet-explorer - IE6 未定义 console.log。不可用?
- google-sheets-formula - 与列标题(数组文字)一起使用时,数组公式中的拆分函数出错
- python - Pyspark - TypeError:在 Spark MLlib 中使用 OneHotEncoder 时无法调用“列”对象