install4j添加mysql,install4j-具有更新的文件放置在我的本地目录中

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.

解决方案

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.

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}.

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".

Now you can pass the argument

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

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

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值