Re: Installer-dev Digest, Vol 78, Issue 1
Re: Installer-dev Digest, Vol 78, Issue 1
- Subject: Re: Installer-dev Digest, Vol 78, Issue 1
- From: kushal ghosh <email@hidden>
- Date: Wed, 2 Feb 2011 15:50:35 +0530
On Wed, Feb 2, 2011 at 3:36 PM,
<email@hidden> wrote:
Send Installer-dev mailing list submissions to
email@hidden
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.apple.com/mailman/listinfo/installer-dev
or, via email, send a message with subject or body 'help' to
email@hidden
You can reach the person managing the list at
email@hidden
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Installer-dev digest..."
Today's Topics:
1. RE: patches in PackageMaker3 (Jasper Leemans)
2. Getting the list of arguments passed with installer command
in preinstall or postinstall (kushal ghosh)
3. Re: Getting the list of arguments passed with installer
command in preinstall or postinstall (Stephane Sudre)
----------------------------------------------------------------------
Message: 1
Date: Fri, 28 Jan 2011 12:35:52 +0100
From: Jasper Leemans <email@hidden>
Subject: RE: patches in PackageMaker3
To: Arjun SM <arjun.sm@gmail.com>, "email@hidden"
<email@hidden>
Message-ID:
<email@hidden>
Content-Type: text/plain; charset="us-ascii"
Thanks for the reply.
I'm willing to give your method a try but the payload you talk of consists of only the "changed" or "added" files in the app bundle, right? So I need to write some script that compares my two app bundles using "diff" and creates a "stripped down" app bundle which is the patch payload... correct me if I'm wrong.
Related to PackageMaker:
In /Library/Receipts I only found a InstallHistory.plist, it cointains multiple entries for my app, probably all my trials & errors :), the DisplayVersion field was never filled in for my application though, it was for all other apps in the history list.
But as I recall as of 10.6 the receipts are stored in /var/db/receipts/ where I DO find a .plist and a .bom list for my package... so the initial install looks OK to me.
I'm using the new "flat" package, if that makes a difference...
Ps: I read through the PackageMaker documentation before, but not a word is in there about the patch root option...
With kind regards,
Jasper
From: Arjun SM [mailto:email@hidden]
Sent: vrijdag 28 januari 2011 5:55
To: Jasper Leemans
Subject: Re: patches in PackageMaker3
Hi Jasper,
I haven't used the patch option before but the steps to install a patch or a Hotfix is quite easy.
1. You select the hotfix/patch package (payload) by clicking the '+'
2. Give an package identifier different from the initial install or else the installer would over-install and not upgrade.
3. Verify the components inside the hotfix/patch package(payload) under the 'Contents' tab.
4. Under the scripts tab provide the path for the preflight,postflight ...
5. Build the package and if it succeeds then you should be able to install the package.
And coming to the error
>>>> A previous version of the install could not be found
I think it should be because there is receipts regarding your package in /Library/Receipts. Verify it.
You can go through the below link for more insights on Packagemaker.
http://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/PackageMakerUserGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40005371-CH1-SW1
Hope this helps.
Cheers,
~Arjun
On Thu, Jan 27, 2011 at 6:35 PM, Jasper Leemans <email@hidden<mailto:email@hidden>> wrote:
Anyone?
Maybe someone has a different approach on getting patches/updates to customers? All suggestions are welcome...
Jasper
Begin forwarded message:
From: Jasper Leemans <email@hidden<mailto:email@hidden>>
Date: 21 Jan 2011 13:53:33 GMT+01:00
To: "email@hidden<mailto:email@hidden>" <email@hidden<mailto:email@hidden>>
Subject: patches in PackageMaker3
Hi everyone,
I'm trying to figure out how the "patch" options works in PackageMaker 3.
I start off with a new PackageMaker project, fill in the package identifier the same as for the initial installer, the package version goes up one number (1.0.3.2 -> 1.0.3.3), I select the new .app and the old one under "patch", PackageMaker then calculates the difference and this seems to work OK because the patch package is only a few megabytes (only one dylib was changed in the app bundle).
Now when trying to install the patch on a computer were the original installer was ran, I get the error "A previous version of the install could not be found". Googeling this string returns nothing useful, nor does searching the apple mailing lists. My app is definitely there, in /Applications (default).
I think it might have to do with the "Realocation" option under "Components", I turned reallocation ON and in the reallocation options I do a combination search in /Applications for my app. The identifier field I filled in the same identifier as for my .app (CFBundleIdentifier field in Info.plist), but is this correct? Should it be the package identifier instead? And do the min/max version numbers have to be filled? Are they the package versions or the app versions (again Info.plist).
I'm confused, tried all kinds of combinations, still can't get the patch to install!!!
Any help appreciated,
Jasper
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden<mailto:email@hidden>)
Help/Unsubscribe/Update your Subscription:
This email sent to arjun.sm<http://arjun.sm>@gmail.com<http://gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.apple.com/pipermail/installer-dev/attachments/20110128/3c7ceded/attachment.html
------------------------------
Message: 2
Date: Wed, 2 Feb 2011 14:22:31 +0530
From: kushal ghosh <email@hidden>
Subject: Getting the list of arguments passed with installer command
in preinstall or postinstall
To: email@hidden
Message-ID:
<AANLkTimE8dsZwRag61w3khshyzK762NENRY1G+vYB=email@hidden>
Content-Type: text/plain; charset="utf-8"
Hi,
Is there any way of finding out the list of arguments passed to the
installer command in postinstall/preinstall? For example my intention is
that by any way can we detect the filename which is given with
-applyChoiceChangesXML while running the installer in CLI in the
postinstall/preinstall scripts?
installer -pkg abc.pkg -applyChoiceChangesXML choicesfile -target /
Here inside abc.pkg which has its own postinstall and preinstall scripts can
we get the "choicesfile" file name?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.apple.com/pipermail/installer-dev/attachments/20110202/fa7634c5/attachment.html
------------------------------
Message: 3
Date: Wed, 2 Feb 2011 11:05:35 +0100
From: Stephane Sudre <email@hidden>
Subject: Re: Getting the list of arguments passed with installer
command in preinstall or postinstall
To: email@hidden
Message-ID:
<email@hidden">email@hidden>
Content-Type: text/plain; charset=ISO-8859-1
On Wed, Feb 2, 2011 at 9:52 AM, kushal ghosh <email@hidden> wrote:
> Hi,
> Is there any way of finding out the list of arguments passed to the
> installer command in postinstall/preinstall? For example my intention is
> that by any way can we detect the filename which is given with
> -applyChoiceChangesXML while running the installer in CLI in the
> postinstall/preinstall scripts?
> installer -pkg abc.pkg -applyChoiceChangesXML choicesfile -target /
> Here inside abc.pkg which has its own postinstall and preinstall scripts can
> we get the "choicesfile" file name?
Assuming we are talking about a flat distribution for abc.pkg. abc.pkg
does not have a preinstall or postinstall script. It's actually an
invisible package of the distribution that contains these scripts.
I would say that if you need to perform actions based on a package
being installed or not, it's better to have your own invisible package
and its selected state dependent of the other package(s'|'s) selected
state(s).
My $0.014
But is there any way of getting the commandline argument passed to installer command in these postinstall/preinstall scripts of the component packages? I want to obtain the filename passed with -applyChoiceChangesXML.
------------------------------
_______________________________________________
Installer-dev mailing list
email@hidden
http://lists.apple.com/mailman/listinfo/installer-dev
End of Installer-dev Digest, Vol 78, Issue 1
********************************************
_______________________________________________
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