Install4j:在 Windows Server 2012 64 位中安装后执行重启时可执行文件被删除

Install4j: Executable file deleted when reboot was performed after the installation in Windows Server 2012 64bit

我使用 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>

这是在 install4j 6.1.2 中修复的错误。