如何为我的程序进行通用安装
如何为我的 C# 程序进行通用安装,使其在 Win XP、Win 7 32 位和 Win 7 64 位上运行?
我需要包含所有相关组件(例如 Framework...Crystal Reports...MDAC...),并且仅安装操作系统缺少的程序
提前致谢
How to make generic installation for my C# program, that will work on Win XP, Win 7 32bit and Win 7 64bit ?
I need that all the related components (like Framework... Crystal Reports...MDAC....) will be include and will install only the program that the OS is missing
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您使用什么版本的 Visual Studio?这很重要,因为如果您使用 Express,您将需要第 3 方工具。如果您使用 Professional 或更高版本,您只需创建一个安装项目,如下所述:
http://support.microsoft.com/kb/307353
如果您不担心所需的组件,当然,您可以这样做XCOPY 部署,但由于您特别需要安装中包含的先决条件,因此您需要使用安装项目 9(它创建 MSI 文件)等工具或使用 Installshield 等第三方工具。
What version of Visual Studio are you using? It matters, because if you're using Express, you're going to need a 3rd party tool If you're using Professional or higher, you can just create a Setup project as described here:
http://support.microsoft.com/kb/307353
if you weren't worried about required components, of course, you could just do an XCOPY deployment, but since you specifically need your prerequisites included with the install, you need to use a tool like the setup project 9which creates an MSI file) or using a third party tool like Installshield.
我认为
1-为(Win Xp、Win7-32、Win7-64)创建3个单独的包
2-询问用户是否从网站下载并推送需要从服务器下载。或者,您可以编写一个基于 silverlight 的小型应用程序来获取用户计算机的详细信息。
3-如果第 2 点不正确,则在用户计算机上安装时首先获取详细信息,然后手动选择要安装的软件包。
为什么我告诉您创建特定的包,因为 Microsoft 会不时地发布路径,您可能需要更改包,因此将其单独保存肯定会对您有所帮助。
i think
1- Create 3 separate packages for (Win Xp,Win7-32 , Win7-64)
2- Ask user if user is downloading from the website and push require download from the server. Alternatively , you can write a samll silverlight based application to get the details of user machine.
3- If 2 point is not true than while installing on a user machine get the details first and choose manually which pakage to install.
why i am telling to create specific package because of Microsoft issues pathches time to time and you may need to change the package so keep it seperate will definately help you.