简体   繁体   English

跳过安装项目中的步骤

[英]Skip a step in Setup Project

I am using Setup Project of Visual Studio 2010 to create setup for my application. 我正在使用Visual Studio 2010的安装项目来为我的应用程序创建安装程序。 I have three custom forms in it, first custom form will have two check boxes, checkbox A and checkbox B and other two custom forms will text fields to get information from the user, 我有三个自定义表单,第一个自定义表单将有两个复选框,复选框A和复选框B,另外两个自定义表单将文本字段从用户那里获取信息,

if a user checks checkbox A then Textbox A form will show and skip the Textbox B and 如果用户选中复选框A,则将显示文本框A表单,并跳过文本框B和

if user checks checkbox B then it will skip Textbox A form and show only Textbox B form and 如果用户选中复选框B,则它将跳过文本框A表单,仅显示文本框B表单,

if user checks both check boxes then Textbox A form will show and then Textbox B will show. 如果用户选中两个复选框,则将显示“文本框A”表单,然后将显示“文本框B”。

Is the above situation is possible in Setup Project? 在安装项目中是否可能出现上述情况?

If yes then How? 如果是,那怎么办? or else I have to use some other installer? 否则我必须使用其他安装程序?

Please suggest...! 请建议...!

在此处输入图片说明

It's not possible in a setup project because there is no way to alter the display of those dialogs based on conditions or settings from previous dialogs. 在设置项目中是不可能的,因为无法根据先前对话框的条件或设置来更改这些对话框的显示。 You'd need another tool to do that kind of thing during the install. 您需要在安装过程中使用其他工具来执行此类操作。

If it's related to configuring the app (and not strictly the install) then it's sometimes better (as well as easier) to run the configuration step when your app first runs. 如果与配置应用程序(而不是严格地与安装相关)有关,那么在您的应用程序首次运行时运行配置步骤有时会更好(也更容易)。 This is very easy to test and debug and you get a more modern looking UI than the installer provides, and it lets the user change the configuration without re-installing. 这非常容易测试和调试,并且您可以获得比安装程序提供的外观更现代的UI,它使用户无需重新安装即可更改配置。

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

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