site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Thanks for the reply. My problems/questions are now: --- 2. For the "Alias Path", I typed in /Users/MyAccountName/Desktop. --- Thanks, Andrew 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). Could you tell us what path you set for the alias? _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... 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. 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? 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" <dev.iceberg@gmail.com> To: "Andrew Peckover" <apeckover@pgmusic.com> Cc: <installer-dev@lists.apple.com> Sent: Tuesday, April 21, 2009 3:34 AM Subject: Re: Postflight action (create alias) not working 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.
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. This email sent to site_archiver@lists.apple.com