Demystifying installation process for Business Central Apps. Conclusion

This is the final blog post on series.

The beginning is here: 

…One more thing

Today is 12 of September and Tim Cook will present his “One more thing”. I want to finalize my blog series with one more scenario.

Upgrade, with unpublishing

We will increase the version, unpublish current version and install a new version.

app.json > “version”: “3.0.0.0”

Container Sandbox

Uninstall and unpublish currently installed version of our app using Powershell (and navcontainerhelper module)

UnPublish-NavContainerApp -containerName $containername `
    -appName $appname `
    -unInstall `
    -version $version `
    -tenant $tenant 
image
VSCode > AL:Publish without debugging (Ctrl+F5)

And we get an error

image
Start-NavContainerAppDataUpgrade -containerName $containername `
    -appName $appname 
image

And will have a look at the installation log

image

Online Sandbox

>Web client > Extensions Page > Uninstall
>Web client > Extensions Page > Unpublish
VSCode > AL:Publish without debugging (Ctrl+F5)

We get an error

image
>Web client > Extensions Page > Install
image

Online Business Central Production Tenant

>Web client > Extensions Page > Uninstall
>Web client > Extensions Page > Unpublish
>Web client > Extensions Page >Upload .app file

The result of this step can be displayed in the next picture

image

Summary

I’ve put summary from previous blogs, and current blog in one table

ProcessPrevious App version is installedNew App version changedUpgrade Codeunit triggersInstall Codeunit triggersSupported in Local SandboxSupported in Online SandboxSupported in Online Production
Publish & InstallYesYesYesYesYes
Upgrade AppYesYesYesYesYesYes
Re-InstallYesYesYesYes
Uninstall & InstallYesYesYesYesYes
Unpublish & Re-installYesYesYesYes
Unpublish & UpgradeYesYesYesYesYesYes

Hope, this series demystified what’s going on during the installation process for Business Central Apps.

The code could be found here https://github.com/dkatson/Installation-process-for-BC-Apps 

Save to your shortcuts… like I did =)

Enjoy!

Share Post:

Leave a Reply

About Me

DMITRY KATSON

A Microsoft MVP, Business Central architect and a project manager, blogger and a speaker, husband and a twice a father. With more than 15 years in business, I went from developer to company owner. Having a great team, still love to put my hands on code and create AI powered Business Central Apps that just works.

Follow Me

Recent Posts

Tags