将查看自述文件的选项放在 InstallShield 安装程序的末尾

发布于 2024-10-04 07:13:02 字数 742 浏览 1 评论 0原文

我正在 InstallShield 8 中制作安装程序,并尝试在安装完成对话框中添加一个检查选项,我使用以下链接作为帮助:

http://kb.flexerasoftware.com/selfservice/viewContent.do?externalID=Q106070

正如此链接中所述:

“InstallScript 自定义操作可能无法从 “SetupCompleteSuccess”对话框上的“确定”按钮控件。这是因为 自定义操作 ISCleanupSuccess 在自定义操作之前执行 查看自述文件的操作已启动。 ISCleanupSuccess 删除 内存中的 InstallScript 引擎和 InstallScript 自定义操作 将无法成功启动。”

当我在运行打开自述文件的事件后运行 ISComplete 成功事件时,我收到此错误:

“错误 1722。此 Windows Installer 程序包有问题。作为其中一部分运行的程序未按预期完成。请联系您的支持...”但自述文件

已打开 他们在同一链接中写道,InstallShield 脚本可能无法从“SetupCompleteSuccess”对话框中的“确定”按钮启动,但他们提到在步骤中执行相同的操作。

I am making an installer in InstallShield 8 and trying to put an option as in a check in the setupcomplete dialog, I am using the below link as help:

http://kb.flexerasoftware.com/selfservice/viewContent.do?externalID=Q106070

As also stated in this link:

"An InstallScript custom action may not successfully launch from the
OK button control on the SetupCompleteSuccess dialog. This is because
the custom action ISCleanupSuccess is executed before the custom
action to view the ReadMe is launched. ISCleanupSuccess removes the
InstallScript engine from memory, and the InstallScript custom action
will not launch successfully."

when i run the ISComplete success event after running event that opens readme file i get this error:

"Errror 1722. There is a problem with this Windows Installer package. A program run as part of the did not finish as expected. COntect your Support..." But read me file opens

They have written in the same link that InstallShield script may not launch from OK button in SetupCompleteSuccess dialog and yet they mention doing the same in the steps.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风柔一江水 2024-10-11 07:13:02

好的,我在这里找到了解决方案:

要启动自述文件,请按照以下步骤操作:

  • 导航到“对话框”视图并打开“SetupCompleteSuccess”对话框的“对话框布局”。

  • 将位图对话框控件的 TabStop 设置为 True。

  • 如果没有值,请在 Value 属性中为 ReadMe 复选框控件指定一个值。

  • 导航到“属性管理器”视图。

- 添加名为 SHOWLAUNCHREADME 的属性,其值为 -1。

  • 添加名为 READMEFILETOLAUNCHATEND 的属性,其值为 1。

  • 打开“自定义操作”视图。

- 添加启动 EXE 自定义操作,用于启动文本查看器应用程序并将自述文件传递给它。

  • 导航到“对话框”视图并选择“SetupCompleteSuccess”对话框。
    将此自定义操作作为新的 DoAction 事件插入到“确定”按钮的“SetupCompleteSuccess”对话框的“行为”中。

  • 作为新 Doaction 的条件,添加 LAUNCHREADME 属性,并将其设置为等于步骤 3 中为复选框指定的值。

  • (可选)如果您希望默认选中“自述文件”复选框,请在“属性管理器”中添加 LAUNCHREADME 属性。如果您不创建此属性,对话框将显示该复选框,但默认情况下不会选中它。

只需确保对于您的启动 exe 事件,在自定义操作向导的返回过程中选择忽略自定义操作重新调整代码。
然后将打开 ream me 的事件放在 SetupCompleteSuccess OK 按钮中的 ISCleanupSuccess 之上。你应该没问题。

ok guys i found the solution here it is:

To launch a ReadMe file, follow these steps:

  • Navigate to the Dialogs view and open the Dialog Layout for the SetupCompleteSuccess dialog.

  • Set the TabStop of the Bitmap dialog control to True.

  • Give the ReadMe check box control a value in the Value property if there is no value.

  • Navigate to the Property Manager view.

-Add the property called SHOWLAUNCHREADME with a value of -1.

  • Add the property called READMEFILETOLAUNCHATEND with a value of 1.

  • Open the Custom Actions view.

-Add a Launch EXE custom action that launches a text viewer application and passes the ReadMe file to it.

  • Navigate to the Dialogs view and select the SetupCompleteSuccess dialog.
    Insert this custom action as a new DoAction event on the Behavior of the SetupCompleteSuccess dialog for the OK button.

  • As a condition on the new Doaction add the LAUNCHREADME property and set it equal to the value specified for the check box in step 3.

  • (Optional) If you want the ReadMe check box selected by default, add the LAUNCHREADME property in the Property Manager. If you do not create this property, the dialog will display the check box, but will not have it selected by default.

just make sure that for your launch exe event select Ignore custom action retun code in Return process, in custom action wizard.
and you place the event that opens ream me on top of ISCleanupSuccess in SetupCompleteSuccess OK button. and you should be fine.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文