• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Packages - installing to current user's home directory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Packages - installing to current user's home directory


  • Subject: Re: Packages - installing to current user's home directory
  • From: Hanspeter Harpf <email@hidden>
  • Date: Thu, 16 Mar 2017 11:32:43 +0100

Dear Sergey,

the goal is to install the main application into the application folder and some files into the "current user“ folder (example: /Users/hanspeterharpf/Documents/)
As I was reading that Packages doesn’t allow this (http://s.sudre.free.fr/Software/Packages/Q&A_3.html —> You can not install items both in the current user's home directory and outside it. This is not supported by the distribution script format.), I had the idea to create a second „Distribution Package“ (http://s.sudre.free.fr/Software/Packages/Q&A_3.html) and run that *.pkg during my main installation package.
So a separate installation is not intended but I think that is the only solution.

Dear Mike,

thank you so much for you URL to the „The Commandments of Packaging in OS X“; very helpful.
what if there is no "current user" when the package is installed, like if the system is at the login prompt when the package is installed? What will happen if another user is added to the machine after the installer is run?
I’m aware that a new created user won’t have those files which have been installed into the „other“ user folder; the files are not essential for a functional work of the application but more some additional – helpful – settings.

Thank you and Best Regards,
Hanspeter Harpf


Am 16.03.2017 um 10:36 schrieb Sergey MadBish <email@hidden>:

As far as I understood you have to distribute (install) both packages separately.

2017-03-15 22:35 GMT+02:00 Hanspeter Harpf <email@hidden>:
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?

Thank you very much for any comment on this issue!
Best Regards,
Hanspeter Harpf



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Packages - installing to current user's home directory (From: Hanspeter Harpf <email@hidden>)

  • Prev by Date: Re: Packages - installing to current user's home directory
  • Next by Date: Re: Packages - installing to current user's home directory
  • Previous by thread: Re: Packages - installing to current user's home directory
  • Next by thread: Re: Packages - installing to current user's home directory
  • Index(es):
    • Date
    • Thread