Skip to main content

#msdyn365bc - Keep your containerhelper module updated?

Hi all,

As most of us are learning and start using dockers for business central. 

With the changes are happening with the product and also in bccontainer helper we need to make sure that we have always latest version of container module installed in our system.

In this article, I will share my way of keeping my bccontainerhelper updated.

1. Open Task Scheduler in Windows.

2. Create a New Folder in Task Scheduler. (Not Mandatory but it makes it simple to group)

3. Then Create a New Task.


4. And set these parameters  (General Tab) - 

  • Name - Update BC Container.
  • Description - Add a Description.
  • Run with Highest Privilege  as TRUE. (Run as Administrator)


5.  Open Trigger Tab and add a trigger based on time when you want to run it.  I have scheduled it Daily at 11:00 AM. You can choose date time and frequency as you need it.



6. Next is Action Trigger and add two new actions - 
  • Program - powershell
  • Uninstall the bccontainer helper.
    • Uninstall-Module -Name BCContainerHelper -Force
  • Install the bccontainer helper.
    • Install-Module -Name BCContainerHelper -Force


Now you will see two actions.



That's it. You don't need to worry about it after this. There will never be multiple versions of bccontainer helper and you will always have latest version of bccontainerhelper. 

If you have problems, then you can always see history of scheduled task (as shown below).



Hope this will make your update #bccontainerhelper automatic.

Let me know your views as comment to article.

Regards,
Saurav Dhyani
www.sauravdhyani.com

Comments

Popular posts from this blog

RTC Report It is not possible to instantiate the Visual Studio bridge.

Hi all, As a Navision developers I have Multiple Versions of Navision running in single Machine. As discussed Earlier in the post how to run multiple Version of RTC in single machine. So my machine have following details for RTC Versions - NAV 2009 R2    - is installed. NAV 2009 SP1  - is copied at C:\Program Files (x86)\Microsoft Dynamics NAV\60\NAV 6.0 SP1 IN\ NAV 2009         - is copied at C:\Program Files (x86)\Microsoft Dynamics NAV\60\NAV 6.0 IN\ This approach has been working great for execution of Classic and RTC Clients. However, after installing Dynamics NAV 2009 R2, if i tried to view the Layout for an NAV 2009 SP1 Report i was getting the following error: ---------------------------  Microsoft Dynamics NAV Classic  ---------------------------  It is not possible to instantiate  the Visual Studio bridge.  ---------------------------  OK    --------------------------- After searchi...

Dynamics NAV - All that you need to know about MenuSuites.

Hi Readers, This article is based on a request from a blog reader who wanted to understand about MenuSuite in Dynamics NAV. If you have started working with Business central with AL Code then it does not apply to those releases but if you are interested go ahead. Let's start with Future - In Latest and greatest version of product MenuSuite are obsolete and no longer used. So this article applies if you want to learn about C/AL MenuSuite.

Error After Restore SQL Backup of NAV 2013 Database

Hi all, we are facing a conman issue during restoring a SQL Database backup restored for NAV 2013. While Trying to run object from Object Designer we get below listed error (even the service is configured properly) - --------------------------- Microsoft Dynamics NAV Development Environment --------------------------- There are no NAV Server instances available for this database. You must ensure that a NAV Server instance is running and is configured to use the database before you perform this activity. --------------------------- OK    ---------------------------