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

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

RUNREQUESTPAGE, EXECUTE, PRINT, SAVEAS in NAV

RUNREQUESTPAGE, EXECUTE, PRINT, SAVEAS in NAV …nice reporting functions are available from NAV 2015:  EX: RUNREQUESTPAGE, EXECUTE, PRINT, SAVEAS MY BEST FUCTION IS:  “RUNREQUESTPAGE” -> “ This function lets you run a request page for a report, without actually running the report. When the user clicks OK, the function simply returns a text value , which is an XML document describing the user’s selection and filters of the request page.”; you can use this function also to schedule a report on Job Queue (OnDemand report schedule) ex: a reports launcher page, scope of this page is run selected reports and generate PDF files after reports printing (or after preview mode report printing) The system use fiunction REPORT.RUNREQUESTPAGE to read and retrieve reports parameters RUNREQUESTPAGE XmlParameters:= REPORT.RUNREQUESTPAGE(intIDReport); … after you get the following XML document as a result: EXECUTE Now is time to run report with EXECUTE f...