简体   繁体   English

更新install4j应用程序

[英]Updating install4j application

I am working on packaging Java 7 application for Windows using install4j. 我正在使用install4j为Windows打包Java 7应用程序。 My application requires restart of the pc after installation. 我的应用程序要求安装后重新启动PC。 When the user first install the application he is prompted if he wants to restart the pc and thats perfect. 用户首次安装该应用程序时,系统会提示他是否要重新启动PC,这很完美。 I also use the automatic update feature via the updates.xml. 我还通过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. 无法在无人照管模式下向用户询问任何内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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