1

我正在使用安装程序来升级现有应用程序。在旧版本的应用程序中,配置存储在 sys.contentDir 目录中的应用程序包中。在新版本的应用程序中,我们将配置移动到 ~/Library/ AppName/ 目录。安装程序附带一个默认配置。安装文件后Move Action,如果用户的文件中有一个文件,我应该接受配置,sys.contentDir然后移动它并覆盖AppName安装程序随该Install Files步骤安装的 ~/Library/ 目录中的文件。没有任何反应,我得到的唯一错误消息是该步骤未成功完成。我尝试强制安装程序以 root 身份运行,甚至将文件移动到 /tmp 作为测试。我已经设置Overwrite ModeAlways 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
4

1 回答 1

1

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

于 2012-10-23T18:34:48.980 回答