cancel
Showing results for 
Search instead for 
Did you mean: 
upinya
Level 7
Report Inappropriate Content
Message 11 of 16

Re: install.sh, Package as .mkpg or .dmg?

Jump to solution

Seriously, talk about a home run. I just went through these detailed steps and bam. Worked the first time. I've integrated that dmg into our software distribution mechanism and tested that successfully as well. We're really humming now, Gold Star for tdmomega!

Re: install.sh, Package as .mkpg or .dmg?

Jump to solution

I am glad it worked for you.  I also realized that in all my efforts to NOT disclose my company, I included my company name in the script text   I went ahead and changed it so as to save myself from our legal folks.  FYI, I have used the same methodology for other packages as well, so hopefully this will give you a leg up on creating other packages in PackageMaker for your org.

Regards,

tdmomega

Re: install.sh, Package as .mkpg or .dmg?

Jump to solution

I'm having some problems with the packager... Using 10.7 and XCode 4.2 whilst running install scripts it crashes out with an error...

This is the console logs..

08/11/2011 15:21:33.416 Installer: @(#)PROGRAM:Install  PROJECT:Install-686.2

08/11/2011 15:21:33.416 Installer: @(#)PROGRAM:Installer  PROJECT:Installer-530

08/11/2011 15:21:33.416 Installer: Hardware: MacBookAir3,1 @ 1.40 GHz (x 2), 4096 MB RAM

08/11/2011 15:21:33.417 Installer: Running OS Build: Mac OS X 10.7.2 (11C74)

08/11/2011 15:21:33.563 Installer: Installer  Installation Log

08/11/2011 15:21:33.563 Installer: Opened from: /Users/philstone/Desktop/Installer.pkg

08/11/2011 15:21:37.220 Installer: InstallerStatusNotifications plugin loaded

08/11/2011 15:21:42.554 Installer: ================================================================================

08/11/2011 15:21:42.554 Installer: User picked Standard Install

08/11/2011 15:21:42.554 Installer: Choices selected for installation:

08/11/2011 15:21:42.554 Installer:           Install: "Installer"

08/11/2011 15:21:42.554 Installer: ================================================================================

08/11/2011 15:21:42.661 Installer: Configuring volume "OnzAir"

08/11/2011 15:21:42.677 Installer: Free space on "OnzAir": 69.05 GB (69047386112 bytes).

08/11/2011 15:21:42.677 Installer: Create temporary directory "/var/folders/y0/0dphmfm11zbbpnmp268ty2_r0000gn/T//Install.597jHdaZ6"

08/11/2011 15:21:42.688 Installer: IFPKInstallElement (1 packages)

08/11/2011 15:21:42.771 authorizationhost: SFBuiltinEntitled: Installer.app is not entitled for system.install.apple-software

08/11/2011 15:21:42.830 authorizationhost: SFBuiltinEntitled: Installer.app is not entitled for system.install.app-store-software

08/11/2011 15:21:42.879 authorizationhost: SFBuiltinEntitled: Installer.app is not entitled for system.install.app-store-software

08/11/2011 15:21:42.881 com.apple.SecurityServer: Failed to authorize right 'system.install.app-store-software' by client '/System/Library/PrivateFrameworks/PackageKit.framework/Versions/A/Resources/installd' [606] for authorization created by '/System/Library/CoreServices/Installer.app' [597]

08/11/2011 15:21:42.887 installd: PackageKit: ----- Begin install -----

08/11/2011 15:21:43.452 ReportCrash: DebugSymbols was unable to start a spotlight query: spotlight is not responding or disabled.

08/11/2011 15:21:44.221 installd: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “Installer”." UserInfo=0x10c34ef50 {NSFilePath=./postinstall, NSURL=file://localhost/Users/philstone/Desktop/Installer.pkg, PKInstallPackageIdentifier=com.MyCompany.install.pkg, NSLocalizedDescription=An error occurred while running scripts from the package “Installer”.} {

    NSFilePath = "./postinstall";

    NSLocalizedDescription = "An error occurred while running scripts from the package \U201cInstaller\U201d.";

    NSURL = "file://localhost/Users/philstone/Desktop/Installer.pkg";

    PKInstallPackageIdentifier = "com.MyCompany.install.pkg";

}

08/11/2011 15:21:44.389 ReportCrash: Saved crash report for installd[611] version ??? (???) to /Library/Logs/DiagnosticReports/installd_2011-11-08-152144_localhost.crash

08/11/2011 15:21:44.899 Installer: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.

08/11/2011 15:21:45.063 Installer: IFDInstallController A3C56E70 state = 7

08/11/2011 15:21:45.063 Installer: Displaying 'Install Failed' UI.

08/11/2011 15:21:45.075 Installer: 'Install Failed' UI displayed message:'The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.'.

08/11/2011 15:21:45.115 Installer: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.

The install.sh gets copied to the correct folder, it seems that it cannot then run the install.sh...

Can anyone please advise as to why I'm getting this error?

Thanks

Re: install.sh, Package as .mkpg or .dmg?

Jump to solution

Have you had any experience with packaging this product into an InstaDMG build train.  Also, do you already have The virussan product installed on these systems and then just running the install.sh to update the agent and connect to EPO or does the install.sh install the whole application?

Thanks

Brian

cward2
Level 7
Report Inappropriate Content
Message 15 of 16

Re: install.sh, Package as .mkpg or .dmg?

Jump to solution

I have followed the steps above line by line and for some reason I am experiencing the same issue as PhilStone.

The install.sh file copies to the directory I have designated, /Users/Shared/, but it errors out when it gets to the postinstall script from the instructions tdmomega posted.

I am currently using the most recent version of Package Maker that I downloaded from Apple's Developer website as well as using Mac OS X Mountain Lion.

Has anyone run into this issue and found a workaround?

Re: install.sh, Package as .mkpg or .dmg?

Jump to solution

I haven't been on here for a while, as I no longer work on McAfee products.  I actually work for another company on a competitor HIDS solution.  However, with the introduction of Mountain Lion, Apple created a new feature called GateKeeper to prevent the running of apps that are either not in the App Store or are not "signed".  The third option is to allow apps that come from "Anywhere".  As I have never tested my original method on Mountain Lion, I can only assume that the Gatekeeper may be causing the failures.  On the system that is failing, check the /var/log/install.log and see what the failure actually is.  This may help identify the issue.  I wish I could provide you guys more information, but that is all I can think of right now without actually being able to test myself.

More McAfee Tools to Help You
  • Subscription Service Notification (SNS)
  • How-to: Endpoint Removal Tool
  • Support: Endpoint Security
  • eSupport: Policy Orchestrator