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 badge
Add a comment  | 

1 Answer 1

Reset to default 1

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