DetailPrint 在 nsDialogs 页面函数中不起作用
DetailPrint not working in nsDialogs page function
我创建了一个补丁脚本,其中包含三个部分,但我需要 运行 只有当当前安装的版本为“3.1”时才需要这样做。所以我创建了一个自定义页面,我可以在其中检查当前版本 - 如果它确实是“3.1”,我会去安装补丁,否则我会跳过所有部分。但是页面函数中的 DetailPrint 永远不会打印出来。谁能建议任何其他方法来解决这个简单的问题?
Name nsDialogs
OutFile nsDialogs.exe
XPStyle on
Page custom checkInstalledVersion
Page instfiles
Function checkInstalledVersion
; perform some checking to get the currently installed version
DetailPrint "You cannot install the patch on this version."
FunctionEnd
Section
DetailPrint "hello world"
SectionEnd
让我 quote 的一位开发人员回答您的问题:
DetailPrint
prints to the install log window. That window is only
available when the instfiles
page is reached. Sections are executed
when the instfiles
page shows, and that's why you [only] see DetailPrint
[when] used in sections.
您可以改用 MessageBox
。
我创建了一个补丁脚本,其中包含三个部分,但我需要 运行 只有当当前安装的版本为“3.1”时才需要这样做。所以我创建了一个自定义页面,我可以在其中检查当前版本 - 如果它确实是“3.1”,我会去安装补丁,否则我会跳过所有部分。但是页面函数中的 DetailPrint 永远不会打印出来。谁能建议任何其他方法来解决这个简单的问题?
Name nsDialogs
OutFile nsDialogs.exe
XPStyle on
Page custom checkInstalledVersion
Page instfiles
Function checkInstalledVersion
; perform some checking to get the currently installed version
DetailPrint "You cannot install the patch on this version."
FunctionEnd
Section
DetailPrint "hello world"
SectionEnd
让我 quote 的一位开发人员回答您的问题:
DetailPrint
prints to the install log window. That window is only available when theinstfiles
page is reached. Sections are executed when theinstfiles
page shows, and that's why you [only] seeDetailPrint
[when] used in sections.
您可以改用 MessageBox
。