Danno, You are absolutely correct on this one. In my build script since I used native=“all”, .app, .dmg and .pkg were all generated. When I use pkg to install the app, it actually just updated .app under my build folder instead of /Applications. pkgutil —pkg-info still think application is installed under /Applications. Once I deleted .app under my build folder. Then pkg works as expected.
Thanks, Tai > On Aug 10, 2015, at 12:23 AM, Danno Ferrin <danno.fer...@oracle.com> wrote: > > Mac installer is weird. The install location in the installer is at best a > strongly worded suggestion to the pkgutil code and I don't completely > understand when it follows it and when it doesn't. > > What I have seen in my development is that if the package has been installed > and or run anywhere else on the machine then the pkgutil will install the app > into that location as an update to the existing application. So in my case I > had an instance of the app that I had run from my source control build > directory, and pkgutil chose to update that instance of the application > rather than one I had in /Applicaitons that I drug in from a DMG. > > It appears that this is driven by the CFBundleIdentifier, so changing the > identifier may get a clean install. > > Running pkgutil --pkg-info <PKGID> may tell you where it is installed or > where it thinks it is installed. > > >> On Aug 7, 2015, at 9:11 PM, Tai Hu <tai...@veroanalytics.com >> <mailto:tai...@veroanalytics.com>> wrote: >> >> Hi, >> I used JavaFX ant tasks to create all native packages on Mac OS X (JDK >> 8u51 on latest Mac OS X). Both .app and .dmg packages are working >> flawlessly. However, for PKG package, the very first installation was >> successful and my application show up in /Applications folder. However, if I >> delete my app from /Applications and use PKG package to install again, the >> installation process will always run successfully. However, my application >> did not show up inside of /Applications. I already tried to use pkgutil >> —forget <application id> and rebooted my Mac. It is still the same result. >> Installation of PKG package are always successful. But my application is not >> installed under /Applications folder. >> >> Thanks, >> >> Tai >