• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: .mpkg Installer is Installing component two times.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: .mpkg Installer is Installing component two times.


  • Subject: Re: .mpkg Installer is Installing component two times.
  • From: Stephane Sudre <email@hidden>
  • Date: Wed, 10 Dec 2014 00:55:57 +0100

I would say it's a bug of the PackageKit framework that does not
perform the same installation procedure depending on the extension
whereas it should only rely on the contents of the xar archive
hierarchy to decide what to do.

- If you build a bundle distribution and use the .mpkg extension, the
installation behaves correctly.

- If you build a flat distribution and use the .pkg extension, the
installation behaves correctly.

- If you build a flat distribution and use the .mpkg extension, the
installation does not behave correctly according to the log.

I would suggest filing a bug report on Radar so that the problem gets
eventually fixed.

That being said, as far as I know, PackageMaker always used .mpkg for
bundle distributions and .pkg for flat distributions. That's what
other tools also do.



On Tue, Dec 9, 2014 at 3:53 PM, Rajeev Kumar
<email@hidden> wrote:
> Hi,
>
> I have created a  sample "MyApp.app" and I am creating the Installer for it.
>
> Case 1: Creating Installer.pkg [myapp folder contains MyApp.pkg]
>
> $pkgbuild --analyze --root myapp myApp.plist
>
> $pkgbuild --root myapp --component-plist myApp.plist --identifier
> "com.mycompany.myapp.pkg" --install-location "/Applications/" MyApp.pkg
>
> $productbuild --synthesize --package MyApp.pkg Distribution.xml
>
> $productbuild --distribution Distribution.xml --package-path . Installer.pkg
>
> If I install Installer.pkg, I get following in the /var/log/install.log
>
> Dec  9 20:11:33 RAJEKUMAR-MBP.local Installer[22102]:
> InstallerStatusNotifications plugin loaded
>
> Dec  9 20:11:34 RAJEKUMAR-MBP.local Installer[22102]:
> ================================================================================
>
> Dec  9 20:11:34 RAJEKUMAR-MBP.local Installer[22102]: User picked Standard
> Install
>
> Dec  9 20:11:34 RAJEKUMAR-MBP.local Installer[22102]: Choices selected for
> installation:
>
> Dec  9 20:11:34 RAJEKUMAR-MBP.local Installer[22102]: Upgrade: ""
>
> Dec  9 20:11:34 RAJEKUMAR-MBP.local Installer[22102]: Upgrade: "(null)"
>
> Dec  9 20:11:34 RAJEKUMAR-MBP.local Installer[22102]:
> Installer.pkg#MyApp.pkg : com.mycompany.myapp.pkg : 0
>
> Dec  9 20:11:34 RAJEKUMAR-MBP.local Installer[22102]:
> ================================================================================
>
> Dec  9 20:11:40 RAJEKUMAR-MBP.local installd[557]: PackageKit: ----- Begin
> install -----
>
> Dec  9 20:11:40 RAJEKUMAR-MBP.local installd[557]: PackageKit:
> request=PKInstallRequest <1 packages, destination=/>
>
> Dec  9 20:11:40 RAJEKUMAR-MBP.local installd[557]: PackageKit: packages=(
>
>     "PKLeopardPackage
> <file://localhost/Users/rajekumar/Library/Developer/Xcode/DerivedData/MyApp-excgqrqzmxujpyfruiyzersgsjlq/Build/Products/Debug/Installer.pkg#MyApp.pkg>"
>
> )
>
> Full Log : http://pastebin.com/ZhxhdzST
>
> Case 2: Creating Installer.mpkg [myapp folder contains MyApp.pkg]
>
> $pkgbuild --analyze --root myapp myApp.plist
>
> $pkgbuild --root myapp --component-plist myApp.plist --identifier
> "com.mycompany.myapp.pkg" --install-location "/Applications/" MyApp.pkg
>
> $productbuild --synthesize --package MyApp.pkg Distribution.xml
>
> $productbuild --distribution Distribution.xml --package-path .
> Installer.mpkg
>
> If I install Installer.mpkg , I get following in the /var/log/install.log
>
> Dec  9 20:15:44 RAJEKUMAR-MBP.local Installer[22132]:
> InstallerStatusNotifications plugin loaded
>
> Dec  9 20:15:45 RAJEKUMAR-MBP.local Installer[22132]:
> ================================================================================
>
> Dec  9 20:15:45 RAJEKUMAR-MBP.local Installer[22132]: User picked Standard
> Install
>
> Dec  9 20:15:45 RAJEKUMAR-MBP.local Installer[22132]: Choices selected for
> installation:
>
> Dec  9 20:15:45 RAJEKUMAR-MBP.local Installer[22132]: Upgrade: ""
>
> Dec  9 20:15:45 RAJEKUMAR-MBP.local Installer[22132]: Upgrade: "(null)"
>
> Dec  9 20:15:45 RAJEKUMAR-MBP.local Installer[22132]:
> Installer.mpkg#MyApp.pkg : com.mycompany.myapp.pkg : 0
>
> Dec  9 20:15:45 RAJEKUMAR-MBP.local Installer[22132]:
> ================================================================================
>
> Dec  9 20:15:50 RAJEKUMAR-MBP.local installd[557]: PackageKit: ----- Begin
> install -----
>
> Dec  9 20:15:50 RAJEKUMAR-MBP.local installd[557]: PackageKit:
> request=PKInstallRequest <2 packages, destination=/>
>
> Dec  9 20:15:50 RAJEKUMAR-MBP.local installd[557]: PackageKit: packages=(
>
>     "PKLeopardPackage
> <file://localhost/Users/rajekumar/Library/Developer/Xcode/DerivedData/MyApp-excgqrqzmxujpyfruiyzersgsjlq/Build/Products/Debug/Installer.mpkg#MyApp.pkg>",
>
>     "PKLeopardPackage
> <file://localhost/Users/rajekumar/Library/Developer/Xcode/DerivedData/MyApp-excgqrqzmxujpyfruiyzersgsjlq/Build/Products/Debug/Installer.mpkg#MyApp.pkg>"
>
> )
>
> Full Log : http://pastebin.com/isNBNW6H
>
>
> As you can see when I am installing the Installer.mpkg the MyApp.pkg is
> getting installed twice. If there are some pre/post install script
> associated to it , then they are also executing twice. [In this run I have
> removed the scripts to keep things simple]
>
> I am not able to understand this behavior .
>
> Any help would be appreciated.
>
>
> Rajeev
>
>  _______________________________________________
> 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



--
Packaging Resources - http://s.sudre.free.fr/Packaging.html
 _______________________________________________
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


References: 
 >.mpkg Installer is Installing component two times. (From: Rajeev Kumar <email@hidden>)

  • Prev by Date: Re: .mpkg Installer is Installing component two times.
  • Next by Date: installing to user home directory with a network home dir
  • Previous by thread: Re: .mpkg Installer is Installing component two times.
  • Next by thread: installing to user home directory with a network home dir
  • Index(es):
    • Date
    • Thread