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”: “”

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 
VSCode > AL:Publish without debugging (Ctrl+F5)

And we get an error

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

And will have a look at the installation log


Online Sandbox

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

We get an error

>Web client > Extensions Page > Install

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



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
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 

Save to your shortcuts… like I did =)


Share Post:

Leave a Reply

About Me


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