如何制作安装程序?对于 asp.net mvc 2.0、cmd 行应用程序和 Web 服务
我想知道如何为每个项目创建一个安装项目
- Asp.net mvc 2.0
- C# cmd line
- Application C# web-service
我正在使用 VS 2010 Ultimate,我知道我可以使用免费版的安装盾至少是命令行应用程序。我不确定其他 2 个。我也知道您可以使用的安装项目。我只需要比基础知识更多的东西,所以我不知道如何让任何一个人做这些事情。
因此,这是我的每个设置都应该能够达到的一些标准。
Asp.net mvc 2.0 标准
- 免费(我真的不想为安装程序付费 - 您可以列出它们,以便我了解它们)。
- 服务条款
- 能够强制用户设置某些设置。如连接字符串、smtp 设置。因此,他们应该能够通过设置向导输入它,并且 web.config 应该基于此进行更新。
- 当它安装这些东西时,所有 C# 代码都应该是 .dll。
C# cmd 行标准
- 如上所述的所有标准
- 我不确定这是否必须在代码中完成,但我有一个包含消息模板的 html 文件。该文件的路径位于 web.config 中,因此我需要在每次安装时设置此路径。我尝试在代码中执行此操作,但我不知道如何让它在开发中找到正确的路径,在生产中找到正确的路径。看起来如果你在 VS 中运行,路径是不同的。
网络服务
几乎是我在前两个内容中介绍的所有内容。
谢谢
I am wondering how can I make a setup project for each of these projects
- Asp.net mvc 2.0
- C# cmd line
- Application C# web-service
I am using VS 2010 ultimate and I know that I can use the the free edition of install shield for at least the cmd line application. I am not sure about the other 2. I also know about the setup project that you can use. I just need a lot more than the basics so I am not sure how to make either one do these things.
So here is some criteria that each of my setups should be able to do.
Asp.net mvc 2.0 criteria
- free (I really don't want to pay for an installer - you can list them just so I am aware of them).
- Terms of service
- Ability to force a user to setup certain settings. Like connection string, smtp settings. So they should be able to type it in through the setup wizard and the web.config should be updated based on this.
- When it installs the stuff it should all be .dlls for all the C# code.
C# cmd line criteria
- All criteria as above
- I am not sure if this has to be done in the code but I have a html file that contains a template for a message. The path to this file is in the web.config so I a person needs to set this path each time they install it. I tried to do this in code but I could not figure out how to make it find the right path in development and the right path in production. It seems like If you run in VS the path is different.
Web-service
Pretty much everything I covered in the first 2 ones.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我是您,我会选择 WiX 作为所有这些应用程序的安装程序的平台。这背后的一些原因是:
VS 安装项目这样的引擎不是我的选择,因为:
不过,我对 InstallShield Limited 版本不熟悉。
希望本概述能帮助您找到适合您情况的最佳选择。
If I were you, I would choose WiX as a platform for your installers for all these applications. Some reasoning behind this:
VS setup project is not my choice because:
I'm not familiar with InstallShield Limited edition, though.
Hope this overview will help you finding the best option for your case.