How can i display a form in my installshield sequence optional by evaluating the error code of a batchscript?
如何通过评估批处理脚本的错误代码,在installshield序列中显示一个表单是否可选?
1 个解决方案
#1
0
Windows Installer offers no direct way to do this. What you will have to do is create an MSI .dll custom action that runs the batch file, captures its error code, and stores it into a Windows Installer Property (e.g. using MsiSetProperty). Then you can edit the Events on the relevant Next button to conditionally go your selected optional panel. (Don't forget to edit the Back button events accordingly so that your wizard remains consistent.)
Windows Installer没有直接的方法来执行此操作。您需要做的是创建一个MSI .dll自定义操作,该操作运行批处理文件,捕获其错误代码,并将其存储到Windows Installer属性中(例如,使用MsiSetProperty)。然后,您可以在相关的“下一步”按钮上编辑“事件”,以有条件地转到所选的可选面板。 (不要忘记相应地编辑“后退”按钮事件,以便向导保持一致。)
#1
0
Windows Installer offers no direct way to do this. What you will have to do is create an MSI .dll custom action that runs the batch file, captures its error code, and stores it into a Windows Installer Property (e.g. using MsiSetProperty). Then you can edit the Events on the relevant Next button to conditionally go your selected optional panel. (Don't forget to edit the Back button events accordingly so that your wizard remains consistent.)
Windows Installer没有直接的方法来执行此操作。您需要做的是创建一个MSI .dll自定义操作,该操作运行批处理文件,捕获其错误代码,并将其存储到Windows Installer属性中(例如,使用MsiSetProperty)。然后,您可以在相关的“下一步”按钮上编辑“事件”,以有条件地转到所选的可选面板。 (不要忘记相应地编辑“后退”按钮事件,以便向导保持一致。)