简体   繁体   English

如何在nsis的ABORT消息框中禁用关闭按钮?

[英]How to disable close button in the ABORT Message box in nsis?

I have used nsi script for creating exe file.In the installation steps I have one message box which shows confirmation dialog box if user wants to cancel the installation. 我使用nsi脚本创建exe文件。在安装步骤中,我有一个消息框,如果用户要取消安装,则会显示确认对话框。

!define MUI_ABORTWARNING "Are you sure want to abort the installation" 

It produces following message box: 它产生以下消息框:

在此处输入图片说明

In this message box contains disable x close button in the above of the messagebox.now i want to remove that [x] close button. 在此消息框中,在消息框的上方包含禁用x关闭按钮。现在我要删除该[x]关闭按钮。

[or] Is there any other message box is available to do this job? [或]是否有其他消息框可用来完成这项工作?

NSIS uses the normal MessageBox and that only allows you control the buttons. NSIS使用普通的MessageBox ,仅允许您控制按钮。 Close means cancel/no/abort and this is normal windows behavior... 关闭表示取消/否/中止,这是正常的Windows行为...

To change this you would need to implement a custom dialog and recompile NSIS. 要更改此设置,您需要实现一个自定义对话框并重新编译NSIS。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM