Startup script to install NAV RTC

  • Startup script to install NAV RTC

    Posted by DSC Communities on January 5, 2017 at 1:58 pm
    • Wing Mak

      Member

      January 5, 2017 at 1:58 PM

      The following batch file can detect and install RTC clients on workstations. I have added this to GPO as startup script.

      @echo off

      wmic product get name,version /format:csv | find “Microsoft Dynamics NAV 2017 RoleTailored Client,10.0.14199.0”
      if %errorlevel%==0 (
      goto:1
      ) else (
      goto:2
      )

      :1
      echo NAV 2017 version 10.0.14199.0 installed, continue
      goto:eof

      :2
      echo Checking if previous version of NAV exist, and uninstall old version
      if exist “%CommonProgramFiles(x86)%Microsoft Dynamics Nav100Setupsetup.exe” (
      echo old version exist, start uninstalling old version
      “%CommonProgramFiles(x86)%Microsoft Dynamics Nav100SetupSetup.exe” /uninstall /quiet
      )
      echo Installing NAV2017 10.0.14199.0 in background

      net use n: {your network path that store the DVD folder}
      start n:Setup.exe /config n:2017Config.xml /quiet

      goto:eof

      :eof

      ——————————
      W Mak
      ERP Director
      City of Industry CA
      ——————————

    • Mathew Ealy

      Member

      September 25, 2017 at 8:49 AM

      Very interesting I had a need to install on only select work stations so I built a powershell script that could be called to install and create a shortcut on the desktop to a shared executable.Ā 

      import-module \InstallMediaShareNavInstallationTools.psm1
      #Install Nav
      install-navcomponent -configfile \SharenavinstallmediaConfigFile.xml

      #Copy Over short cut
      $TargetFile = "\ShortcutNav16"
      $ShortcutFile = "$env:PublicDesktopnav16.lnk"
      $Icon = "C:Program Files (x86)Microsoft Dynamics NAV90RoleTailored ClientMicrosoft.Dynamics.Nav.Client.exe"
      $WScriptShell = New-Object -ComObject WScript.Shell
      $Shortcut = $WScriptShell.CreateShortcut($ShortcutFile)
      $Shortcut.TargetPath = $TargetFile
      $Shortcut.IconLocation = $Icon
      $Shortcut.Save()

      I have this and a couple other powershell scripts Ā I use for Nav (13 & 16) on my github page. Ā https://github.com/MEaly58/Nav_Powershell

      ——————————
      Mathew Ealy
      Nav Support Specialist
      Rentokil N. America
      Reading PA
      ——————————
      ——————————————-

    DSC Communities replied 8 years, 8 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Startup script to install NAV RTC’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!