为我的项目创建安装文件 [英] Creating Setup File for my project

查看:56
本文介绍了为我的项目创建安装文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨。



我正在用c#开发项目,使用一些控件。

现在我想为我的项目创建安装程序文件而且我想添加该控件的安装文件。

如果用户没有在他的电脑上安装控件,那么我的安装程序会自动开始安装该控件



谢谢

Hi.

I am developing project in c#, using some control.
now i want to create installer file for my project and also i want to add setup file of that control.
if user does not have control installed on his pc then my installer automatically start the installation of that control

Thanks

推荐答案

试试这个:



添加自定义先决条件 [ ^ ]



希望它有所帮助:)
Try this:

Adding Custom Prerequisites [^]

hope it helps :)


您好
您可以通过以下流程创建设置文件



文件 - >新建 - >项目 - >其他项目类型 - >设置和部署 - >设置项目。



设置您的项目名称并单击确定



单击目标文件系统机器 - >添加特殊文件夹 - >程序文件夹 - >添加文件夹(命名) - >然后转到文件 - >添加 - >现有项目 - >选择C#项目 - >之后,您可以在解决方案资源管理器中看到已添加解决方案 - >然后转到文件夹(命名) - >添加 - >项目输出 - >确定。



然后你可以看到主输出已经完成。制作两个快捷方式。

将您对用户桌面和另一个快捷方式的快捷方式移至用户程序菜单。



做完之后所有这些



点击查看 - >编辑 - >用户界面。

然后调试它。



您可以在visual studio项目中找到文件夹。



谢谢。
Hi you can Create setup file through below process

File-> New-> Project-> Other Project Types-> Setup and Deployment -> Setup Project.

Set you Set your Project Name and Click on OK

Click File System On Target Machine -> Add Special Folder->Programs File Folder->Add Folder (Name It)-> Then go to File ->Add -> Existing project ->Select the C# project->After that you can see on solution explorer that solution has been added->Then go to the folder(Name it )->Add -> Project output->Ok.

Then you can see that Primary output has been made. Make two shortcuts of that.
Move those shortcuts that you have made to user desktop and another one to User programs menu.

After doing all this

Click View ->Editor->User Interface .
Then Debug It .

You can find the Folder inside visual studio projects.

Thanks.


http://msdn.microsoft.com/en-us/library/ms165429(v = vs.80).aspx [ ^ ]


这篇关于为我的项目创建安装文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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