PDA

View Full Version : writting a proper mpkg




BruisedGhost
Sep 29, 2008, 12:14 PM
Hi All,

I am new to writing installers for OSX and am not very familiar with the package maker application. As a result I have a question regarding it. In addition to my installer I need to configure a .txt file so that it tells my client app where a database is.

essentially the file is a Oracle Connection info file (which basically looks like)

DB_<INSTANCE>=jdbc: oracle:thin:@<SERVER>:<PORT>:<SID>
OS=MAC
MAIL_SERVER= <MAIL>
MAIL_PORT=25
MAIL_USE_AUTH=false
MAIL_USE_SSL=false


Where the installer will prompt for the bracketed values. I know how to do this in WISE but I am unsure how to do this in the package creator app. I know that the package creator does allow for scripts but i am unsure what I should use.

If anyone could point me in the right direction I would be very grateful!

Thanks


EDIT: I put the space between the : and oracle because when I was typing them in together this was happening :o



kainjow
Sep 29, 2008, 12:43 PM
You might have to write an AppleScript to prompt the user for information. You could do this in the preflight or postflight part. See The Installation Process (http://developer.apple.com/documentation/DeveloperTools/Conceptual/SoftwareDistribution/Managed_Installs/chapter_5_section_4.html).

BruisedGhost
Sep 29, 2008, 12:46 PM
Thanks!