インストーラーを使用して既存のアプリをアップグレードしています。古いバージョンのアプリでは、構成はsys.contentDirディレクトリのアプリケーションバンドルに保存されていました。アプリの新しいバージョンでは、構成を〜/ Library//AppName
ディレクトリに移動しています。デフォルトの構成はインストーラーに付属しています。ファイルをインストールした後、ユーザーMove Action
のファイルがある場合は構成を取得して移動し、インストーラーがステップでインストールしsys.contentDir
た〜/Library/ディレクトリのファイルを上書きする必要があります。何も起こらず、私が受け取る唯一のエラーメッセージは、ステップが失敗したことです。インストーラーをrootとして実行するように強制し、テストとして代わりにファイルを/tmpに移動しようとしました。私はに設定しましたAppName
Install Files
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