How to make pkg Installer on Mac OS X

When you visit the Dynamic Web TWAIN online demo from Mac OS X, you need to download and install a pkg plugin. How is the installer made? Where is the installed plugin located in the file system? In this tutorial, I will show you how easy it is to make such an installer yourself.

Dynamsoft Barcode Reader SDK
Ads Powered by Dynamsoft

Making PKG Installer

To create a pkg installer, you need to use PackageManager.app, which was located at /Developer/Applications/Utilities/ after installing Xcode 3.x.

utilities

However, since Apple moved the Xcode to Mac App Store, some utilities have been removed from the installer, including PackageManager. Therefore, you cannot find the application in the latest Xcode 5.x. Instead, you need to download it from https://developer.apple.com/downloads. The tool is included in Auxiliary Tools.

PackageManager

Mount the Auxiliary Tools, and run PackageManager.

installer properties

In the Organization field, you need to enter a string complying with the convention com.example. So, I just type in com.dynamsoft, and select the OS target Mac OS X v10.5 Leopard.

Click OK. Drag *.app or *.bundle to the left panel.

Here I use NPDynamicWebTwain.bundle.

drag bundle

Click My Package, and choose Configuration. Specify the Title and Description.

package configuration

Click the bundle. Change the installation destination to /Library/Internet Plug-Ins.

package destination

Click Build, and select the location to save the pkg file.

build

Click Save to generate the installer.

Now, you can try to install the package by double-click.

run installer

After finishing the installation, open the directory /Library/Internet Plug-Ins to verify whether the bundle is there.

bundle

  • GhostNinja

    Awesome tutorial was very helpful thank you I think I woulda been lost without it.

  • a

    hi