Skip to main content

Nice scripts to install NAV RTC


Nice scripts to install NAV RTC


nice posts on NAVUG by W Mak and Mathew Ealy about this topic.
The following batch file can detect and install RTC clients on workstations
@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 Nav\100\Setup\setup.exe” (
echo old version exist, start uninstalling old version
“%CommonProgramFiles(x86)%\Microsoft Dynamics Nav\100\Setup\Setup.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


Powershell script that could be called to install and create a shortcut on the desktop to a shared executable. import-module \\InstallMediaShare\NavInstallationTools.psm1
#Install Nav
install-navcomponent -configfile \\Share\navinstallmedia\ConfigFile.xml

#Copy Over short cut
$TargetFile = "\\Shortcut\Nav16\"
$ShortcutFile = "$env:Public\Desktop\nav16.lnk"
$Icon = "C:\Program Files (x86)\Microsoft Dynamics NAV\90\RoleTailored Client\Microsoft.Dynamics.Nav.Client.exe"
$WScriptShell = New-Object -ComObject WScript.Shell
$Shortcut = $WScriptShell.CreateShortcut($ShortcutFile)
$Shortcut.TargetPath = $TargetFile
$Shortcut.IconLocation = $Icon
$Shortcut.Save()
also a couple other powershell scripts for NAV (13 & 16) on my github page

Comments

Popular posts from this blog

The Difference Between Microsoft Dynamics NAV and AX

The Difference Between Microsoft Dynamics NAV and AX Microsoft Dynamics offers a variety of ERP solutions. You might say there is a solution for every purpose and every industry. Two of the offerings,  Dynamics NAV  and  Dynamics AX (now part of  Dynamics 365 ) share some of the same features so you might wonder: ‘what are the differences and which is right for my organization?’ Both ERP solutions are highly customizable, available in and adaptable to many languages and currencies used around the world. The two solutions can also be employed in a central location or across diverse satellite locations and are designed to grow as a business grows. Their industry-specific functionality can assure compliance with local and regional requirements. In short, both solutions could rightly be described as comprehensive and well equipped to manage complex requirements of supply chain and inventory. So, what is the difference? Is one better than the other for your...

How to install a Microsoft Dynamics NAV cumulative update

How to install a Microsoft Dynamics NAV 2018 cumulative update Introduction This article describes how to install a cumulative update for Microsoft Dynamics NAV 2018. You have to recompile all objects after you install a cumulative update. A cumulative update is a cumulative set of files that includes all hotfixes and regulatory features that have been released for Microsoft Dynamics NAV 2018. A cumulative update includes files that are separated into the following folders: APPLICATION DVD See  Upgrading the Data to Microsoft Dynamics NAV 2018  for details. How to install the cumulative update files APPLICATION The APPLICATION folder includes the following files: AccumulatedChangeLog.<Locale>.<Build No.>.txt Changelog.<Locale>.<Build No.>.txt CUObjects.<Locale>.<Build No.>.fob Objects.<Locale>.Objects.<Locale>.<Build No.>.txt To install the application files, fol...

Purchases and Direct Cost Applied Accounts in Microsoft Dynamics NAV

Purchases and Direct Cost Applied Accounts in Microsoft Dynamics NAV When working on new Dynamics NAV implementations (and for that matter, existing NAV solutions), we get a lot of questions about the Purchases and Direct Cost Applied Accounts—namely, what are they used for? We were trained in accounting that, when an inventory purchase receipt is invoiced (vouchered), we would debit the Inventory Account and credit the Accounts Payable Account and be done with it. Dynamics NAV doesn’t handle it that way. When we look at the General Posting Setup in Dynamics NAV 2013 (see below), we see that there is a column for the Purchases Account and the Direct Cost Applied Account. Figure 1 - General Posting Setup in Dynamics NAV 2013 When a purchase receipt is invoiced (vouchered) in NAV, we get the following General Ledger entries: Dr Purchases Account for the Actual Invoice Amount Cr Accounts Payable Account for the Actual Invoice Amount Dr Inventory Account for the Ac...