Re: Accessing PackageKit programmatically
Re: Accessing PackageKit programmatically
- Subject: Re: Accessing PackageKit programmatically
- From: Greg Neagle <email@hidden>
- Date: Mon, 13 Jun 2016 09:34:14 -0700
> On Jun 13, 2016, at 6:15 AM, John Paul Adrian Glaubitz <email@hidden> wrote:
>
> Hello!
>
> I'm looking for a way to invoke the functionality of PackageKit programmatically.
>
> The motivation for this is an independent application manager which is used to
> deploy a number of similar applications on a single machine.
Please no. I don't need software vendors "reinventing" the process of installing thing on OS X.
Distribute your software as Apple installer pkgs. Or put your apps in the App Store. Or distribute your software as drag-n-drop disk images (if you must).
Don't create Yet Another Installer Application.
> The application
> manager is deployed on both Windows and OSX.
>
> On Windows, there is a usable API provided by the Microsoft Installer (MSI) [1]
> which can be used to install Windows application packages (.msi), query their
> installation status and uninstall them.
>
> On OSX, there is just the UI installer (/System/Library/CoreServices/
> Installer.app/Contents/MacOS/Installer) and the command-line installer
> (/usr/sbin/installer) plus tools like "pkgutil" to query the database.
>
> Thus, in order to trigger installation processes from my own application,
> I would have to use something like NSTask plus some AppleScript code
> to be able to gain administrator privileges which is a rather crude hack
> and makes querying things like the installation status rather cumbersome.
>
> Does anyone know what the reasoning behind Apple's decision is to not make
> PackageKit a public Framework? I think it's rather a pity that, although
> OSX actually comes with a clean mechanism to install and uninstall application
> packages through functionality provided by the operating system, this
> functionality is not exposed in a public API so it can be used the same
> way it can be used on Windows.
>
> Thanks,
> Adrian
>
>> [1] https://msdn.microsoft.com/en-us/library/windows/desktop/Aa369426(v=vs.85).aspx
>
> --
> .''`. John Paul Adrian Glaubitz
> : :' : Debian Developer - email@hidden
> `. `' Freie Universitaet Berlin - email@hidden
> `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
> _______________________________________________
> 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