My problem is half solved, but I still have a couple of issues. I must have
been typing in the paths incorrectly.
It installs a folder MyProgramFolder/MyProgram.app. This can either be in
the HD/Applications folder, the user's Home folder, or a different hard
drive, depending on which location the user selects. In addition, the
'Custom install' option is enabled, so the user could choose any location
My problems/questions are now:
1. The way I could get Create Alias to work properly, was by setting it to
"Point To: Absolute Path", then typing in
But then if the user installs to the Home folder, that doesn't work. Is
there a different way of typing in the path to get this to work?
2. For the "Alias Path", I typed in /Users/MyAccountName/Desktop.
But of course this only works for me! How can I specify the "current
account"? I tried just typing in Desktop as the Alias path, but that didn't
work, no alias was created.
3. If I set this to "Point To: Component", then choose my app, the
postflight instructions are indeed carried out. But the problem is, the
alias doesn't necessarily point to .app in the folder I just installed! In
other words, I have MyProgram.app in a few other locations on my computer --
well this is because I'm working on developing and testing, but some users
might also have older versions of the app in a different location, and I
don't want the finder window and alias to point to those.
----- Original Message -----
From: "Iceberg-Dev" <email@hidden>
To: "Andrew Peckover" <email@hidden>
Sent: Tuesday, April 21, 2009 3:34 AM
Subject: Re: Postflight action (create alias) not working
On Apr 21, 2009, at 2:29 AM, Andrew Peckover wrote:
I'm using OS 10.5.6 and PackageMaker 3.0.3 (174).
In the Distribution --> Actions tab, I have specified two Postinstall
actions, "Show file in Finder" and "Create Alias". For Create Alias, I
am pointing to "component" and have selected "MyProgram.app". I have
also tried specifying the "absolute path".
There are no warnings or errors when I build the package, but the
postinstall actions don't work.
As a test, I tried the Open URL postflight action, and that *did* work.
Could you tell us what path you set for the alias?
From what I see, PackageMaker uses an AppleScript script that
communicates with the Finder to create the alias. This is not a good
solution IMHO as this assumes too much regarding the environment.
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