Re: Installation requirements
Re: Installation requirements
- Subject: Re: Installation requirements
- From: Andrew Keller <email@hidden>
- Date: Mon, 11 Mar 2013 19:22:29 -0400
On Mar 9, 2013, at 1:27 PM, Greg Neagle wrote:
> On Mar 8, 2013, at 5:17 PM, Bill Coderre <email@hidden> wrote:
>
>> On Mar 8, 2013, at 2:08 PM, Andrew Keller <email@hidden> wrote:
>>> My software is compatible with 10.6.0 and later, but my installer is only compatible with 10.6.6 and later.
>
> Why on earth is this?
The app runs just fine on 10.6.0, but the installer does this on pre-10.6.6:
Mar 8 12:09:20 qa-macbook Installer[1153]: Running OS Build: Mac OS X 10.6.3 (10D575)
[fast forward]
Mar 8 12:10:56 qa-macbook Installer[1153]: Package file://localhost/Volumes/My App/Install My App.pkg#My App.pkg not supported by PK
Mar 8 12:10:56 qa-macbook Installer[1153]: Will use IF session
Mar 8 12:10:56 qa-macbook Installer[1153]: PFPackage::packageWithURL - can't instantiate package: /Volumes/My App/Install My App.pkg
Mar 8 12:10:56 qa-macbook Installer[1153]: Error opening package "Install My App.pkg#My App.pkg".
Mar 8 12:10:56 qa-macbook Installer[1153]: Install failed: The Installer could not install the software because there was no software found to install.
Mar 8 12:10:56 qa-macbook Installer[1153]: IFDInstallController 14B670 state = 7
Mar 8 12:10:56 qa-macbook Installer[1153]: Displaying 'Install Failed' UI.
Mar 8 12:10:56 qa-macbook Installer[1153]: 'Install Failed' UI displayed message:'The Installer could not install the software.\n\nThe Installer could not install the software because there was no software found to install.'.
That happens after you click the final Install button, after you click "Continue" on the warning that you'll have to restart your computer, and before you type in an admin password.
>>> Is it possible to allow installing a package on any volume with 10.6.0 or later, but only if the currently booted operating system is 10.6.6 or later?
>>
>> 1) Is this really a necessary requirement? Most installers only allow installation on the booted volume
>
> There's no reason for this.
> The fact that some packages are poorly written and work only on the boot volume should not obscure the fact that installation packages can and should when possible be authored to allow installation on any eligible volume.
Both of those raise good points in my situation. Although I want to support the largest range of systems possible, using the approach I originally wanted, the only way to install onto <10.6.6 would be to install onto it from another computer running >=10.6.6. Although there is nothing wrong with that in practice, and although Apple's Installer seems to handle that scenario just fine, it occurs to me that that arrangement is going to make testing more difficult. So, from a testing point of view, it might be a good idea to only allow >=10.6.6.
BUT... that still allows users to use < 10.6.6 to install onto a disk with >= 10.6.6. Based on the problem I encountered earlier, it looks like I should disallow installing onto *any* disk if the currently booted system is <10.6.6, which brings me back to my original goal, even though the exact versions may be slightly different.
So, at the very least, users:
* should be able to install onto any volume with >= 10.6.0 installed (or 10.6.6 if I want to reduce testing)
* should not be able to install onto any volume if the host OS is running <10.6.6.
>> , and it's usually a good idea to require the latest subrevision, 10.6.8.
>>
>>
>>
>> 2) "InstallationCheck" can check the booted system's version (you probably want system.version.ProductVersion)
>> "VolumeCheck" can check the system version on the target disk (my.target.systemVersion.ProductVersion)
>> See also system.compareVersions()
Thanks,
Andrew Keller
_______________________________________________
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