使用Install4j尝试准备Window GUI安装程序。在安装过程开始时安装程序生成后,它会从install4j本身抛出异常。
日志包括在下面。
Download: http://someurl.com/packages/jdk/jdk-6u43-win-x86/jdk.zip to c:\packages\jdk.zip; size: 92416142 bytes
Execute action successful after 6561 ms
[INFO] com.install4j.runtime.beans.actions.files.ExtractZipFileAction [ID 67]: Execute action
Property mode: 644
Property showProgress: true
Property destinationDirectory: installed_software
Property dirMode: 755
Property fileFilter: null
Property zipFile: packages\jdk.zip
Property rollbackSupported: true
[ERROR] com.install4j.runtime.beans.actions.files.ExtractZipFileAction [ID 67]: exception java.io.FileNotFoundException: c:\installed_software\jdk\bin\msvcr71.dll (The process cannot access the file because it is being used by another process)
java.io.FileNotFoundException: c:\dfdeploy\installed_software\jdk\bin\msvcr71.dll (The process cannot access the file because it is being used by another process)
java.io.FileNotFoundException: c:\installed_software\jdk\bin\msvcr71.dll (The process cannot access the file because it is being used by another process)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
at com.exe4j.runtime.util.FileUtil.extractFile(Unknown Source)
at com.install4j.runtime.beans.actions.files.ExtractZipFileAction.createFile(Unknown Source)
at com.install4j.runtime.beans.actions.files.AbstractExtractZipFileAction.extractZip(Unknown Source)