Bug 20430 - App file does not install in Applications dir from a package installer
Summary: App file does not install in Applications dir from a package installer
Status: RESOLVED INVALID
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Mac Add-in ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: master
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2014-06-06 12:13 UTC by johnp
Modified: 2014-06-06 14:20 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Package installer of test project (1.97 MB, application/octet-stream)
2014-06-06 12:13 UTC, johnp
Details
Project file that creates the package (27.10 KB, application/zip)
2014-06-06 12:15 UTC, johnp
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED INVALID

Description johnp 2014-06-06 12:13:20 UTC
Created attachment 7005 [details]
Package installer of test project
Comment 1 johnp 2014-06-06 12:15:51 UTC
Created attachment 7006 [details]
Project file that creates the package
Comment 2 johnp 2014-06-06 12:27:49 UTC
This may or may not be related to Xamarin Studio at all, but I was advised to file a bug anyways.

Step by step guide to recreate this bug

1.  Compile the project attached in Release mode (Debug Mode may or may not work, haven't test it)
2.  Go to the project's bin/Release dir and copy the app file somewhere, say the Desktop
3.  Go to the project's bin/Release dir, and run the Test11.pkg file created
4.  While installing, open the Installer's log window by pressing Command-L, and select "Show All Logs" from the drop down
5.  Install the package, but before the log disappears when you close the install, see the output mention a relocation of the install:  "PackageKit: Applications/Test11.app relocated to ..."

This seems to search for an existing Test11.app file on the computer and overwrites that instead of installing the Test11.app in the Applications dir.  I tested this on both a dev machine and a test machine and found that as long as a copy of Test11.app exists outside of the Applications dir, it will choose to overwrite that file instead of copying to the Applications dir.

My version of XS is as follows:
=== Xamarin Studio ===

Version 5.0 (build 878)
Installation UUID: bf7a60f7-8800-4c06-b45b-00b8cbced865
Runtime:
	Mono 3.4.0 ((no/c3fc3ba)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 304000204

=== Xamarin.Android ===

Version: 4.12.4 (Starter Edition)
Android SDK: /Users/wyaternick/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		4.0   (API level 14)
		4.0.3 (API level 15)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

=== Apple Developer Tools ===

Xcode 5.1.1 (5085)
Build 5B1008

=== Xamarin.iOS ===

Version: 7.2.3.39 (Starter Edition)
Hash: fc6f56b
Branch: 
Build date: 2014-05-19 19:10:29-0400

=== Xamarin.Mac ===

Xamarin.Mac: 1.8.0.8

=== Build Information ===

Release ID: 500000878
Git revision: bcd66920d963483e7d638a2339c4022fe035b529
Build date: 2014-05-27 17:36:26-04
Xamarin addins: da9064ce55b0fa90930a7c437a4cc1ae0e5c778c

=== Operating System ===

Mac OS X 10.9.3
Darwin ward-yaternicks-imac.local 13.2.0 Darwin Kernel Version 13.2.0
    Thu Apr 17 23:03:13 PDT 2014
    root:xnu-2422.100.13~1/RELEASE_X86_64 x86_64
Comment 3 johnp 2014-06-06 12:39:42 UTC
While searching for more information about this bug, I found a forum thread that discussed this very bug.  It can be found here: 
http://forums.xamarin.com/discussion/6814/create-installer-package-pkg-but-that-pkg-does-not-do-anything-useful
Comment 4 Jeffrey Stedfast 2014-06-06 14:20:30 UTC
This just seems to be the way .pkg's work and is not something we can override.