创建将下载并运行Install exe的自动更新 [英] Create Auto Update that will download then run Install exe

查看:125
本文介绍了创建将下载并运行Install exe的自动更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个我们想要自动更新的应用程序.现在,当我们准备发布更新时,我们有一个vb项目,该项目基本上进行更新/安装,并运行进程(如果已安装该应用程序)询问用户是否要保留现有数据或替换它(在某些情况下,数据库表结构已更改).

我想使用一个自动更新过程,该过程将检查udpates,在必要时下载(可能是.msi文件),并且用户说还可以,然后像以前一样运行安装过程.完成后,新版本的应用程序将运行.

我已经查看了通过此站点提供的DDayUpdate代码以及.Net Application Updater Component示例,但是没有看到可以运行安装而不是直接更新应用程序的任何内容.

我知道我需要一个外壳应用程序,该应用程序先检查更新,然后进行udpate和/或启动该应用程序.我不确定如何将安装过程合并到更新中.我看到的所有示例都将更新内置到该应用程序的vb项目中,但这并不提供执行我们所支持的支持安装/udpate的过程的能力.

I have an application that we would like to have auto update. Right now, when we are ready to release updates, we have a vb project that basically does the update/install and runs processes if the application is already installed to ask the user if they want to keep existing data or replace it (in instances where the data base table structure has changed).

I would like to use an auto update process that would check for udpates, download (perhaps the .msi file) when necessary and user says ok, and then run the install process just like it did before. Once done the new version app would run.

I have looked at the DDayUpdate code provided through this site, and the .Net Application Updater Component examples, but I don''t see anything that will run the install instead of updating the application directly.

I understand I need an shell application that check for updates then udpate and/or launch the application. I am not sure how to get the install process incorporated into the update. All the examples I see build the update into the vb project for the application, but then that does not provide for executing the processes we have that support an installation/udpate.

Anyone have any insight as to how I would go about doing this?

推荐答案

我不确定如何将安装过程整合到更新中 i>

这是什么意思?

通常,您只需启动命令行即可安装MSI.
I am not sure how to get the install process incorporated into the update

What does this mean??

You''d normally just launch the command line to install an MSI.
msiexec /i myInstaller.msi


安装过程完成后,shell应用程序将启动主应用程序,然后退出.


After the installation process is done, the shell application just launches the main application and then quits.


这篇关于创建将下载并运行Install exe的自动更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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