admin 管理员组文章数量: 1086019
Looking for pointers on how to run an Install4J installer from my application to upgrade it. The existing upgrade.xml mechanism doesn't fit well with my application.
I think I need to create a custom Install4J Custom Application that takes the file path of an installer (.exe or .sh) as an argument. When running, I also need to quit my app so that the application can be upgraded.
The other possibility is to pass the installer path to the upgrade application and skip the download.
I'd prefer to make it use the --quiet option and specify the existing path to make the upgrade as quick and easy as possible.
Looking for pointers on how to run an Install4J installer from my application to upgrade it. The existing upgrade.xml mechanism doesn't fit well with my application.
I think I need to create a custom Install4J Custom Application that takes the file path of an installer (.exe or .sh) as an argument. When running, I also need to quit my app so that the application can be upgraded.
The other possibility is to pass the installer path to the upgrade application and skip the download.
I'd prefer to make it use the --quiet option and specify the existing path to make the upgrade as quick and easy as possible.
Share Improve this question asked Mar 28 at 15:23 openaudibleopenaudible 111 bronze badge1 Answer
Reset to default 1The "standalone updater" template actually fits your description quite well.
It is a template so you can modify all screens and actions to fit your particular needs and implement an arbitrary flow.
... that takes the file path of an installer (.exe or .sh) as an argument.
The updat check is performed by the "Check for update" action. The URL for the update descriptor is set to ${compiler:sys.updatesUrl}
by default but you cn change this as necessary.
When running, I also need to quit my app so that the application can be upgraded.
This is done by the "Shut down calling launcher" action which is in the "Finish" screen of the standalone updater template.
I'd prefer to make it use the --quiet option and specify the existing path to make the upgrade as quick and easy as possible.
To enable the unattended mode with a progress window, adjust the "Default execution mode" property of the updater application.
本文标签: install4j Custom Application to run a newer installerStack Overflow
版权声明:本文标题:install4j: Custom Application to run a newer installer? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/p/1744028801a2521120.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论