Installantion of Nav 2009 and 2009(sp1)

Hi,

Can i install 2009 and 2009(SP1) both in one system. When i trying this 2009(SP1) upgrade the 2009. My some database are in 2009 and some are in 2009(SP1). What is the solution.

Thanks in advance

Himanshu Kumar

I think the easiest way to accomplish that is to keep two different VPC’s.

Yes it can be done, my colleague did this I will ask him to post about that here. Yeah but as Denster said easiest way would be to keep VPC.

Introduction:

Many implementers or clients may require multiple versions of NAV 2009 to be installed on the same workstation for testing, development or support. The intension of this post is to provide instruction on the workaround I use to accomplish this.

Additional detail is available in detail from the available documentation included in the product installation folders and from MSDN online. Reference material at the end of this post.

Installation Steps:

General Steps based on a clean workstation that meets the requirements are:

  • Install SQL 2005 or 2008 (in NAV is not present NAV will install SQL Express). I recommend installing a copy of SQL standard/development/enterprise rather than using express.
    • Ensure to include the SQL management studio or install for if Express is installed. Search Microsoft Downloads for SSMSE and install for your version of SQL Express.
  • Install NAV 2009 (not SP1) and include Classic, RTC, Server (NAV Server Tier), SQL Server Option with Demo Database, Documentation
    • Install to default location and with default settings.
    • NAV Demo database is expected to be installed and attached.
  • Zip/Retain a copy of all folders found in the default folder %ProgramFiles%\Microsoft Dynamics NAV\60 (This backup will be used to re-populate the folders after uninstalling.
  • Uninstall NAV 2009 but ensure the NAV 2009 demo database remains with the standard name “Demo Database NAV (6-0)”
  • Unzip/restore the backup of the files/folders in the directory %ProgramFiles%\Microsoft Dynamics NAV\60 replacing all folders if they exist.
  • Install NAV 2009SP1 but ensure to do the following critical steps!
    • Install NAV 2009SP1 and include Classic, RTC, Server (NAV Server Tier), SQL Server Option with Demo Database, Documentation; (Add other components desired including SDK for Jet Reports etc.)
    • When installing, select and change the destination folder to %ProgramFiles%\Microsoft Dynamics NAV\61
    • Change the settings for the SQL Database Option and change the name of the database to “Demo Database NAV (6-1)” ; The installer will attach the NAV2009SP1 database in SQL with the new name allowing for the 2 database versions.

After the successful installation the following tasks must be conducted to add the multiple required NAV Server and Web Services for the 2 versions of NAV

Review the nav_Install.chm documentation file regarding “Walkthrough: Accessing Multiple Microsoft Dynamics NAV Databases from a Single Microsoft Dynamics NAV Server Computer” Details in this section is used to generate the required services.

  • Stop the default services “Microsoft Dynamics NAV Server” and the “Microsoft Dynamics NAV Web Server”
  • Run from Command Prompt (Dos) “sc delete MicrosoftDynamicsNavServer” (without quotes) this will delete the existing NAV Server Service.
  • Run from Command Prompt (Dos) “sc delete MicrosoftDynamicsNavWS” (without quotes) this will delete the existing NAV Web Service.
  • In Control Panel, click Administrative Tools, and then click Services to open the Services snap-in.

In the “Services” you must update “Net.Tcp Port Sharing Service” (NetTcpPortSharing) to start automatically. Start this service prior to continuing.

Adding the Services:

Run from the command prompt the following commands where is to be replaced by the workstation name and modifying the “Program Files” folder name if x64 is used. This process will add 2 NAV Services back, each using a different NAV server Service and version. Ensure to copy exactly as is, spaces and quotes etc. It is important that after the parameter and the = sign there must be a space:

NOTE: Program Files path depends on x64 or x86 O/S version. Update if necessary.

  1. To create the NAV Server Service for NAV 2009:

--------Copy everything after this line---------

sc \ create “MicrosoftDynamicsNAVServer$NAV60” binpath= “C:\Program Files\Microsoft Dynamics NAV\60\Service\Microsoft.Dynamics.Nav.Server.exe $NAV60” DisplayName= “Microsoft Dynamics NAV Server NAV 2009” start= auto type= own depend= NetTcpPortSharing obj= “NT Authority\NetworkService”

--------Copy everything before this line---------

Press Enter

  1. To create the NAV Server Service for NAV 2009 SP1:

--------Copy everything after this line---------

sc \ create “MicrosoftDynamicsNAVServer$NAV61” binpath= “C:\Program Files\Microsoft Dynamics NAV\61\Service\Microsoft.Dynamics.Nav.Server.exe $NAV61” DisplayName= “Microsoft Dynamics NAV Server NAV 2009 SP1” start= auto type= own depend= NetTcpPortSharing obj= “NT Authority\NetworkService”

--------Copy everything before this line---------

Press Enter

  1. To create the NAV Web Service for NAV 2009:

--------Copy everything after this line---------

sc \ create “MicrosoftDynamicsNAVWS$NAV60” binpath= “C:\Program Files\Microsoft Dynamics NAV\60\Service\Microsoft.Dynamics.Nav.Server.exe $NAV60” DisplayName= “Microsoft Dynamics NAV Business Web Service NAV 2009” Description= “Service handling requests to published Business Web Services in Microsoft Dynamics NAV 2009” start= auto type= share depend= NetTcpPortSharing obj= “NT Authority\NetworkService”

--------Copy everything before this line---------

Press Enter

  1. To create the NAV Web Service for NAV 2009SP1:

--------Copy everything after this line---------

sc \ create “MicrosoftDynamicsNAVWS$NAV61” binpath= “C:\Program Files\Microsoft Dynamics NAV\61\Service\Microsoft.Dynamics.Nav.Server.exe $NAV61” DisplayName= “Microsoft Dynamics NAV Server NAV 2009 SP1” start= auto type= share depend= NetTcpPortSharing obj= “NT Authority\NetworkService”

--------Copy everything before this line---------

Press Enter

*If successfully installed/added there should be a response back with “[SC] CreateService SUCCESS” after each line.

**After installing you can manually update the services description that is displayed by modifying the registry. Go to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services

Locate the NAV services created above such as “MicrosoftDynamicsNAVServer$NAV60”. Add a new String Value “Description” with a value data text updated to describe the service

“Service handling requests to Microsoft Dynamics NAV 2009 application”

Or

“Service handling requests to Microsoft Dynamics NAV 2009 Business Web Server”

UPDATE THE SERVER CustomSettings. Config for each service:

Use Notepad or another text editor and open the CustomSettings.config file in the Service directory for each service, starting with NAV 2009. The default path for this file is C:\Program Files\Microsoft Dynamics NAV\60\Service\Custom.Settings.config.

Locate the following line:

-Update the “DynamicsNAV” with a Name of “DynamicsNAV60” to identify the service as NAV209

To update for NAV 2009 SP1:

Use Notepad or another text editor and open the CustomSettings.config file in the Service directory; for this file it would be C:\Program Files\Microsoft Dynamics NAV\61\Service\Custom.Settings.config.

Locate the following line:

-Update the “DynamicsNAV” with a Name of “DynamicsNAV61” to identify the service as NAV209SP1

*Start all 4 new services via the service applet.

UPDATE THE ClientUserSettings. Config for the user:

Use Notepad or another text editor and open the ClientUserSettings.config file for the users. The default path for this file is

WindowsXP:

Documents and Settings<username>\Local Settings\Application Data\Microsoft\Microsoft Dynamics NAV

Vista, Sever 2008, Windows 7:

Users<username>\AppData\Local\Microsoft\Microsoft Dynamics NAV

Update the “urlHistory” with the value “LocalHost/DynamicsNAV60,LocalHost/DynamicsNAV61”

Example:

Shortcuts: NAV shortcuts for the users can be manually be updated or added to the users desktops.

The finsql.exe file (Classic Client) for the shortcut will be in the following folders:

-C:\Program Files\Microsoft Dynamics NAV\60\Classic (NAV2009, update program files if x64)

-C:\Program Files\Microsoft Dynamics NAV\61\Classic (NAV2009SP1, update program files if x64)

The Microsoft.Dynamics.Nav.Client.exe file (RTC Client) for the shortcut will be in the following folders:

-C:\Program Files (x86)\Microsoft Dynamics NAV\60\RoleTailored Client (NAV2009, update program files if x64)

-C:\Program Files (x86)\Microsoft Dynamics NAV\61\RoleTailored Client (NAV2009SP1, update program files if x64)

***Remember to use the NAV classic clients and open the appropriate database for the client version (either 6_0 or 6_1) and upload your NAV 2009 licenses.

When selecting to run the Role Tailor Client (RTC) for either version, when switching back and forth, you will get an error when switching between the two. This is because the previously selected connection is used from the single ClientUserSettings.config file. Simply select No when asked to try the connection again and type or select the respecting NAV server (LocalHost\DynamicsNAV60 or LocalHost\DynamicsNAV61) for the respective RTC client you are using.

Reference information links:

http://blogs.msdn.com/NAV/default.aspx

http://msdn.microsoft.com/en-us/library/dd301130.aspx

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=eec997be-50c8-4d27-8bf2-fa93c9ac282a

Please note that in the above I had left a parameter I was trying when creating the WebService which does not work:

Description= “Service handling requests to published Business Web Services in Microsoft Dynamics NAV 2009”

Please note that this must not be included as a parameter when creating the service as Description is not a valid parameter. It appears that in my notes I did not removed it from all of the CMD commands above.

Sorry for the confusion.