Re: PackageMaker & a Script
Re: PackageMaker & a Script
- Subject: Re: PackageMaker & a Script
- From: George Spiese <email@hidden>
- Date: Wed, 20 Jun 2012 15:21:44 -0400
The Resource directory of what exactly?
Selecting the PackageMaker Distribution (the top item in the left pane)
there are three tabs available in the right pane: Configuration; Requirements;
Actions.
The next item down in the left pane
is, in my example, the flashPlayerPlugin.package. Selecting that in the
left pane provides me with three tabs in the right pane: Configuration;
Contents; Components; Scripts. Although I have tested putting my script
in the preinstall field of this Scripts tab. This didn't work, and I don't
want to mess with any prepackaged third party installers anyway.
My last item in the mpkg is the placement
of a file. Selecting it in the left pane shows two tabs in the right pane:
Configuration; Requirements.
In tests, I had placed the script I
have in the left pane, put it was not named preflight, it was the name
I gave it when I created it. It has the file name extension .sh. I am not
sure what you mean by put it in the "Resources" directory. I
don't see one. Should I rename the Script "Preflight" (with or
without the .sh extension?) and drop it into the left pane of PackageMaker?
Can you also explain where to indicate a "bundle" package or
"flat" package. I don't see settings for that.
Thanks,
George Spiese
From:
Greg Neagle <email@hidden>
To:
George Spiese/USA/SC/CSC@CSC,
Cc:
"email@hidden
mailing-list" <email@hidden>
Date:
06/20/2012 02:00 PM
Subject:
Re: PackageMaker
& a Script
Such a script should be marked as executable, named exactly
"preflight", and be put in the Resources directory.
This all assumes a "bundle"-style package, and
not a flat package.
-Greg
On Jun 20, 2012, at 10:44 AM, George Spiese wrote:
In this case I want it to run before
the package that's also part of the .mpkg runs. My overall question is
"where do I put the script, any script" I could find nothing
in the doc that told me where.
Thanks,
George Spiese
From: Greg
Neagle <email@hidden>
To: George
Spiese/USA/SC/CSC@CSC,
Cc: "email@hidden"
<email@hidden>
Date: 06/20/2012
12:20 PM
Subject: Re:
PackageMaker & a Script
When do you want/expect this script to run?
Before the package is installed?
After the package is installed?
At some time in the future; perhaps after a reboot, or at the next login?
-Greg
On Jun 20, 2012, at 7:04 AM, George Spiese <email@hidden>
wrote:
I am using Apple's PackageMaker v3.0.5 to create a mpkg file that contains
three items:
•A shell script
•An Adobe Flash Player .pkg file
•A .cfg file
Everything works except the script. How do I get this script to fire when
sending to a remote Mac?
Each item works when tested individually. The test was using Casper Suite's
Casper Remote to send each to a remote Mac. The shell script sent, unpackaged
fires and deletes three files on the remote Mac, just fine. The adobe Flash
.pkg sent the same way installs the Flash Plugin and daemon as expected.
The file is the mms.cfg. File that the Adobe Software Update Daemon reads.
I've changed the settings of this file to what I want it to be. This file
gets placed where I've indicated in the destination field of PackageMaker.
I have changed the permissions on the script to Owner=root and Group=admin
which had no affect. The script isn't running. I need to know where in
PackageMaker to place the script and how I ensure it runs when sent to
a remote Mac.
Thanks,
George Spiese
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden