InstallShield-2009总理:基本msi项目:
当用户在卸载期间单击“取消”按钮时,希望运行自定义操作时,该怎么办?
我放置了一个自定义操作(一个只显示消息框的C# exe )
动作类型:
Type: Launch an executable
Location: Stored in the Binary table动作参数:
Source: exe path
Target: a b c (doesn't matter, I don't need it)附加选项:
Return Processing: Synchronous (Check exit code)
Run Only During Path Uninstall: unchecked响应选项:
In-Script Execution: Rollback Execution in System Context
Executing Scheduling: disabled插入序列:
Install UI-Sequence: <Absent from sequence>
Install Execute Sequence: After InstallServices (what should I set here?)
Install Execute Condition: (do I need to set? I left it blank)但当我取消卸载时,它没有启动消息框。多么?
发布于 2011-05-12 16:37:33
您可能要尝试将事件绑定到对话框的“取消”按钮。在安装设计器goto用户Interface>Dialog中,查找SetupProgress并在行为中向Cancel PushButton添加一个事件。我还没试过,但值得一试。
发布于 2011-05-13 06:05:39
回滚自定义操作应在其回滚操作之前排定。因为您想要处理任何回滚,所以可以在InstallInitialize之后在InstallExecuteSequence中调度操作。
这样,当用户在实际开始安装后取消安装时,它将始终运行。
请注意,在进程实际启动之前取消安装时不能使用回滚自定义操作(显示进度条)。为此,需要在该特定的“取消”按钮上设置一个控制事件。
https://stackoverflow.com/questions/2787270
复制相似问题