简体   繁体   中英

Updating install4j application

I am working on packaging Java 7 application for Windows using install4j. My application requires restart of the pc after installation. When the user first install the application he is prompted if he wants to restart the pc and thats perfect. I also use the automatic update feature via the updates.xml. The problem is when the aplication updates it restarts the pc without prompting the user. I need the user to be prompted regardless is it an update or first installation.

If the installer runs in unattended mode, it will not ask the user about a reboot if one is required. You can pass the argument

-Dinstall4j.suppressUnattendedReboot=true

to the installer in order to prevent any reboot. Search for the action names "Set installer arguments" in your updater configuration, you can enter the above argument there.

There is no way to ask the user anything in unattended mode.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM