On Wed, Mar 15, 2017 at 9:35 PM, Hanspeter Harpf <
email@hidden> wrote:
Dear all,
I just created with the Packages Installer a main installer which installs the application to the application folder and everything works fine.
Now I need to install in addition some files into the current user's home directory (a.k.a. ˜/).
Therefore I created based on the following guide (http://s.sudre.free.fr/Software/Packages/Q&A_3.html) a second installer (*.pkg).
I tried now to integrate that „second“ installer into my main installer and it seems that everything works fine but the files do not be installed into the current user's home directory.
To do so I used this guide (https://derflounder.wordpress.com/2013/11/03/re-packaging-installer-packages-with-packages/) to integrate my second installer into the main installer.
I could see that this is done with a RAW Package.
So my question is if anyone has some hints why it doesn’t work?
It may be working but not as you're expecting.
When the installation script of your first installation package is
run, it is run as root. So if you do not use "/usr/bin/su $USER -c …"
to invoke the installer command line tool for your secondary package,
the secondary package will be installed in the home folder of the root
user account.
If this is not the problem and providing the installation package is
not an issue, this could help investigate the issue.