VolumeCheck with flat packages

28 views
Skip to first unread message

Rusty Myers

unread,
Oct 22, 2014, 3:19:30 PM10/22/14
to the-l...@googlegroups.com
Hi all,

I'd like create a flat package that checks the OS version on the destination volume to ensure it's >= 10.9. In the past I've done this with VolumeCheck scripts in component packages. 

Is my only option to build a bundle package?

--
Rusty Myers

Vaughn Miller

unread,
Oct 22, 2014, 3:24:52 PM10/22/14
to the-l...@googlegroups.com
I'll admit to not being familiar with VolumeCheck scripts, but could you do the check in a preinstall script?  

Vaughn Miller

--
You received this message because you are subscribed to the Google Groups "The Luggage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to the-luggage...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Clay Caviness

unread,
Oct 22, 2014, 3:34:33 PM10/22/14
to the-l...@googlegroups.com
I haven't played with it, but I think you can do that with productbuild?
--
Clay Caviness
c...@google.com
Macintosh Operations Tech Lead
Google Inc.

Rusty Myers

unread,
Oct 23, 2014, 11:22:50 AM10/23/14
to the-l...@googlegroups.com
Vaughn, I tried the preinstall code, and that does work but the failure isn't very clear. It basically says the install failed, rather than the package isn't supported on this OS.

Clay, I'll check productbuild. Thanks!
Rusty Myers

Timothy Sutton

unread,
Oct 23, 2014, 11:37:33 AM10/23/14
to the-l...@googlegroups.com
This question must have come up on installer-dev a number of times and probably got answered by Stéphane :)

But for at least one working example, build a Distribution package with Packages.app and set an OS requirement - check out the distribution file that gets generated. You could likely grab some of that code and then feed productbuild your custom Distribution file with that.

The package-building script in the Munki GitHub repo also has an example of dynamically building a Distribution file with productbuild, but it doesn't contain an OS X version check script.


Tim
Reply all
Reply to author
Forward
0 new messages