如何创建支持版本控制和升级的MSI安装程序 [英] How to create msi installer supporting versioning and upgrading

查看:145
本文介绍了如何创建支持版本控制和升级的MSI安装程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以指导我为基于C#桌面项目创建msi安装程序所需的步骤吗?它将能够保持版本跟踪,并具有选项所有用户"或只是我",然后还可以升级/全新安装.

http://stackoverflow.com/questions/1858434/build中找到了一些可能的解决方案-nsis-script-as-a-msi-package [ ^ ]

[很遗憾,没有.
NSIS使您可以创建可编写脚本的程序安装包.它简单易用,并且具有Windows Installer中不存在的许多功能.
Windows Installer(MSI)创建数据库驱动的事务性安装程序包.正确编写Windows Installer软件包后,它会非常健壮,文件会被损坏/删除,并且会自动将其重新安装. Windows Installer知道UAC,只有在需要时才进行升级,基本上,如果您要为企业市场创建软件,则需要提供MSI.
请查看《 Windows Installer权威指南》,以很好地了解MSI.]
http://www.amazon.com/dp/1590592972/?tag=stackoverfl08-20 [ ^ ]

Can anyone guide me with the steps required for creating msi installer for C# desktop based projects? Which will be able to keep version tracking and will have option ''all user'' or ''just me'' and then also upgrade / fresh installlation.

Found some possible solution from http://stackoverflow.com/questions/1858434/build-nsis-script-as-a-msi-package[^]

[Unfortunately, No.
NSIS lets you create scriptable, procedural installation packages. It''s simple, easy to use and has a number of features not present in Windows Installer.
Windows Installer (MSI) creates database driven, transactional installation packages. When written properly a Windows Installer package is very robust, a file gets corrupted/deleted and it will be automatically reinstalled. Windows Installer is aware of UAC and only elevates when required, basically if you''re creating software for the corporate market, you will need to provide an MSI.
Check out The Definitive Guide to Windows Installer for a good introduction to understanding MSI.]
http://www.amazon.com/dp/1590592972/?tag=stackoverfl08-20[^]

推荐答案

MSI正确支持升级,只要您更新相应的GUID代码即可.

据我所知,选项所有用户"与仅我"在新安装中可用.如果要在以后进行更改,则必须先卸载现有的应用程序.

您实际上没有选择升级或执行全新安装的选择.如果需要更高版本,请先卸载该应用程序.

如果您还不希望这样做,则可能需要考虑专业的安装程序. Visual Studio附带的一个主要用于标准"安装.
MSI properly support upgrading provide you update the appropriate GUID code.

As far as I know, the option "All users" vs "Just Me" is available on a new installation. If you want to change it afterwards, you have to first uninstall existing application.

You don''t really have the option to upgrade or dop a fresh installation. If you want the later, then you first uninstall the application.

If you want more than that, you might have to look at professional installers. The one that come with Visual Studio is mainly destined for "Standard" installations.


这篇关于如何创建支持版本控制和升级的MSI安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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