• 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: Wrapping a 3rd party PKG, triggering from /private/tmp
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wrapping a 3rd party PKG, triggering from /private/tmp


  • Subject: Re: Wrapping a 3rd party PKG, triggering from /private/tmp
  • From: Don Montalvo <email@hidden>
  • Date: Thu, 31 Jan 2013 23:12:11 -0600

Gotcha, I see why it's best practice to use quotes.

Thanks,
Don

On Jan 29, 2013, at 6:39 AM, Andrew Keller <email@hidden> wrote:

> In my experience, $3 contains '/' if you are installing onto the boot volume.  To check a volume name with spaces, install onto a non-boot volume that happens to also have spaces in the volume name.
>
> ~ Andrew
>
> On Jan 29, 2013, at 1:40 AM, Don Montalvo wrote:
>
>> We tested in a volume named "Macintosh HD"...or are you bustin' my chops? LOL
>>
>> Don
>>
>> On Jan 28, 2013, at 11:00 PM, Greg Neagle <email@hidden> wrote:
>>
>>> I'd recommend at least putting quotes around $3 in case the volume name has spaces in it.
>>>
>>> -Greg
>>>
>>> On Jan 28, 2013, at 8:42 PM, Don Montalvo <email@hidden> wrote:
>>>
>>>> Ok, I tested the below, works like a charm. We selected Distribution, and Bundle.
>>>>
>>>> Thanks,
>>>> Don
>>>>
>>>> On Jan 28, 2013, at 3:45 PM, Don Montalvo <email@hidden> wrote:
>>>>
>>>>> We are trying to crate a wrapper installer that will run a PKG/MPKG that we place into /private/tmp directory.
>>>>>
>>>>> 	/private/tmp/installer.pkg
>>>>>
>>>>> Using Packages, first question - should we select Distribution or Raw format?
>>>>>
>>>>> Do we select Flat or Bundle?
>>>>>
>>>>> OK, with that out of the way, what is the "post-install" script syntax needed to run the PKG that we placed into /private/tmp directory?
>>>>>
>>>>> Does this look right? Or is there some other syntax needed?
>>>>>
>>>>> 	#!/bin/sh
>>>>> 	#
>>>>> 	# installer -pkg /private/tmp/installer.pkg -target $3
>>>>> 	#
>>>>> 	# exit 0
>>>>>
>>>>> Thanks,
>>>>> Don
>
>


 _______________________________________________
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: 
 >Wrapping a 3rd party PKG, triggering from /private/tmp (From: Don Montalvo <email@hidden>)
 >Re: Wrapping a 3rd party PKG, triggering from /private/tmp (From: Don Montalvo <email@hidden>)
 >Re: Wrapping a 3rd party PKG, triggering from /private/tmp (From: Greg Neagle <email@hidden>)
 >Re: Wrapping a 3rd party PKG, triggering from /private/tmp (From: Don Montalvo <email@hidden>)
 >Re: Wrapping a 3rd party PKG, triggering from /private/tmp (From: Andrew Keller <email@hidden>)

  • Prev by Date: Re: Wrapping a 3rd party PKG, triggering from /private/tmp
  • Previous by thread: Re: Wrapping a 3rd party PKG, triggering from /private/tmp
  • Index(es):
    • Date
    • Thread