Installation wix-session.message在安装时未显示
Wix CustomAction[C#]Installation wix-session.message在安装时未显示,installation,wix,Installation,Wix,Wix CustomAction[C#]会话。消息(Messagebox)在安装过程中不显示 我有一个会话。在自定义操作中添加了消息 public static ActionResult DisplayConfirmationMessage(Session session) { Record record = new Record(); record.FormatString = pMessage; Session.Message(InstallMessage.Er
会话。消息(Messagebox)
在安装过程中不显示
我有一个会话。在自定义操作中添加了消息
public static ActionResult DisplayConfirmationMessage(Session session) {
Record record = new Record();
record.FormatString = pMessage;
Session.Message(InstallMessage.Error
| (InstallMessage)System.Windows.Forms.MessageBoxIcon.Warning
| (InstallMessage)System.Windows.Forms.MessageBoxButtons.OK, record);
}
和wxs文件中的自定义操作
<CustomAction Id="RestartAction" BinaryKey="CustomActions" DllEntry="DisplayMessage" Execute="immediate" Return="check" />
和在install execute中(仅一个自定义操作调用):
消息框仅在卸载时显示。但在安装过程中,它会被记录到session.Log中。我检查了“未安装和未删除”仍然相同的结果 我被阻止了,请帮助。
提前感谢。根据您计划操作的时间,您可以通过编辑问题来解决此问题,以显示自定义操作声明以及调用时间(如果Michael的评论不适用)。[CustomAction]公共静态操作结果显示确认消息(会话){Record Record=new Record();Record.FormatString=pMessage;Session.Message(InstallMessage.Error |(InstallMessage)System.Windows.Forms.MessageBoxIcon.Warning |(InstallMessage)System.Windows.Forms.MessageBoxButtons.OK,Record);}这是我的自定义操作方法。这是我的自定义操作调用消息,仅在安装时弹出,而不是在取消安装时弹出。根据您安排操作的时间,您可以通过编辑问题来解决此问题,以显示自定义操作声明和调用时间(如果Michael的评论不适用)。[customaction]公共静态操作结果显示确认消息(会话会话){Record Record=new Record();Record.FormatString=pMessage;Session.Message(InstallMessage.Error |(InstallMessage)System.Windows.Forms.MessageBoxIcon.Warning |(InstallMessage)System.Windows.Forms.MessageBoxButtons.OK,Record);}这是我的自定义操作方法。这是我的自定义操作调用消息,仅在安装时弹出,而不是在取消安装时弹出
<InstallExecute>
<Custom Action="RestartAction" After="InstallFinalize"></Custom>
</InstallExecute>