简体   繁体   English

带单选按钮的NSIS卸载反馈对话框

[英]NSIS Uninstall Feedback Dialog with Radio Buttons

I am trying to show a simple dialog before uninstall in NSIS. 我试图在NSIS中卸载之前显示一个简单的对话框。 It consists of several predefined radio buttons (reasons for uninstalling), none of them checked initially. 它由几个预定义的单选按钮(卸载原因)组成,最初都不检查它们。 Uninstallation cannot continue until a user selects one of the radio buttons. 除非用户选择其中一个单选按钮,否则无法继续卸载。

As a bonus, ideally I would like to have a custom reason text field too (toggle-able via last radio button). 另外,理想情况下,我也希望有一个自定义原因文本字段(可通过最后一个单选按钮进行切换)。 As well as 2 more text fields for custom text and email. 以及另外2个用于自定义文本和电子邮件的文本字段。

Then I need to take selected value(s) (checked radio button) as well as text fields data and either append it to my predefined URL to which I make a GET request using InetC or similar plugin before uninstaller exits; 然后,我需要获取选定的值(选中的单选按钮)以及文本字段数据,然后将其附加到我的预定义URL上,然后在卸载程序退出之前使用InetC或类似插件向该URL发出GET请求。 or laternatively construct a POST request to a predefined URL using InetC or similar plugin. 或稍后使用InetC或类似插件将POST请求构造到预定义的URL。 I cannot figure out how to create such a dialog page. 我不知道如何创建这样的对话框页面。 Any help would be appreciated. 任何帮助,将不胜感激。

What I am looking for: 我在寻找什么:

样品

First, you should get familiar with nsDialogs to create the interface according to your needs. 首先,您应该熟悉nsDialogs以根据需要创建接口。 Since nsDialogs is a function, you would then can call it as a custom page . 由于nsDialogs是一个函数,因此您可以将其称为自定义页面

You can use my tool Visual & Installer (www.visual-installer.com) for Visual Studio 2005 - 2015 to fast write the NSIS code. 您可以使用我的Visual Studio 2005-2015工具Visual&Installer (www.visual-installer.com)快速编写NSIS代码。

(If you are "writing" the installer - I assume you have some experiences with nsDialogs). (如果您正在“编写”安装程序-我假设您对nsDialogs有一些经验)。

Also there are some other tools like NSIS Dialog Designer ( http://forums.winamp.com/showthread.php?t=329801 ) which can help you and generate lot of code for you. 此外,还有其他一些工具,例如NSIS对话框设计器http://forums.winamp.com/showthread.php?t=329801 ),可以为您提供帮助并为您生成大量代码。

This tool is GUI based - designer similar to Visual Studio designer - but remember: the result is still the scripts! 该工具基于GUI(类似于Visual Studio设计器),但是请记住:结果仍然是脚本!

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

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