如何在Visual Studio 2010中使用两个启动应用程序创建安装包? [英] How to Create a installation package with two start up application in Visual-Studio 2010?

查看:93
本文介绍了如何在Visual Studio 2010中使用两个启动应用程序创建安装包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在C#.net windows应用程序中创建了一个项目,Program.cs文件包含两个名为Program和Option的类,所以我的项目属性包含两个启动对象,一个是windows.Program,另一个是windows.Options。

Hi,

I have created a project in C#.net windows application, The Program.cs file contains two classes named as Program and Option, So my project properties contains two startup object one is windows.Program and other is windows.Options.

代码已经成功运行,当我选择启动对象作为windows.Options时,我的代码已经开始从windows.Options类运行,如果我选择windows.Program,它开始运行程序类。

The code has been run successfully, When i choose startup object as windows.Options then my code has starts to run from windows.Options class and if i choose windows.Program, it starts to run Program class.

我需要在项目中创建一个安装包,安装完成后,我的项目必须显示在开始菜单中。

I need to create a installation package in my project and after installation has been done, my project has to display in start menu.

< t>我可以创建一个安装包并完成安装。
注意:
问题是安装包只运行一个启动对象。即在创建安装程序之前,我想选择启动对象为windows.Program,然后在创建安装程序并成功安装后单击我安装的项目,它直接运行windows.Program文件。如果我想在创建安装程序之前选择windows.Options。然后安装我的项目并运行后意味着它开始运行windows.Options类。

<t>I can create a Installation package and installation also done.
Note:
The problem is the installation package runs only one startup object. i.e. before create installer, I suppose to choose startup object as "windows.Program" then after create installer and installed successfully then click my installed project, It directly run the windows.Program file. If I suppose to choose "windows.Options" before create installer. then after installation of my project and run means it starts to run windows.Options class.

我需要创建一个安装包,安装完这个包后,我的项目需要显示在我的系统的开始菜单中名为project的名称,当我点击项目时,它必须同时显示程序和选项。如果我选择Program,那么它开始运行我项目的程序部分,如果我选择Options,那么它开始运行我项目的Option部分。如果您知道如何创建这样的包。

I need to create a single installation package and after installed this package, my project needs to shown in start menu of my system name called "project" and when i click project, it has to show both Program and options. If i choose Program, then it starts to run program part of my project, if I choose Options, then it starts to run Option part of my project. If you know guide me how to create package like this.

推荐答案

您可以使用Inno Setup。我正在将它用于我的程序设置。它非常简单,你可以编写代码来制作不同的东西。问题是Inno Setup的语言编程是Pascal(这对我来说是个问题,也许对你来说不是问题)。您也可以从Web服务获取数据。它还支持语言的lotf。所以你可以让你的程序多语言。如果您对此感兴趣,请点击链接:

http://www.jrsoftware.org/isdl.php [ ^ ]



您可以查看示例。如果你喜欢我可以帮助你。
You can use Inno Setup. I''m using it for my programs setup. It is so easy and you can write code to make different things. The problem is progrraming language of Inno Setup is Pascal(It was a problem for me, maybe it will not be a problem for you). You can get data from web services too. It also supports lotf of language. So you can make your program multi-language. If you are interested here is the link:
http://www.jrsoftware.org/isdl.php[^]

You can look at examples. If you like it I can help you.


这篇关于如何在Visual Studio 2010中使用两个启动应用程序创建安装包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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