MSI在VS2008中设置文件创建条件 [英] MSI set up file creation with conditions in VS2008

查看:110
本文介绍了MSI在VS2008中设置文件创建条件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,专家,

我已经开发了一个应用程序,我需要使用VS2008中的设置项目来部署该应用程序.

我的应用程序有两个exe文件1)Normal.exe 2)Professional.exe.

安装时,我需要具有正常"或专业"之类的选项(就像设置文件中现有的安装模式"选项仅我"或所有人"一样).

如果用户选择普通",则将normal.exe复制到安装文件夹,否则将复制professional.exe.

谁能帮我使用.net设置项目来做到这一点?
我不想申请第三方申请.

在此先感谢.

问候,
Sanju

Hi Experts,

i have developed one application and i need to deploy the same using set up project in VS2008.

my application has two exe files 1) Normal.exe 2) Professional.exe.

while installing, i need to have an option like Normal or Professional (just like existing Installation mode option ''just me'' or ''Everyone'' in set up file).

if the user selects Normal then normal.exe will be copied to installation folder else professional.exe will be copied.

can any one help me how to do this using .net set up project?
i dont want to go for third part application.

thanks in advance.

Regards,
Sanju

推荐答案

0)在解决方案资源管理器中右键单击安装项目,然后选择View |. User interface在上下文菜单中.

1)右键单击树中的开始"项目,然后在上下文菜单中选择Add Dialog.

2)选择适当的对话框.

此时,您将不得不依靠google,因为我之前从未在安装项目中添加过对话框.
0) Right-click the setup project in the solution explorer, and select View | User interface in the context menu.

1) Right-click the Start item in the tree, and select Add Dialog in the context menu.

2) Select the appropriate dialog.

At this point, you''ll have to rely on google because I''ve never added a dialog to a setup project before.


Chcek ^ ]

可以使用Condition属性将条件放置在任何文件或文件夹上.这使您可以根据安装过程中目标计算机上存在的条件来自定义文件的安装.例如,您可能选择根据目标计算机上的操作系统版本安装其他文件.
有关更多信息,请查看那里-[条件属性] [
Chcek Visual Studio Installer Deployment[^]

conditions can be placed on any file or folder using the Condition property. This allows you to customize the installation of files based on conditions that exist on a target computer during installation. For example, you might choose to install different files based on the operating system version on the target computer.
For more information have a look there-[Condition Property][^]


尝试
部署(如何在C#中进行部署) [ ^ ]
我希望此链接-[如何:指定通过ClickOnce发布哪些文件] [ ^ ]满足您的要求.
Try
Deployment (How Do I in C#) [^]
I hope this link-[How to: Specify Which Files Are Published via ClickOnce ][^] meet your requirement.


这篇关于MSI在VS2008中设置文件创建条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆