当前位置: 动力学知识库 > 问答 > 编程问答 >

c# - How do I build a software update software which Could update itself?

问题描述:

How do I handle this case which upate the update software itself?It must termanate the process of update software,then everything has been stop?any hints or tips for this issues?I'm using visual c# and c++,and I dont like use Microsoft one click,because It's great limited you have to use WIndows

网友答案:

Run a separate installer application which does the installation. Preferably, your "update software" should only be responsible for recognizing when update is required and then triggering the update installation, not performing the actual installation. In which case, updating the "update software" itself is not an issue, since the installer can just stop the "update software", update it, and then restart it. If you are planning on doing this yourself, just make sure that you are extremely rigorous in your method to protect against corruption and faulty state of the software. Writing this kind of software requires great care in covering all possible edge cases where things can go terrible wrong resulting in huge problems if this "update software" is deployed on many machines.

分享给朋友:
您可能感兴趣的文章:
随机阅读: