Saturday, June 30, 2018

How to publish, install, uninstall and remove V2 extension.

Whenever there is need of installation of V2 custom extension, We have below two different ways to installation of extension V2.


1: When VSCode gives below error while Publish a custom extension and when there is need of upgrade to extension from V1 to V2.



  • Step to resolve above error and installation of extension as well. Add this Commands in Dynamics NAV Administration Shell.

  • Uninstall:=  Uninstall-NAVApp -ServerInstance DynamicsNAV110 -Name My extension -Version 1.0.0.0 

  • Unpublish:= Unpublish-NAVApp -ServerInstance DynamicsNAV110 -Name My extension -Version 1.0.0.0 

  • Publish:= Publish-NAVApp -ServerInstance DynamicsNAV110 –Path  path of .app –SkipVerification 

  • Synchronize:= Sync-NAVApp -ServerInstance DynamicsNAV110 -Name Myextension -Version 1.1.0.0 

  • Install:= Install-NAVApp -ServerInstance DynamicsNAV110 -Name Myextension



2: For direct publish, Installation and remove custom extension from Extension Management Page, please follow the below steps.

  • Import the below fob file of page ID 2500 and replace with existing object.click on this link Download Fob
  • After importing the object, open the extension management page and click on import action. As shown in below image.



  • After select .APP file of V2 extension you will have below pop up message from windows PowerShell. Now, you have to click on yes button for publish .APP file of V2 extension.



  • After clicking on yes button Extension will be published but will not be installed. You can see below image.



  • To Install the extension, Click on the Install action as shown in below image. 
  • After click on OK button Extension automatically installed and now you can use this extension only after restart the RTC.



  • Before remove the extension you’ll have to uninstall extension by click on Uninstall action.



  • You can get more references from below blog by NAV Craft