install4j-具有更新的文件放置在我的本地目录中 [英] install4j - file with update placed in my local directory

查看:176
本文介绍了install4j-具有更新的文件放置在我的本地目录中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

能帮我解决下一个问题吗?我有stanalone GUI应用程序,并且在本地目录中有带有更新的文件.如何配置install4j更新程序,使其不通过http下载更新文件,而仅从本地目录启动更新文件?谢谢,如果您之前曾问过这个问题,请对不起.

Could you please help me with next problem. I have stanalone GUI application and in the local directory I have file with update. How I can configure my install4j updater, that it do not download update file via http, but only launch update file from my local directory? Thanks and please sorry if this question has been asked before.

推荐答案

该更新程序模板执行检查更新"操作.其更新描述符URL"属性定义从何处下载update.xml文件.该文件由每个install4j构建生成,默认情况下,该属性设置为$ {compiler:sys.updatesUrl}.该编译器变量将从安装程序"->自动更新选项"选项卡上的"URL for updates.xml"文本字段中获取其值.

It updater template executes the "Check for update" action. Its "Update descriptor URL" property defines where the updates.xml file is downloaded from. That file is generated by each install4j build and by default the property is set to ${compiler:sys.updatesUrl}. That compiler variable takes its value from the "URL for updates.xml" text field on the Installer->Auto-Update Options tab.

如果要从本地目录下载该文件,建议将检查更新"操作的更新描述符URL"属性更改为安装程序变量,例如$ {installer:myUpdatesUrl}.

If you want to download that file from a local directory, I would recommend to change the "Update descriptor URL" property of the "Check for update" action to an installer variable, say ${installer:myUpdatesUrl}.

您使用字符串值$ {compiler:sys.updatesUrl}预定义了安装程序变量"myUpdatesUrl".这是通过在Installer-> Screens&中选择更新程序来完成的.操作,切换到右侧的安装程序变量"选项卡,然后单击配置预定义的安装程序变量".

You predefine the installer variable "myUpdatesUrl" with the string value ${compiler:sys.updatesUrl}. This is done by selecting the updater application on Installer->Screens & Actions, switch to the "Installer variables" tab on the right side and clicking "Configure predefined installer variables".

现在您可以传递参数

-VmyUpdatesUrl=file:///C:/path/to/updates.xml 

安装程序更改updates.xml文件的URL(注意协议后的三个斜杠).

to the installer to change the URL for the updates.xml file (note the 3 slashes after the protocol).

更新安装程序的媒体文件应与updates.xml位于同一目录

The media files for the update installers should be in the same directory as updates.xml

这篇关于install4j-具有更新的文件放置在我的本地目录中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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