• 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 - how to make an uninstaller?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Packages - how to make an uninstaller?


  • Subject: Re: Packages - how to make an uninstaller?
  • From: Stephen Kay <email@hidden>
  • Date: Wed, 29 Mar 2017 20:02:10 -0700
  • Thread-topic: Packages - how to make an uninstaller?

Most excellent. Thanks!

- Stephen

On 3/29/17 5:22 PM, "Conor Schutzman" <email@hidden> wrote:

>I’d likely point you to Rich Trouton’s blog post that talks about
>script-only packages, which has a huge amount of information that also
>pertains to packages with more than just scripts.
>https://derflounder.wordpress.com/2014/06/01/understanding-payload-free-pa
>ckages/
>
>Variable
>
>What’s Referenced
>$0
>=
>Returns the path to the script
>$1
>=
>Returns the path to the installer package
>$2
>=
>Returns the target location (for example: /Applications)
>$3
>=
>Returns the target volume (for example: /Volumes/Macintosh HD)
>
>
>
>On Mar 29, 2017, at 5:17 PM, Stephen Kay <email@hidden> wrote:
>
>Thanks. Does anyone have a link to a reference/list about installer
>environment variables?
>
>- Stephen
>
>On 3/29/17 12:01 PM, "Conor Schutzman" <email@hidden> wrote:
>
>
>$3 is an environment variable that exists for scripts executed by
>installer, it refers to the installation volume.
>
>For example, if you had multiple partitions, and were booted to
>MacintoshHD, but were installing to a partition named Storage; $3 would
>resolve to “/Volumes/Storage”.  In most traditional environments, $3 just
>resolves to “/“, but it’s important to understand it’s use for more
>specialized/exotic configurations.
>
>On Mar 29, 2017, at 11:56 AM, Stephen Kay <email@hidden> wrote:
>
>Ok, thanks - I get it.
>
>So in this example:
>
>## Is Foo installed? ##
>if [[ -d "$3/Applications/Foo.app" ]] ; then
>
>Where is $3 coming from? I understand that $1 $2 $3 etc. are positional
>variables.
>
>Thanks,
>- Stephen
>
>
>On 3/28/17 2:52 PM, "Stephane Sudre" <email@hidden> wrote:
>
>On Tue, Mar 28, 2017 at 11:30 PM, Mike Solin <email@hidden>
>wrote:
>It¹s built-in to the shell.  See 'man bash'.
>
>
>
>On Tue, Mar 28, 2017 at 2:28 PM, Stephen Kay <email@hidden> wrote:
>
>Thanks for the example! Excuse my ignorance, but what does '-d'
>command
>do? I've been trying to search for info on this, related to
>shell-scripting, but couldn't find anything.
>
>
>
>To avoid reading more than 10 pages of the bash man pages to find the
>answer:
>
>
>http://stackoverflow.com/questions/59838/check-if-a-directory-exists-in-
>a-
>shell-script
>
>
>
>
>
>
>
>_______________________________________________
>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>)
 >Re: Packages - installing to current user's home directory (From: Stephane Sudre <email@hidden>)
 >Re: Packages - installing to current user's home directory (From: Hanspeter Harpf <email@hidden>)
 >Packages - how to make an uninstaller? (From: Stephen Kay <email@hidden>)
 >Re: Packages - how to make an uninstaller? (From: Conor Schutzman <email@hidden>)
 >Re: Packages - how to make an uninstaller? (From: Stephen Kay <email@hidden>)
 >Re: Packages - how to make an uninstaller? (From: Oakman <email@hidden>)
 >Re: Packages - how to make an uninstaller? (From: Stephen Kay <email@hidden>)
 >Re: Packages - how to make an uninstaller? (From: Mike Solin <email@hidden>)
 >Re: Packages - how to make an uninstaller? (From: Stephane Sudre <email@hidden>)
 >Re: Packages - how to make an uninstaller? (From: Stephen Kay <email@hidden>)
 >Re: Packages - how to make an uninstaller? (From: Conor Schutzman <email@hidden>)
 >Re: Packages - how to make an uninstaller? (From: Stephen Kay <email@hidden>)
 >Re: Packages - how to make an uninstaller? (From: Conor Schutzman <email@hidden>)

  • Prev by Date: Re: Packages - how to make an uninstaller?
  • Next by Date: Packages - deleting older files on newer installation
  • Previous by thread: Re: Packages - how to make an uninstaller?
  • Next by thread: Re: Packages - how to make an uninstaller?
  • Index(es):
    • Date
    • Thread