我使用install4j 6.1.1在Windows 7 64位中生成了安装程序可执行文件。然后将可执行文件复制到Windows Server 2012计算机并安装了该软件。在安装之后,Windows在任何随机时间都重新启动(不需要我的软件安装过程),但在重新启动后,安装程序文件消失了!我已经重新测试了它将安装程序保存在不同的位置,但每次我安装软件然后执行重新启动时,奇怪的是安装程序被删除。
以下是install4j项目中的媒体文件设置:
<windows name="Windows-64" id="24" customizedId="win64" mediaFileName="${compiler:sys.shortName}_${compiler:sys.version}_Windows_x64" installDir="/backend" overridePrincipalLanguage="false" jreBitType="64" runPostProcessor="false" postProcessor="" failOnPostProcessorError="false" useLegacyMediaFileIds="false" legacyMediaFileIds="" downloadURL="" includeAllDownloadableComponents="false" includedJRE="resources/windows-amd64-1.7.0_79" manualJREEntry="false" bundleType="1" jreURL="" jreShared="false" directDownload="false" installOnlyIfNecessary="false" customInstallBaseDir="C:/" contentFilesType="1" verifyIntegrity="true">
<excludedComponents />
<includedDownloadableComponents />
<excludedLaunchers />
<excludedBeans>
<bean refId="3770" />
<bean refId="3771" />
<bean refId="1594" />
<bean refId="3772" />
<bean refId="1737" />
<bean refId="3773" />
</excludedBeans>
<overriddenPrincipalLanguage id="en" customLocalizationFile="" />
<exclude>
<entry location="admin/bin/teamviewer_11.0.57095.i686.rpm" fileType="regular" />
<entry location="bin/fpcsctl" fileType="regular" />
<entry location=".i4j_external_105/sql/initDB.sh" fileType="regular" />
<entry location=".i4j_external_105/temp/jdk1.7.0_79_linux-32.zip" fileType="regular" />
<entry location=".i4j_external_105/temp/jdk-7u79-windows-x32.zip" fileType="regular" />
<entry location=".i4j_external_105/temp/postgresql-9.4.6-linux-32.zip" fileType="regular" />
<entry location=".i4j_external_105/temp/postgresql-9.4.6-linux-64.zip" fileType="regular" />
<entry location=".i4j_external_105/temp/postgresql-9.4.6-windows-x86.zip" fileType="regular" />
<entry location=".i4j_external_105/temp/vcredist_x86.exe" fileType="regular" />
<entry location=".i4j_external_105/temp/jdk1.7.0_79_linux-64.zip" fileType="regular" />
<entry location=".i4j_external_105/temp/librxtxSerial.so" fileType="regular" />
<entry location=".i4j_external_105/temp/librxtxParallel.so" fileType="regular" />
</exclude>
<variables />
<autoUpdate useMinUpdatableVersion="false" minUpdatableVersion="" useMaxUpdatableVersion="false" maxUpdatableVersion="">
<commentFiles />
<customAttributes />
</autoUpdate>
</windows>
答案 0 :(得分:1)
这是在install4j 6.1.2中修复的错误。