osx - modify PackageMaker installer variables from a script -


i attempting create mac os x installer (tried both packagemaker , packages) 2 things on install:

  1. check if application installed (by looking through folder structure in applications directory) , set component selections accordingly.
  2. setting destination folder of package according folder found in 1. plugin needs go subdirectory of application folder.

the former seems it's relatively simple, can add script requirement choice associated each package , let result drive state of component checkbox.

the latter feels tricky. know how figure out location of application first step, have no idea whatsoever of how change destination folder that's set in package. can somehow access installer variables preflight script?

the idea have installing temp directory , moving stuff in post flight script, seems error prone , awkward. rule out possibility make installation paths editable (in case user has several instances of software we're plugging installed , picked wrong one).


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -