NAV-Server als Dienst installieren
Aus MattWiki
Skripte, um einen NAV Middle-Tier-Server als Dienst zu installieren
NAV 2009 (6.xx)
services-nav600-install.cmd @ECHO OFF SET SERVICENAME=NAV601 SET SERVICEPATH=C:\Program Files (x86)\Microsoft Dynamics NAV\601\Service %SERVICENAME% SC CREATE MicrosoftDynamicsNAVServer$%SERVICENAME% binpath= "%SERVICEPATH%\Microsoft.Dynamics.Nav.Server.exe $%SERVICENAME%" DisplayName= "NAV Server %SERVICENAME%" start= auto type= own depend= NetTcpPortSharing SC CREATE MicrosoftDynamicsNAVWS$%SERVICENAME%WS binpath= "%SERVICEPATH%\Microsoft.Dynamics.Nav.Server.exe $%SERVICENAME%WS" DisplayName= "NAV Server %SERVICENAME% Webservice" type= share start= auto depend= NetTcpPortSharing PAUSE
services-nav600-uninstall.cmd @ECHO OFF SET SERVICENAME=NAV601 SC DELETE MicrosoftDynamicsNAVServer$%SERVICENAME% SC DELETE MicrosoftDynamicsNAVWS$%SERVICENAME%WS PAUSE
NAV 2013 R2 (7.1)
services-nav710-install.cmd @ECHO OFF SET SERVICENAME=NAV710 SET SERVICEPATH=C:\Program Files\Microsoft Dynamics NAV\710\Service %SERVICENAME% SC CREATE MicrosoftDynamicsNAVServer$%SERVICENAME% binpath= "%SERVICEPATH%\Microsoft.Dynamics.Nav.Server.exe $%SERVICENAME%" DisplayName= "NAV Server %SERVICENAME%" start= auto type= own depend= NetTcpPortSharing PAUSE
services-nav710-uninstall.cmd @ECHO OFF SET SERVICENAME=NAV710 NET STOP MicrosoftDynamicsNAVServer$%SERVICENAME% SC DELETE MicrosoftDynamicsNAVServer$%SERVICENAME% PAUSE