Note that there are some explanatory texts on larger screens.

plurals
  1. POInstall4j OS X - moving a file from an application bundle
    text
    copied!<p>I am using an installer to upgrade an existing app. In the old version of the app, the config was stored in the application bundle in the sys.contentDir directory. In the new version of the app we are moving the config to the ~/Library/<code>AppName</code>/ directory. A default config ships with the installer. After installing the files I have a <code>Move Action</code> that should take the config if there is one in the user's <code>sys.contentDir</code> and move it and overwrite the one in ~/Library/<code>AppName</code> directory that the installer installed with the <code>Install Files</code> step. Nothing happens and the only error message I get is that the step finished unsuccessfully. I have tried forcing the installer to run as root and even moving the file to /tmp instead as a test. I have set <code>Overwrite Mode</code> to <code>Always Ask</code>, but it never asks. I also tried copying it and nothing is working. Any insight as to where I can find a detailed error message or what might be going on is greatly appreciated. From my steps it seems that there may be a permissions error accessing the config in the installation directory but I am running the installer as myself and I have permission to that file. </p> <p>Log file output for the Copy and Move Actions:</p> <pre><code>[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 </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload