Thursday 13 October 2016

Multiple builds in the same machine

Let's say you have Installed Nav 2016 with CU1 and you want to run CU10 side by side then follow the below steps:

1)Go to the below path 
C:\Program Files\Microsoft Dynamics NAV\
Create a new folder Say(90CU10)

Copy Service folder from C:\Program Files\Microsoft Dynamics NAV\90\ to 
C:\Program Files\Microsoft Dynamics NAV\90CU10\


Copy the all the files from Service Folder of Cumulative Package 10
E:\Dynamics.90.AU.CU10.46621.DVD\ServiceTier\program files\Microsoft Dynamics NAV\90\Service\
and replace the files in below path
C:\Program Files\Microsoft Dynamics NAV\90CU10\Service\


Run the Dynamics NAV 2016 Administration Shell as administrator and execute the below powershell script

Say your new instance name is (INS_90CU10)

New-Service 'MicrosoftDynamicsNAVServer$INS_90CU10' -BinaryPathName '"C:\Program Files\Microsoft Dynamics NAV\90CU10\Service\Microsoft.Dynamics.Nav.Server.exe" $INS_90CU10 /config "C:\Program Files\Microsoft Dynamics NAV\90CU10\Service\Microsoft.Dynamics.NAV.Server.exe.config"' -DependsOn 'HTTP' -Description 'Service handling requests to Microsoft Dynamics NAV application.' -DisplayName 'Microsoft Dynamics NAV Server [INS_90CU10]' -StartupType Manual



To Modify Customsetting.config file using powershell script execute the below script:

Set-NAVServerConfiguration INS_90CU10 -KeyName DatabaseServer -KeyValue PC003
Set-NAVServerConfiguration INS_90CU10 -KeyName DatabaseInstance -KeyValue SQL2014
Set-NAVServerConfiguration d -KeyName DatabaseName -KeyValue 90CU10_DEMO

Set-NAVServerConfiguration INS_90CU10 -KeyName ClientServicesPort -KeyValue 9045
netsh http add urlacl url=http://+:99046/INS_90CU10/ user= “NT AUTHORITY\NETWORK SERVICE” listen=yes delegate=no sddl=”D:(A;;GX;;;NS)”
Set-NAVServerConfiguration INS_90CU10 -KeyName SOAPServicesPort -KeyValue 9046 -FORCE
netsh http add urlacl url=http://+:9047/INS_90CU10/ user= “NT AUTHORITY\NETWORK SERVICE” listen=yes delegate=no sddl=”D:(A;;GX;;;NS)”
Set-NAVServerConfiguration INS_90CU10 -KeyName ODataServicesPort -KeyValue 9047 -FORCE
Set-NAVServerConfiguration INS_90CU10 -KeyName managementServicesPort -KeyValue 9048

Open the CustomSettings.config file from the below path
C:\Program Files\Microsoft Dynamics NAV\90CU10\Service . check configuration of Database and Port numbers

go to <add key="ServerInstance" value="InstanceName"/>

change it to

 <add key="ServerInstance" value="INS_90CU6" />





Run Services.msc and Start the Service INS_90CU10








No comments:

Post a Comment