我正在使用安裝程序升級現有的應用程序。在舊版本的應用程序中,配置存儲在sys.contentDir目錄中的應用程序包中。在新版本的應用程序中,我們將配置移至〜/ Library/AppName
/目錄。默認配置隨安裝程序一起提供。安裝這些文件後,我有一個Move Action
,如果用戶的sys.contentDir
中有一個文件,並且將其移動並覆蓋安裝程序安裝的Install Files
步驟的〜/ Library/AppName
目錄中的文件,那麼該文件應該被配置。沒有任何反應,我得到的唯一錯誤信息是該步驟未成功完成。我嘗試強制安裝程序以root用戶身份運行,甚至將文件移動到/ tmp作爲測試。我已將Overwrite Mode
設置爲Always Ask
,但它從不要求。我也試着複製它,沒有任何工作。任何有關我在哪裏可以找到詳細的錯誤消息或可能發生的事情的深刻見解都將不勝感激。從我的步驟看來,訪問安裝目錄中的配置可能存在權限錯誤,但我以自己的身份運行安裝程序,並且我有權限訪問該文件。Install4j OS X - 從應用程序包中移動文件
日誌文件輸出的複製和移動操作:
[INFO] com.install4j.runtime.beans.actions.files.CopyFileAction: Before execute action
[INFO] com.install4j.runtime.beans.actions.files.CopyFileAction: Property shared: false
[INFO] com.install4j.runtime.beans.actions.files.CopyFileAction: Property mode: 644
[INFO] com.install4j.runtime.beans.actions.files.CopyFileAction: Property overwriteMode: Always ask except for update
[INFO] com.install4j.runtime.beans.actions.files.CopyFileAction: Property uninst allMode: If created
[INFO] com.install4j.runtime.beans.actions.files.CopyFileAction: Property destin ationFile: /Users/brian/Library/DesktopClient/copy.xml
[INFO] com.install4j.runtime.beans.actions.files.CopyFileAction: Property delay: false
[INFO] com.install4j.runtime.beans.actions.files.CopyFileAction: Property triggerReboot: true
[INFO] com.install4j.runtime.beans.actions.files.CopyFileAction: Property directoryMode: 755
[INFO] com.install4j.runtime.beans.actions.files.CopyFileAction: Property sourceFile: /Applications/DesktopClient.app/Contents/Resources/app/desktop-client.xml
[INFO] com.install4j.runtime.beans.actions.files.CopyFileAction: Property rollbackSupported: true
[ERROR] com.install4j.runtime.beans.actions.files.CopyFileAction: Execute action not successful
[INFO] com.install4j.runtime.beans.actions.files.MoveFileAction: Before execute action
[INFO] com.install4j.runtime.beans.actions.files.MoveFileAction: Property shared : false
[INFO] com.install4j.runtime.beans.actions.files.MoveFileAction: Property mode: 644
[INFO] com.install4j.runtime.beans.actions.files.MoveFileAction: Property overwriteMode: Always ask
[INFO] com.install4j.runtime.beans.actions.files.MoveFileAction: Property uninstallMode: Always
[INFO] com.install4j.runtime.beans.actions.files.MoveFileAction: Property destinationFile: /Users/brian/Library/DesktopClient/move.xml
[INFO] com.install4j.runtime.beans.actions.files.MoveFileAction: Property delay: false
[INFO] com.install4j.runtime.beans.actions.files.MoveFileAction: Property triggerReboot: true
[INFO] com.install4j.runtime.beans.actions.files.MoveFileAction: Property directoryMode: 755
[INFO] com.install4j.runtime.beans.actions.files.MoveFileAction: Property sourceFile: /Applications/DesktopClient.app/Contents/Resources/app/desktop-client.xml
[INFO] com.install4j.runtime.beans.actions.files.MoveFileAction: Property rollbackSupported: true
[ERROR] com.install4j.runtime.beans.actions.files.MoveFileAction: Execute action not successful
安裝後.install4/installation.log文件中的輸出是什麼? –
我已經添加了兩個操作的日誌輸出。我認爲整個日誌可能有點多,但如果需要的話我可以提供給你。 – Brian
我假設存在源文件和目標目錄。你使用的是什麼版本的install4j?在最近的版本中,應該有一個額外的行解釋失敗的原因。 –