title: Installing and triggerring macOS app from an install4j installer
body: <p>I have use-case where my java app needs to access USBMSC (USB mass storage class) devices through serial port using a third party dylib. However, since macOS mojave (10.13) the privileged helper tool script written in shell-script stopped working. To address that we create a swift app that can set the correct permissions of the the device without using a shell-script and that is working as expected. I now want to create a re-distributable that can install both, the executable jar and the macOS app, because we do not want users to run separate installers and make their experience any worse.</p>
  <p>I have tried bundling the app along with other files and using <strong>Run executable or batch file</strong> action without any success.</p>
  <p>Any help will be appreciated.</p>
  <p><strong>EDIT</strong>: After running few tests using trial and error (Yup, I could not find the installation log files on mac), the real root cause was found. The helper application is missing &quot;Removable media&quot; permissions, which should be inherited from the parent application, as the helper application is bundled within the parent java app bundle.
  I was able to execute the helper macOS app from the parent app contents only after giving the permission to access the &quot;Removable media&quot; from <code>System Preferences-&gt;Security &amp; Privacy-&gt;Files and Folders</code> to the parent app.</p>
  <p>Now the question really changes to: How can I acquire the &quot;Removable media&quot; permission during the installation itself before executing the helper macOS  app through <strong>Run executable or batch file</strong> action?</p>