Using PackageManager to create mpkg files



I want to create a package with which I can distribute my application. my app is dependent on another framework which needs to be installed from a pkg file. From what I read I have to create an mpkg file but could not get any good examples for doing this. Can someone please help and outline the steps required for creating an mpkg file which has 2 packages and runs a specific pkg file before running my app's pkg?

Or otherwise if I include the other pkg file in the Resources folder of my app, how can I run that pkg file before the app's actual installation begins. I am a total noob to PackageManager, so would really help if I can get an outline of all the steps to be followed.

I am using Mac OS X 10.5.5