Use Advanced Installer is LabVIEW application (exe) Create an Upgrade Update (updater)

0 Introduction

Last post: "Using Advanced Installer is LabVIEW generated exe installer to make" spoke abandoned LabVIEW comes with installation deployment, switch to Advanced Installer to create the installation program.

This post, we continue to address the pain points made another LabVIEW application: difficult to deploy the upgrade updates. Of course, we are talking about applies to all other Advanced Installer installation program can support the production of type, is not limited to EXE LabVIEW program generates.

To complete this part of the work, we need the following things:

  • Executable application (EXE), preferably to generate multiple versions of the test;
  • Advanced Installer;
  • It has deployed HTTP or FTP site of the (cloud) server.

1, add updater.exe to use Advanced Installer Software

In the Advanced Installer make installer, select Professional Edition, an enterprise or development version, there will be "update" this one, in the "Updater - Updater" in check "Enable Advanced Updater", the application will programs folder and updater.ini two extra updater.exe files.
Here Insert Picture Description
Return Updater - Updater to configure the page must be modified is "update profile URL:", this is the link you put your address file updates.txt update information on the server side. updater.exe When executed, will visit this address, download the file updates.txt down, which compares version information, if there is newer than the current version on the computer, it will update the program.

Here, let me fill in a URL: http: //www.xcantec.cn/TestApp/updates.txt, this updates.txt name to the back of the same name made to update the configuration file. http://www.xcantec.cn is my site, I intend to create a file named "TestApp" folder in the root directory of the site, and the "updates.txt" files into this folder, so, you can get a URL as above.
Here Insert Picture Description
Other content, you can make changes as needed. Here, we just click build, generate the current version of the installer.
It can be seen after installing the program generated more than two file updater in the installation directory, then run updater.exe will complain, because we are not talking about updates.txt file on the server.
Here Insert Picture Description

2, create a new version of the application exe

The previous step, involving the updates.txt file, which we use to generate Advanced Installer. Prior to this, we must first make the upgrade updated version of the application (exe).
Above blog post mentioned TestApp example: Open TestApp in LabVIEW, we add the manual update feature, as follows:
Here Insert Picture Description
modified version of LabVIEW build specification for 1.0.1.0, which is from 1.0.0.0 → 1.0.1.0, generate exe.
Then open the Advanced Installer, open the project TestApp installer, it will prompt a major upgrade to whether to update the product code, click Yes, update the product code, and then build the installer 1.0.1.0. FIG obtained as follows:
Here Insert Picture Description

3, build and deploy the updated configuration file

得到更新版本的应用安装程序后,我们在Advanced Installer了新建一个更新-更新配置。
Here Insert Picture Description
进入编辑页面后,新建更新,并选择刚才制作的新版程序TestApp_Setup_v1.0.1.0.exe。
Here Insert Picture Description
修改下载网址,注意,这是届时要把新的安装包放在这里的链接。
Here Insert Picture Description
更新安装检测这里,注意勾选64位注册表位置。
Here Insert Picture Description
描述这里,尽情描述吧:
Here Insert Picture Description
添加一下更新目标:
Here Insert Picture Description
在构建页,选择输出地址,并把文件名命名为updates,并勾选UCS-2编码,不然会中文乱码。
Here Insert Picture Description
点击构建,即可得到updates.txt文件。
接下来,将updates.txt和TestApp_Setup_v1.0.1.0.exe上传到网站根目录的TestApp文件夹下:
Here Insert Picture Description
到这里,更新程序和更新配置文件的部署就大功告成了。

4、直接运行updater.exe测试

由于我们的1.0.0.0版本中没有检查更新按钮,因此,我们直接在应用程序目录下手动运行updater.exe进行测试。
Here Insert Picture Description
可见,updater检查到了新版本。点击Next即可下载并安装新版程序。
Here Insert Picture Description
Here Insert Picture Description

5、测试一下手动检查更新按钮

In TestApp 1.0.1.0 version, we placed the "Check for Updates" button in order to test this feature, we made 1.0.2.0 version of the software, and deploy it to the server.
Here Insert Picture Description
Now, you can click on the "check for updates" in v1.0.1.0 the software testing.
Here Insert Picture Description
Click "Check for updates", successfully detected a new version, the time to download and install the update, the old version will be prompted to close currently running.
Here Insert Picture Description
After the update is complete, we open TestApp, you can see a version v1.0.2.0:
Here Insert Picture Description
here, using Advanced Installer is LabVIEW application (exe) example of the fabrication Update (updater) is're done. I hope to be helpful.

Published 26 original articles · won praise 14 · views 4918

Guess you like

Origin blog.csdn.net/jaysur/article/details/102647155