Java install4j-jre.bundle未更新
我使用的是install4j 5.1.15,我有适用于Mac OS和Windows 64位的安装程序以及捆绑的JRE 7。“我的应用”的安装/更新在此安装程序中不会出现问题 现在我需要将捆绑的JRE(安装在Java install4j-jre.bundle未更新,java,macos,install4j,Java,Macos,Install4j,我使用的是install4j 5.1.15,我有适用于Mac OS和Windows 64位的安装程序以及捆绑的JRE 7。“我的应用”的安装/更新在此安装程序中不会出现问题 现在我需要将捆绑的JRE(安装在/Applications/MyApp/.install4j/JRE.bundle)从7升级到8。我用JRE 8构建了新的安装程序(在我的更新操作的配置中选中了选项updatebundledJRE) 问题:JRE 8是在我进行干净安装时安装的,但当我尝试更新现有安装时,现有JRE 7不会更新为
/Applications/MyApp/.install4j/JRE.bundle
)从7升级到8。我用JRE 8构建了新的安装程序(在我的更新操作的配置中选中了选项updatebundledJRE
)
问题:JRE 8是在我进行干净安装时安装的,但当我尝试更新现有安装时,现有JRE 7不会更新为JRE 8。其他文件已正确更新。同样的行为在Mac OS和Windows 64位操作系统上也存在。此外,我在日志文件中没有看到任何警告/错误。是虫子还是我错过了什么
编辑:在installation.log
中没有关于更新JRE文件的消息,即使updateBundledJre:true
:
[INFO] com.install4j.runtime.beans.actions.InstallFilesAction [ID 767]: Execute action
Property sizeCalculatorScript: null
Property installRuntime: false
Property saveDownloadedFiles: false
Property updateBundledJre: true
Property checkFreeSpace: true
Property validateApplicationId: false
Property delay: false
Property triggerReboot: true
Property directoryResolverScript: null
Property fileFilterScript: null
Property showFileNames: true
Property rollbackSupported: true
Install file: /Applications/MyApp/my-file.tmp; size: 245 bytes; exists: true
Execute action successful after 5650 ms
我尝试将
installRuntime
属性的值更改为true
,解决了我的问题。在更新过程中,当前JRE被移动到文件夹/Applications/MyApp/.install4j/\uui4j\uJRE\u backup
,并且新的JRE已正确安装。它现在适用于Mac OS和Windows
安装日志
:
[INFO] com.install4j.runtime.beans.actions.InstallFilesAction [ID 767]: Execute action
Property sizeCalculatorScript: null
Property installRuntime: true
Property saveDownloadedFiles: false
Property updateBundledJre: true
Property checkFreeSpace: true
Property validateApplicationId: false
Property delay: false
Property triggerReboot: true
Property directoryResolverScript: null
Property fileFilterScript: null
Property showFileNames: true
Property rollbackSupported: true
Install file:
Install file: /Applications/MyApp/my-file.tmp; size: 245 bytes; exists: true
Install file: /Applications/MyApp/.install4j/jre.bundle/Contents/Home/jre/bin/java; size: 103632 bytes; exists: false
File options set to: [fileTime: Wed Jul 29 12:34:46 CEST 2015, mode: 644, overwriteMode: Always ask except for update, shared: false, uninstallMode: If created, but not for update, delayIfNecessary: false]
...
Execute action successful after 12345 ms
您可以查看文件.install4j/installation.log,查看它是否尝试安装JRE 8文件谢谢您的评论。我附加了installation.log。