• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Postflight action (create alias) not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Postflight action (create alias) not working


  • Subject: Re: Postflight action (create alias) not working
  • From: "Andrew Peckover" <email@hidden>
  • Date: Tue, 21 Apr 2009 10:17:29 -0700

Thanks for the reply.

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 they want.

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
/Applications/MyProgramFolder/MyProgram.app


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.


---

Thanks,
Andrew






----- Original Message ----- From: "Iceberg-Dev" <email@hidden>
To: "Andrew Peckover" <email@hidden>
Cc: <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:

Hi,

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
References: 
 >Postflight action (create alias) not working (From: "Andrew Peckover" <email@hidden>)
 >Re: Postflight action (create alias) not working (From: Iceberg-Dev <email@hidden>)

  • Prev by Date: Re: Postflight action (create alias) not working
  • Next by Date: Debugging plugins under 10.4
  • Previous by thread: Re: Postflight action (create alias) not working
  • Next by thread: Debugging plugins under 10.4
  • Index(es):
    • Date
    • Thread