Upgrade of application creates a folder instead of app inside /Applications directory

Hi all, We are trying to upgrade our app to the next version. The problem we are facing is that instead of the new app replacing the old app in Applications directory, a folder of the same name is getting created and the app is placed inside that. So if my app name is xyz.app, we are seeing a folder xyz.localized inside the Applications folder and the new xyz.app placed inside it while the old one remains where it was.

I am suspecting this is happening because we had the necessity to modify our bundleID and that is why it is not treating it to be the same app.

Is there any way I could do this without uninstalling the app.

This app is not published in app store.

I even tried adding some code in preinstall script to uninstall the app and still I am seeing that the folder is getting created inside the Applications directory.

Will adding some code to post install by moving the app from the xyz.localized directory to Applications directory help?

This app is not published in app store.

If this is not an App Store app, who is doing the installation? You mentioned pre- and post-install scripts, which suggests that you’re using the Apple Installer (by creating an installer package, .pkg). But you also tagged your question with AppleScript, and I’m not sure how that comes into this.

Oh, and there’s a SystemExtensions tag too. Does your app contain a sysex?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Hi Quinn,

I might have added the AppleScript tag by mistake. Yes we are creating an installer package and yes we are using system extensions.

I might have added the AppleScript tag by mistake.

*phew* Adding AppleScript into this mix would make an extra potent brew (-:

Yes we are creating an installer package and yes we are using system extensions.

OK. Unfortunately this is drifting outside of my area of expertise. I suspect that the installer has some smarts when it comes to upgrading apps, and either your change of bundle ID or your use of a sysex, both of which are relatively rare, is causing this weird behaviour. However, that’s really just a guess. I recommend that you open a DTS tech support incident and discuss this with DTS’s installer specialist.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Upgrade of application creates a folder instead of app inside /Applications directory
 
 
Q