keplerian
keplerian

Reputation: 562

How can the auto updater wait for an event from the launcher executable?

I am using an updater application (without version check) in unattended mode, but I need the updater to wait for an event from the launcher executable before continuing to execute the installer.

The event will typically be a user confirmation that the downloaded installer can be executed. I would prefer that the launcher executable prompt the user to update, once it knows that the downloaded installer is ready.

Is there another way to solve the problem?

Upvotes: 1

Views: 51

Answers (1)

Ingo Kegel
Ingo Kegel

Reputation: 48070

There is no such communication mechanism as of install4j 6.1.

I would recommend to change your updater application so that it does not execute the installer but just writes it to a particular directory. After it has finished you can check if an executable exists in the directory and ask if it should be executed. If the user confirms the update, you then invoke another custom installer application that only contains the "Run executable" action from the original updater template.

Upvotes: 1

Related Questions