Windows自动软件更新 [英] windows automatic software updates
问题描述
为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)修补程序,因为如果没有,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.
然后,您的应用程序执行以下操作: / p>
Then your application does the follows:
- 通过HTTP检查新版本
- 下载MSP(小心DL因为UAC而在Vista中)
- 启动一个Shim exe,
- 等待你的应用关闭
- 启动msp(非互动模式)
- 重新启动您的应用程序
- Check for a new version via HTTP
- Download the MSP (be careful of where you DL it to in Vista because of UAC)
- Start a Shim exe that
- waits for your app to close
- launches the msp (in non-interactive mode)
- restarts your app
所有这些都会在XP和Vista两者之间自动执行零用户交互的场景。
This can all happen automatically behind the scenes with zero user interaction on both XP and Vista.
从这开始,WIX一般是一个很好的地方:
A good place to start with this, and with WIX in general is:
http://www.tramontana.co .hu / wix / index.php
(第4课是更新)
http://www.tramontana.co.hu/wix/index.php (Lesson 4 is on Updates)
这篇关于Windows自动软件更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!