如何在windows安装-部署项目中放置单选按钮?

时间:2022-03-18 22:16:14

I've a deployment project of windows installer, with some of prerequisites.

我有一个windows安装程序的部署项目,其中有一些先决条件。

I want to perform some operations while installing the product, for that I need to put 2 radio buttons on installer setup project,

我想在安装产品时执行一些操作,因为我需要在安装程序安装项目中安装两个单选按钮,

do anyone tell me how can I alter setup screens with new controls provided on canvas ?

有人能告诉我如何用画布上提供的新控件来修改设置屏幕吗?

2 个解决方案

#1


1  

If I understand your question correctly, you are talking about a need write a CustomAction. Here is how you can create custom dialogs for your setup. Also see MSDN for RadioButtons dialog box.

如果我正确地理解了你的问题,你是在说需要写一个自定义操作。以下是如何为您的设置创建自定义对话框。也可以在“radiobutton”对话框中看到MSDN。

#2


0  

your article MSDN helped, thanks,

你的文章MSDN帮了忙,谢谢,

what I did is, I applied condition on registry key, and programatically checked if that registry key is installed or not to check which radio button user has selected while installing.

我所做的是,我对注册表项应用了条件,并以编程方式检查注册表项是否已安装,以检查用户在安装时选择了哪个单选按钮。

Registry Condition Check http://www.freeimagehosting.net/uploads/5558cd90ed.jpg

注册条件检查http://www.freeimagehosting.net/uploads/5558cd90ed.jpg

#1


1  

If I understand your question correctly, you are talking about a need write a CustomAction. Here is how you can create custom dialogs for your setup. Also see MSDN for RadioButtons dialog box.

如果我正确地理解了你的问题,你是在说需要写一个自定义操作。以下是如何为您的设置创建自定义对话框。也可以在“radiobutton”对话框中看到MSDN。

#2


0  

your article MSDN helped, thanks,

你的文章MSDN帮了忙,谢谢,

what I did is, I applied condition on registry key, and programatically checked if that registry key is installed or not to check which radio button user has selected while installing.

我所做的是,我对注册表项应用了条件,并以编程方式检查注册表项是否已安装,以检查用户在安装时选择了哪个单选按钮。

Registry Condition Check http://www.freeimagehosting.net/uploads/5558cd90ed.jpg

注册条件检查http://www.freeimagehosting.net/uploads/5558cd90ed.jpg