Windows自动软件更新软件更新、Windows

2023-09-02 12:00:53 作者:把心痛当拥有

什么是处理Windows窗体项目自动基于Web的软件更新,一些好的解决方案?我知道微软一击,但我不能在这个时候感兴趣。

What are some good solutions for handling automatic web based software updates for windows forms projects? I am aware of microsoft one-click, but am not interested in it at this time.

推荐答案

ClickOnce是好俗套的东西,但围绕安全一些限制(即不能创建一个桌面图标,以COM进不去,等)

ClickOnce is good for cookie cutter stuff, but has some limitations around security (i.e. can't create a desktop icon, no access to COM, etc)

假设你正在使用MSI安装应用程序。使用WIX( http://wix.sourceforge.net/ )来创建一个补丁程序(.msp)。你会想看看最低特权用户帐户(LUA)修补Vista的,如果你不这样做UAC会搞砸你。

Assuming you are using MSI to install your application. Use WIX (http://wix.sourceforge.net/) to create a patch (.msp). You will want to look into Least Privileged User Account (LUA) Patching for Vista as UAC will screw you if you don't.

那么你的应用程序执行如下:

Then your application does the follows:

在通过HTTP检查新版本 下载MSP(注意,你DL它在Vista中,因为UAC的) 启动沉exe文件的 在等待您的应用程序,以关闭 启动MSP(在非交互模式) 重新启动你的应用程序

这都可以自动在后台发生一起在XP和Vista。

This can all happen automatically behind the scenes with zero user interaction on both XP and Vista.

有一个良好的开端这一点,并与维克斯一般是:

A good place to start with this, and with WIX in general is:

http://www.tramontana.co.hu/wix/index.php (第4课上更新)