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

问题描述:

我使用install4j 6.1.1在Windows 7 64位中生成了安装程序可执行文件。然后将可执行文件复制到Windows服务器2012计算机并安装该软件。安装完成后,Windows会随时重新启动(不需要我的软件安装过程),但重新启动后,安装程序文件消失了!我重新测试了它,让安装程序保留在不同的位置,但每次安装软件并重新启动时,奇怪的是安装程序都会被删除。Install4j:在Windows Server 2012安装后执行重新启动时删除的可执行文件64位

以下是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。

+0

出于好奇,如果它不是太复杂,文件删除的原因是什么? – ShaDooW