Install4j OS X - 从应用程序包中移动文件

时间:2012-10-22 18:59:02

标签: install4j

我正在使用安装程序升级现有应用。在旧版本的应用程序中,配置存储在sys.contentDir目录中的应用程序包中。在新版本的应用程序中,我们将配置移动到〜/ Library / AppName /目录。默认配置随安装程序一起提供。安装文件后我有一个Move Action,如果用户的sys.contentDir中有一个,则应该接受配置并移动它并覆盖安装程序的〜/ Library / AppName目录中的一个安装Install Files步骤。没有任何反应,我得到的唯一错误信息是该步骤未成功完成。我试图强制安装程序以root身份运行,甚至将文件移动到/ tmp作为测试。我已将Overwrite Mode设置为Always Ask,但它从未询问过。我也试过复制它,没有任何工作。任何有关我可以在哪里找到详细错误消息或可能发生的事情的见解都非常感谢。在我的步骤中,似乎可能存在访问安装目录中的配置的权限错误,但我正在以我自己的身份运行安装程序,并且我有权访问该文件。

复制和移动操作的日志文件输出:

[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

1 个答案:

答案 0 :(得分:1)

当前版本的install4j(5.1.3)将打印一条诊断消息,显示操作失败的原因。在4.2.8中,没有诊断信息写入日志文件。