Re: My installer does not work on OS X 10.4
Re: My installer does not work on OS X 10.4
- Subject: Re: My installer does not work on OS X 10.4
- From: "Roni Music" <email@hidden>
- Date: Wed, 1 Jun 2005 21:15:23 +0200
>
> > Hi,
> >
> > For several years I have used PackageMaker to create a .pkg file
> > for installing a file that my application needs into the
> >
> > /Library/Application Support/My Company Name
> >
> > folder.
> >
> > i.e. first the installer creates the "My Company Name" folder (if
> > it's not already there)
> > then it installs the file (which is part of the copy protections
> > scheme, so it can't go into the application bundle)
> >
> > This has always worked fine for customers running OS X 10.2 and 10.3
> > but starting with OS X 10.4 it fails with the following messages:
> >
> > First:
> > "Installing this software will replace the newer version with an
> > older version."
>
> You are getting this message because the installer thinks you have a
> newer version of this package on your system. Do you?
No, the person that installs is a customer that has
not any folder with the name "My Company Name" (replace with the real company name)
> If so what
> are the version numbers? (CFBundleShortVersionString, IFMajorVersion,
> IFMinorVersion)
the file that is to be installed is an old CFM shared lib file
that lacks everything such as CFBundleShortVersionString, IFMajorVersion, IFMinorVersion etc
so there is no version information available at all,
this error message is strange
the only thing I can think of is that the owner and permission are wrong
I never changed that which I maybe should have done?
anyway it worked fine until Tiger came around
>
> > Then:
> > "You cannot continue. There is nothing to install".
> >
>
> This is a known bug and should soon.
be fixed??
Rolf
>
> Chris
> Mac OS X Installation & Setup Team
>
> > Both messages are wrong and it works OK on my development machine
> > but not on most of my customers machines.
> >
> > My other .pkg file for installing the main application into the /
> > Applications folder works fine under OS X 10.4
> >
> > My only clue is that it's a file permission thing that have changed
> > with Tiger.
> >
> > I've read the online docs about PackageMaker to no avail.
> >
> > Any help appreciated.
> >
> > Rolf Nilsson
> >
> >
> >
> >
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://lists.apple.com/pipermail/installer-dev/attachments/20050601/115f8e75/attachment.html
>
> ------------------------------
>
> Message: 4
> Date: Wed, 1 Jun 2005 11:54:09 -0500
> From: Derrick Griffel <email@hidden>
> Subject: Checking OS version from InstallationCheck script?
> To: email@hidden
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset="us-ascii"
>
> I am trying to create an InstallationCheck script and
> InstallationCheck.strings file that would prevent my installer from
> running on anything less than OS 10.3. I have created the following
> script, but it always fails with the following message in the installer
> even though I am running on 10.3.9. "iRemember Installer cannot be
> installed on this computer. 31". The following is what my script
> looks like:
>
> #!/usr/bin/perl
>
> ########################################################
> my $SYSTEM_VERS = "/System/Library/CoreServices/SystemVersion.plist";
> my $EXIT_VALUE = 0;
>
>
> DO_CHECKS: {
> # If too old, error.
> if( CheckVersion( $SYSTEM_VERS, "10.3", "ProductVersion", "<" ))
> {
> $EXIT_VALUE = (( 3 << 5 ) | 16 );
> exit($EXIT_VALUE);
> }
> }
>
> exit($EXIT_VALUE);
>
> My InstallationCheck.strings file contains the following line:
>
> "16" = "This software requires Mac OS X version 10.3 or later.";
>
> Does anyone see any reason why my script would not be working properly
> and not even displaying my custom string? I've had a difficult time
> finding usable examples on Apple's site for creating such a script or
> performing such a check from an installer.
>
> Thanks for any advice,
>
> Derrick
>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: not available
> Type: text/enriched
> Size: 1506 bytes
> Desc: not available
> Url : http://lists.apple.com/pipermail/installer-dev/attachments/20050601/2b3d57cf/attachment.bin
>
> ------------------------------
>
> Message: 5
> Date: Wed, 1 Jun 2005 11:56:59 -0500
> From: Derrick Griffel <email@hidden>
> Subject: How to open a folder after installation?
> To: email@hidden
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> I am trying to open a specific folder after installation. I have a
> postflight script that contains the following line: open
> $2/foldername. I would expect this to open the directory named
> foldername located at the install location returned by the $2 variable.
> Unfortunately, the directory does not open. However, if I change this
> to: open -a $2/foldername/application.app, The postflight script WILL
> launch my application located inside the folder. Does anyone have any
> ideas on why I can get the script to launch an application after
> install, but not open a folder?
>
>
> Thanks,
>
> Derrick
>
>
>
> ------------------------------
>
> Message: 6
> Date: Wed, 1 Jun 2005 10:19:38 -0700
> From: Sanford Selznick <email@hidden>
> Subject: Re: Conditional install of special package under 10.2
> To: email@hidden
> Message-ID: <p06210286bec39e09de1c@[70.214.170.244]>
> Content-Type: text/plain; charset="us-ascii" ; format="flowed"
>
> At 9:07 AM -0700 5/31/05, Sanford Selznick wrote:
> >Hello,
> >
> > My installer needs to run on 10.2, 10.3, and 10.4. When my
> >installer is run on 10.2, I need to install a second package. I
> >have the second package (mpkg file) from a third party. I don't
> >have the components of the second package.
> >
> > How do I build my installer so the third-party installer will only
> >be executed on 10.2?
>
> Per an off-list recommendation, I put an InstallationCheck into the
> Resources folder of the third_party.mpkg. The script works when
> uttered from the command-line.
>
> When I double-click third_party.mpkg, it wants to install just fine.
>
> Am I missing something? Shouldn't the InstallationCheck return value
> of 64 just quit? Or is this a .mpkg thing?
>
> [508 sanford@PBG4 Resources/] ls -la
> -rwxr-xr-x 1 sanford staff 2192 Jun 1 10:04 InstallationCheck
>
> And inside:
>
> ---
> my $EXIT_VALUE = 0;
>
> {
> print "Doing checks\n";
>
> # If 10.3 or better is booted, don't install this package.
> if(CheckVersion("$SYSTEM_VERS", "10.3", "ProductVersion", ">=")) {
> # exit silently
> print "Exiting silently\n";
> $EXIT_VALUE = 64;
> last;
> }
>
> }
>
> exit($EXIT_VALUE);
> ---
>
> I'm also not seeing "Doing checks" or "Exiting silently" in
> Console.app when I execute from the installer.
>
> Thank you,
> Sanford
>
>
> ------------------------------
>
> Message: 7
> Date: Wed, 1 Jun 2005 20:12:01 +0200
> From: Pavol Markovic <email@hidden>
> Subject: Re: How to open a folder after installation?
> To: Derrick Griffel <email@hidden>
> Cc: email@hidden
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
> Try
> cd $2/foldername
> open .
>
> I haven't tried it in Installer, but I was able to do this in
> situations where open folder didn't work.
>
> PM
>
> On Jun 1, 2005, at 6:56 PM, Derrick Griffel wrote:
>
> > I am trying to open a specific folder after installation. I have a
> > postflight script that contains the following line: open
> > $2/foldername. I would expect this to open the directory named
> > foldername located at the install location returned by the $2
> > variable. Unfortunately, the directory does not open. However, if I
> > change this to: open -a $2/foldername/application.app, The postflight
> > script WILL launch my application located inside the folder. Does
> > anyone have any ideas on why I can get the script to launch an
> > application after install, but not open a folder?
> >
> >
> > Thanks,
> >
> > Derrick
> >
> > _______________________________________________
> > Do not post admin requests to the list. They will be ignored.
> > Installer-dev mailing list (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> > email@hidden
> >
> > This email sent to email@hidden
> >
>
>
>
> ------------------------------
>
> _______________________________________________
> Installer-dev mailing list
> email@hidden
> http://lists.apple.com/mailman/listinfo/installer-dev
>
>
> End of Installer-dev Digest, Vol 10, 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