Using AutoPkg to Wrap a Third-Party Installer

112 views
Skip to first unread message

foigus

unread,
Feb 9, 2016, 5:09:18 PM2/9/16
to autopkg-discuss
I'm attempting to create an AutoPkg recipe for AccuBarcode Pro (http://www.accubarcode.com).  The installer application is in "install4j" format, and the creators of that format (ej-technologies) details the ability to run an installer "unattended" by adding the -q flag:


Essentially:

"AccuBarcode Pro Installer.app/Contents/MacOS/JavaApplicationStub" -q

I've created a package in Whitebox Packages that includes "AccuBarcode Pro Installer.app" into the package's "Resources" and executes a postinstall script that can successfully install AccuBarcode Pro (although a logout is recommended since the installer bounces the Finder during installation).  I'm attempting to recreate that in AutoPkg and am encountering one concern and one issue:

- Concern: Since the package has no payload (at least, not in the traditional sense), I'm not sure exactly how to properly express that with PkgRootCreator/PkgCreator.
- Issue: I (successfully) copy "AccuBarcode Pro Installer.app" into %RECIPE_CACHE_DIR%/Resources, however when I send PkgCreator the package creation request (including the "resources" key), the resources are not included in the package.

Recipes:


- Patrick

Chris Gerke

unread,
Feb 9, 2016, 11:53:06 PM2/9/16
to autopkg-discuss

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

foigus

unread,
Feb 10, 2016, 12:21:36 PM2/10/16
to autopkg-discuss
Yep--helped me figure out what I needed to do.  Also, Rich Trouton pointed out on MacAdmins Slack that flat packages have their "Resources" stored in the "Scripts" directory.  I came up with these recipes:

https://github.com/autopkg/foigus-recipes/tree/master/RDCGroup

I do need to address the uninstallation though, since the install4j installer is opaque and "removepackages" won't achieve the desired effect.

Thanks!

- Patrick
Reply all
Reply to author
Forward
0 new messages