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.
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.
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.
Mount the Auxiliary Tools, and run PackageManager.
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.
Click My Package, and choose Configuration. Specify the Title and Description.
Click the bundle. Change the installation destination to /Library/Internet Plug-Ins.
Click Build, and select the location to save the pkg file.
Click Save to generate the installer.
Now, you can try to install the package by double-click.
After finishing the installation, open the directory /Library/Internet Plug-Ins to verify whether the bundle is there.