简体   繁体   English

通过Windows Installer和Visual Studio 2008中的自定义操作处理复选框

[英]Handling Checkboxes through custom actions in windows installer and visual studio 2008

I have developed a setup project in Visual studio 2008. In my setup project I have UI dialog having 5 checkboxes. 我在Visual Studio 2008中开发了一个安装项目。在我的安装项目中,我具有包含5个复选框的UI对话框。 According to user's selection of checkboxes, I want to pass few arguments to another .exe which will run after the installation is complete. 根据用户对复选框的选择,我想将几​​个参数传递给另一个.exe,该文件将在安装完成后运行。 I am trying to do this using custom actions. 我正在尝试使用自定义操作来执行此操作。 I know how to pass an argument to an .exe if only one check box is checked. 我知道如果仅选中一个复选框,如何将参数传递给.exe。 But if more than one checkboxes are selected then, I am not able to figure out how to pass an argument. 但是,如果选择了多个复选框,那么我将无法弄清楚如何传递参数。 For example, if user selects checkbox1 and checkbox2 then i want to pas '-a' and '-b' as arguments to another .exe. 例如,如果用户选择checkbox1和checkbox2,那么我想将“ -a”和“ -b”作为另一个.exe的参数。 If user selects checkboxes 2,3 and 5 then I want to pass arguments as '-b','-c' and '-e'. 如果用户选择了2,3和5复选框,那么我想将参数传递为“ -b”,“-c”和“ -e”。 Please guide me on the same. 请同样指导我。 How to modify condition field to do this? 如何修改条件字段来做到这一点? (The problem is I want to run the same .exe with different arguments depending upon the checkbox selection. I knw how to run different .exe for different checkboxes :-/ ). (问题是我想根据复选框的选择使用不同的参数运行相同的.exe。我知道如何为不同的复选框运行不同的.exe:-/)。 Thanks. 谢谢。

抱歉,Visual Studio部署项目完全不支持您的要求。

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

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