Nav2013 Enus Ic 07
Nav2013 Enus Ic 07
Nav2013 Enus Ic 07
Module Overview
Deploying software is essential to meet the changing application needs of
organizations. It provides these benefits:
Objectives
7-1
Installation and Configuration in Microsoft Dynamics® NAV 2013
Deployment Process
One of the challenges administrators in an organization typically face is
application life-cycle management. Imagine a scenario where an administrator has
to go to every single computer in a network to individually install any application
that is required by all the connected computers in the domain. Imagine an even
more complex network setup where the whole domain is scattered around the
globe.
Group Policy
The Group Policy Infrastructure figure shows the entities that are available and can
be managed in the Group Policy infrastructure.
The Scripts extension can apply one or more scripts to a computer or users. Scripts
that apply to computers run during startup and shutdown. Scripts that apply to
users run during logon and logoff.
7-2
Module 7: Deployment
The Registry extension is a way to use Group Policy to centrally manage client
registry keys. This client-side extension is used to apply registry-based policy
settings (Administrative Templates) by creating and configuring the client registry
keys.
The Software Installation extension of Group Policy enables you to provide on-
demand software installation and automatic repair of applications. Group Policy
offers a convenient method for distributing software, especially if you already use
Group Policy for other purposes such as securing the client and server computers.
Note: You must be logged on to the computer with an account that has
administrative credentials to use Group Policy Management Editor.
7-3
Installation and Configuration in Microsoft Dynamics® NAV 2013
The Group Policy Management Editor figure shows the Group Policy Management
Editor console.
• Computer Configuration
• User Configuration
7-4
Module 7: Deployment
Group Policy Software Installation helps you specify how applications are installed
and maintained within your organization. With Group Policy Software Installation,
you can manage an application in a Group Policy Object. This is in turn associated
with a particular Active Directory container – a site, a domain, or an organizational
unit. This makes sure of the following:
• Assign Software
You can assign a program distribution to users or computers. If you
assign the program to a user, it is installed when the user logs on to
the computer. When the user first runs the program, the installation is
completed.
• Publish Software
You can publish a program distribution to users. When the user logs
on to the computer, the published program is displayed in the
Add/Remove Programs dialog box (in the Windows Control Panel),
and it can be installed from there.
7-5
Installation and Configuration in Microsoft Dynamics® NAV 2013
Administrators: Full Control
Group Policy Software Installation (GPSI) uses the Windows Installer service to
maintain and manage the state of software installation. This service runs in the
background and enables the operating system to manage software installation,
based on information that is stored in the Windows Installer package.
Every time that you use the software installation extension of Group Policy to
deploy an application, update, or upgrade package, you must first prepare the
application for Windows Installer. If the application does not include a natively
authored Windows Installer package (.msi), you must obtain one or create a .zap
file.
7-6
Module 7: Deployment
• .zap files (*.zap): Non-Windows Installer-based applications must use
a .zap file to describe their existing Setup program. A .zap file is a text
file (similar to .ini files) that provides information about how to install
a program, the application properties, and the entry points that the
application should install.
For more information about tools and procedures for authoring Windows Installer
packages or repackaging existing applications for use with Windows Installer, see
Step-by-Step Guide to Software Installation and Maintenance
(http://go.microsoft.com/fwlink/?LinkId=267427).
The steps in the software deployment process vary, depending on whether the
application is published or assigned.
Published Applications
Assigned Applications
7-7
Installation and Configuration in Microsoft Dynamics® NAV 2013
4. The Windows Installer service retrieves the Windows Installer package.
5. A request for the software is sent to the Software Distribution Point.
6. The Windows Installer service is started, it installs the requested
Windows Installer package, and it opens the application.
This lesson discusses the steps of deploying Microsoft Dynamics NAV 2013 client
software with Group Policy. The tasks to deploy software with Group Policy are as
follows:
Before you can start to deploy software with Group Policy, you must plan the
deployment. When planning for software deployment, you should do the
following:
7-8
Module 7: Deployment
This table describes strategies and considerations for deploying software. Some of
these strategies might seem contradictory, but select the strategies that meet your
business goals.
Strategy Considerations
Create OUs based on software Lets you target applications to the
management needs. appropriate set of users. Group
Policy security settings are not
required to target the appropriate
set of users.
Deploy software close to the root Makes it easy to provide all users in
in the Active Directory tree. an organization with access to an
application. This reduces
administration because you can
deploy a single GPO instead of re-
creating that object in multiple
containers in the Active Directory
tree.
It is also your responsibility to verify that you are working within the software
guidelines provided by each independent software vendor.
7-9
Installation and Configuration in Microsoft Dynamics® NAV 2013
Software Preparation
Before you start the deployment, you must obtain the Windows Installer packages
(.msi files) for the software. Perform any necessary modifications to the packages,
and collect the transform (.mst) or patch (.msp) files. If you want to deploy
multiple applications, you should determine the correct installation order.
After you have finished planning and preparing for the software deployment,
copy the software to a Software Distribution Points (SDP). A Software Distribution
Point is a network location from which users can retrieve the software that they
need.
1. Create the folder for the software on the server that will be the SDP.
2. Share the folder on the network.
3. Set the appropriate permissions on the folder. Administrators must be
able to change the files (Full Control), and users must only view
(Read) the files from the shared SDP folder.
4. Copy the necessary software (Windows Installer packages,
transformations, patches and other components) to the SDP.
Now you can use Group Policy to manage the software within the appropriate
Group Policy object.
The Microsoft Distributed File System (DFS) gives users convenient access to
shared folders that are distributed throughout a network. With DFS, you can make
files distributed across multiple servers appear to users as if they are located in
one place on the network. For a software deployment with Group Policy, you can
set up DFS to automatically direct users to the nearest software distribution point.
7 - 10
Module 7: Deployment
• DFS Replication is an efficient, multiple-master replication engine
that you can use to keep folders synchronized between servers across
limited bandwidth network connections. It replaces the File
Replication Service (FRS) as the replication engine for DFS
Namespaces, and for replicating the AD DS SYSVOL folder in domains
that use the Windows Server 2008 domain functional level.
For more information about how to install and set up Distributed File Services, see
DFS Step-by-Step Guide for Windows Server 2008
(http://go.microsoft.com/fwlink/?LinkId=267428).
As soon as you have set up your distribution point and copied the software to it,
you can create a Group Policy Object to manage software installation. We
recommend that you use a separate Group Policy Object (GPO) for software
deployment. However, we do not recommend that you create a separate GPO for
each application that you want to distribute.
You can either create a new Group Policy Object or change an existing Group
Policy Object. When you create a new object, you can link it directly to a domain,
site, or organizational unit in the Active Directory.
To create a new GPO and link it to a domain or OU, follow these steps:
By default, the new GPO is linked to the site, domain, or OU where it was created.
As soon as you have created your new GPO, you can edit the GPO by using the
Group Policy Management Console (GPMC). The GPMC is a scriptable Microsoft
Management Console (MMC) snap-in. It provides a single administrative tool for
managing Group Policy across the enterprise. GPMC is the standard tool for
managing Group Policy.
7 - 11
Installation and Configuration in Microsoft Dynamics® NAV 2013
The Group Policy Management Console integrates the Group Policy functionality
that is provided by the following tools into a single console:
Administrators can perform core Group Policy tasks by using the GPMC instead of
these other tools. The GPMC provides a comprehensive set of COM interfaces that
can be used to programmatically access many of the operations supported by the
console.
The GPMC does not replace the Active Directory Users and Computers snap-in
and the Active Directory Sites and Services snap-in. The GPMC is intended for
Group Policy administration, whereas the Active Directory snap-ins are intended
for directory administration tasks such as creating user, computer, and group
objects.
7 - 12
Module 7: Deployment
The Default Domain Policy GPO and Default Domain Controllers Policy GPO are
important to the health of any domain. As a best practice, you should not edit the
Default Domain Controllers Policy GPO or the Default Domain Policy GPO, except
in the following cases:
• Press the Windows logo key + R to open the Run dialog box. Type
"gpmc.msc" in the text box, and then click OK.
• Click Start > All Programs > Accessories > Run. Type "gpmc.msc"
in the text box, and then click OK.
• Click Start > All Programs > Accessories > System Tools >
Control Panel > System and Security > Administrative Tools >
Group Policy Management.
• On the Windows Taskbar, click Start. In the Search programs and
files box, type "Group Policy Management", press Enter, and then
click the Group Policy Management link in the list.
To edit a Group Policy Object, right-click the Group Policy that you want to edit in
the GPMC and select Edit.
Instead of using the GPMC to edit a Group Policy Object, you can also create a
separate MMC for one or more specific Group Policy Objects.
7 - 13
Installation and Configuration in Microsoft Dynamics® NAV 2013
10. Click Finish to close the Select Group Policy Object dialog box.
11. Click OK to close the Add or Remove Snap-ins dialog box.
12. In the MMC, click File > Save As.
13. Select a path for the console.
14. In the File Name box, type a name.
15. Click Save.
You can now use the MMC to directly access and edit the GPO.
After you create your GPO for software installation, you can start to define your
software deployment. First, enter several default settings for the software to install.
You can configure default settings for software installation on a per-GPO basis. To
specify software installation defaults for the selected GPO, use the Software
Installation Properties dialog box, shown in the Software Installation Properties
Window figure.
7 - 14
Module 7: Deployment
To open this window, follow these steps:
The Software Installation Properties window has four tabs: General, Advanced,
File Extensions, and Categories.
In the General and Advanced tabs, specify how you want all Windows Installer
packages in the GPO to be deployed and managed.
In the File Extensions tab, specify which application is installed when users open
a file that has an unknown file name extension. If multiple applications are
associated with a specific file name extension, you can also set an installation
priority for the applications. (The application that has the highest priority is
installed first.) File name extensions are managed on a per-GPO basis, so
changing the priority in a GPO affects only the users who have that GPO applied.
In the Categories tab, designate categories for organizing assigned and published
applications to make it easier for users to locate the appropriate applications
under Programs (or Add/Remove Programs) in Control Panel. You can, for
example, make separate categories for productivity applications and development
applications.
In the General tab of the Software Installation Properties dialog box, you must
enter the default location for software packages in the selected GPO. To do this,
type the Uniform Naming Convention (UNC) path
(\\<servername>\<sharename>) to the software distribution point for the
Windows Installer packages (.msi files) in the GPO in the Default Package
Location box.
Note: You must browse for the software distribution point that you created in
the previous section in relation to the network share location, instead of the local
drive on the server. This makes sure that you are managing software from the
network share location that users can access. Users typically cannot access the
package from the local drive of the server.
7 - 15
Installation and Configuration in Microsoft Dynamics® NAV 2013
Setting Options for New Packages and User Interface
To control what happens when you add a new package to the selected GPO, you
use the General tab in the Software Installation Properties dialog box, and set
options in the New packages frame. The default behavior is that the Deploy
Software dialog box appears every time, and the administrator can select one of
the choices from that dialog box.
The following table lists the options for New packages frame:
Option Description
Display the Deploy Software Select this option to specify that
dialog box when you add new packages to the
GPO, the Deploy Software dialog
box appears. This lets you decide
whether to assign, publish, or
configure package properties. This is
the default setting.
7 - 16
Module 7: Deployment
Option Description
Publish Select this option to specify that
when you add new packages to the
GPO, they are published by default
with standard package properties.
Note: You cannot add or change transforms (.mst files) after the software is
deployed.
7 - 17
Installation and Configuration in Microsoft Dynamics® NAV 2013
Similarly, the options in the Installation user interface options frame let the
administrator set how much of the user interface (UI) the Windows Installer
presents to a user during installation. The Basic UI (the default option) only
presents progress bars and messages. No user choices are presented other than
Cancel. The Maximum UI option shows the UI (including all messages and
windows) that the author of the Windows Installer package defined.
You can use the options on the Advanced tab of the Software Installation
Properties window to automatically remove the application when it is no longer
managed, to publish OLE information to the Active Directory, and to make 32-bit
applications available on 64-bit platforms.
7 - 18
Module 7: Deployment
Select any of these options, to be applied to all packages in the GPO:
You can use the File Extensions tab to select the file name extension for which
you want to specify an automatic software installation. This means that when a
specific application is not already installed, selecting this option causes the
application to be automatically installed when the user opens a file that has this
file association, for example, by double-clicking the file.
Note: If a user opens a file that has an unknown file name extension and
there is no software application associated to this file name extension in the
Software Installation Properties window, the user sees the Open With dialog box
and is asked to select the best alternative from the software already present on his
or her computer.
You can associate multiple applications to the same file name extension. In
addition, you can define the precedence or priority with which Windows starts
applications when a user opens a document that has the selected extension. For
example, when you deploy both Microsoft Visual Studio 2010 and Microsoft
Office SharePoint Designer by using Group Policy, both applications can edit ASPX
files that have the .aspx extension. To configure the file name extension priority so
that users who are managed by this GPO always install Microsoft Office
SharePoint Designer, set Microsoft Office SharePoint Designer as the application
that has the highest priority for the .aspx extension. When a user who is managed
by this GPO has installed neither Microsoft Visual Studio 2010 nor Microsoft Office
SharePoint Designer, Software Installation installs Microsoft Office SharePoint
Designer and opens the file for editing when the user double-clicks an ASPX file.
7 - 19
Installation and Configuration in Microsoft Dynamics® NAV 2013
You can use the Application precedence list to change the priority of an
application. Move the application that has the highest precedence to the top of
the list by using the Up and Down buttons. The application at the top of the list is
automatically installed if a document that has the selected file name extension is
invoked before the application is installed.
7 - 20
Module 7: Deployment
Setting Category Options
Best Practice: Because Categories are established per domain instead of per
GPO, an organization should standardize the Categories and create them in a
centralized manner.
7 - 21
Installation and Configuration in Microsoft Dynamics® NAV 2013
To create a new category, click Add, enter the name of the application category,
and then click OK. To modify the name of an existing category, select the
category, click Modify, modify the name, and then click OK. To remove a
category, select the category and then click Remove.
Now you are ready to add the software packages that you want to deploy to the
software installation GPO. When you add a software package to the GPO, you
must specify how it will be deployed (published or assigned).
Best Practice: Before you add any software package to the GPO, you must
decide whether you want to deploy the application per user or per computer, and
whether you want to publish or assign it.
To add a software package to the software installation GPO and select the
deployment method, follow these steps:
7 - 22
Module 7: Deployment
Deployment Method Description
Assigned Select this option to assign the Windows
Installer package to users or computers
without applying modifications to the
package.
7. Click OK.
FIGURE 7.9: SOFTWARE INSTALLATION GPO CONTAINING THE CLIENT FOR WINDOWS
AS A PUBLISHED APPLICATION
In this step, you can fine-tune the deployment of each application by setting
Windows Installer package properties in the Properties dialog box for the
package.
7 - 23
Installation and Configuration in Microsoft Dynamics® NAV 2013
The Setting Software Package Properties figure shows the Properties dialog box
for a published application.
To open the Properties dialog box, right-click the software package in the details
pane of the GPO and select Properties. The Properties dialog box for the
Windows Installer package contains the following tabs: General, Deployment,
Upgrades, Categories, Modifications, and Security.
Note: When you add a software package to the GPO and select Advanced in
the Deploy Software dialog box, the Properties dialog box appears immediately.
On the General tab, you can change the default name of the package and
designate a support URL. Users can select the support URL from the Programs
and Features (or Add Or Remove Programs) window to be directed to a
support webpage. A support URL can contain helpful information such as
frequently asked questions and can help reduce calls to a help desk or support
team.
7 - 24
Module 7: Deployment
In the Deployment tab, you can change the way the application is deployed and
the user interface options. In the Deployment Type section, you can select the
deployment option:
In the Deployment Options section of the Deployment tab, you can select the
following options:
7 - 25
Installation and Configuration in Microsoft Dynamics® NAV 2013
Deployment Option Description
Uninstall this application Select this option to remove the
when it falls out of the scope application when the associated
of management GPO is no longer applicable for the
user or computer.
This typically happens when users log
on or computers start if there is
relocation to a site, domain, or OU
for which the application is not
deployed.
Do not display this package Select this option to specify that the
in the Add/Remove Programs application is not displayed in the
control panel Programs and Features (or
Add/Remove Programs) item in
Control Panel.
In the Installation user interface options area, select one of the following:
You can click Advanced to open the Advanced Deployment Options dialog box
and set any of the following options:
Option Description
Ignore language when Select this option to specify whether
deploying this package to deploy the package even if it is in
a different language.
7 - 26
Module 7: Deployment
Option Description
Make this 32-bit X86 Select this option to specify whether
application available to the 32-bit program is assigned or
Win64 computers published to 64-bit computers.
Include OLE class and product Select this option to specify whether
information to deploy information about COM
components with the package.
In the Upgrades tab, you can select the software package(s) the current package
will upgrade. The Upgrades tab does not appear for packages created from
application files (.zap files).
On the Categories tab, you can select the categories under which the application
is listed in the Get Programs (or Add/Remove Programs) item in Control Panel.
This makes it easier for users to find the application. To link a category to the
application, select the category in the Available categories list and then click
Select. To remove an application from a category, select the category in the
Selected categories list and then click Remove.
Note: Do not click OK in the Modifications tab until you have finished
configuring the modifications. When you click OK, the package is assigned or
published immediately. If the modifications are not configured correctly, you have
to uninstall or upgrade the package with a correctly configured version.
Finally, in the Security tab, you can indicate permissions for the software
installation. Permissions set for software installation pertain only to the package
installation. Administrators who manage the application installation should have
the Full Control permission set to Allow. Users who use the software assigned or
published by the application should have the Read permission set to Allow.
When you are finished setting the properties, click OK to apply the new settings.
7 - 27
Installation and Configuration in Microsoft Dynamics® NAV 2013
Best Practices
Here are several best practices for administrators who want to deploy software
through Group Policy:
We recommend that you do not install these applications manually, because this
makes it more complex to redeploy the application through Group Policy.
7 - 28
Module 7: Deployment
Removal Method Description
Immediately uninstall the This option immediately removes the
software from users and software when the computer is
computers restarted or the next time the user
logs on to the computer.
Let users continue to use the This option prevents new instances of
software, but prevent new the application from being installed.
installations But it still permits users who have
already installed the application to
continue using it.
7 - 29
Installation and Configuration in Microsoft Dynamics® NAV 2013
Tim is preparing to deploy Microsoft Dynamics NAV 2013 RoleTailored client and
Web client in the company domain. Instead of installing the clients on all
computers either manually or with Remote Desktop, Tim wants to use a Group
Policy to install the applications automatically. Tim plans to have the Web client
installed on all computers in the domain. The RoleTailored client is then made
available for installation. Tim wants to create a software distribution point and a
new Group Policy Object (known as Software Installation GPO). He then wants to
copy both clients to the software distribution point and add the clients to the
GPO. Tim has verified that the .NET Framework 4.0 is installed on every computer
in the domain.
Objectives
Tim wants to create a new software distribution point and copy the client software
to it. Next he plans to add a new GPO and add the clients to it.
Detailed Steps
1. Logon to the server as Administrator.
a. On the Desktop, press Ctrl+Alt+Del.
b. In the Password field, type the password for the Administrator
user:
"Passw0rd".
c. Press Enter.
7 - 30
Module 7: Deployment
Task 2: Create a New SDP
Detailed Steps
1. Open a Command Prompt.
d. On the Windows Taskbar, click Start > Run.
e. In the Run dialog box, type "cmd" and then click OK.
7 - 31
Installation and Configuration in Microsoft Dynamics® NAV 2013
Task 3: Copy the Software to the SDP
Detailed Steps
1. Insert the Microsoft Dynamics NAV 2013 DVD in the DVD drive.
a. Open the DVD drive by pressing the Eject button on the physical
drive.
b. Put the DVD on the tray.
c. Press the Close button to close the DVD drive.
7 - 32
Module 7: Deployment
Task 4: Create a New GPO
Detailed Steps
1. Open Group Policy Management console.
a. On the Windows Taskbar, click Start.
b. In the Search programs and files box, type "Group Policy
Management".
c. Click the corresponding link in the list.
Detailed Steps
1. Select the newly created GPO.
a. In the Group Policy Management console, select the Group
Policy Objects node.
b. Right-click the Software Installation GPO, and select Edit.
7 - 33
Installation and Configuration in Microsoft Dynamics® NAV 2013
d. In the Open dialog box, in the File Name field, type "\\NAV-DC-
SQL-SP\SDP\NAV2013\RoleTailored Client\Microsoft Dynamics
NAV RoleTailored Client.msi".
e. Click Open.
f. In the Deploy Software dialog box, select Published.
g. Click OK.
7 - 34
Module 7: Deployment
Exercise 2: Create a GPO Console for the Software
Installation GPO
Exercise Scenario
Tim wants to create an MMC so he can directly edit the newly created Software
Installation GPO.
Detailed Steps
1. Open Microsoft Management Console.
a. On the Windows Taskbar, click Start > Run.
b. In the Run box, type "mmc" and press Enter.
2. Add a snap-in.
a. In Microsoft Management Console window, click File >
Add/Remove Snap-ins.
b. In the Add or Remove Snap-ins dialog box, in the Available
snap-ins list, select Group Policy Management Editor.
c. Click Add.
d. In the Select Group Policy Object dialog box, click Browse.
e. In the Browse for a Group Policy Object dialog box, click the
All tab.
f. In the All Group Policy Objects stored in this domain list,
select the Software Installation GPO.
g. Click OK.
h. In the Select Group Policy Object dialog box, click Finish.
i. In the Add or Remove Snap-ins dialog box, click OK.
7 - 35
Installation and Configuration in Microsoft Dynamics® NAV 2013
3. Save the console.
a. In Microsoft Management Console window, click File > Save
As.
b. In the Save As dialog box, in the Save in drop-down list, select
Desktop.
c. In the File Name field, type the name for the console window:
"Software Installation GPO".
d. Click Save.
7 - 36
Module 7: Deployment
Module Review
Module Review
• The tasks for deploying software with Group Policy are as follows:
plan and prepare the software deployment, set up a Software
Distribution Point (SDP), create a GPO, specify the software
installation properties for the GPO, add Windows Installer packages
to the GPO, and set Windows Installer package properties.
• For a software deployment with Group Policy, you can set up
Distributed File System (DFS) to automatically direct users to the
nearest SDP.
• You can define software deployment properties that affect all
Windows installer packages in a GPO.
• You can also define software deployment properties that affect
individual Windows Installer packages in a GPO.
1. Which tool can you use to edit domain-wide Group Policy Objects?
7 - 37
Installation and Configuration in Microsoft Dynamics® NAV 2013
3. What is true about published and assigned applications?
( ) *.exe files
( ) *.bat files
( ) *.msi files
( ) *.cmd files
( ) *.pif files
7 - 38
Module 7: Deployment
1. Which tool can you use to edit domain-wide Group Policy Objects?
7 - 39
Installation and Configuration in Microsoft Dynamics® NAV 2013
4. Which files can be deployed using the Software Installation extension?
( ) *.exe files
( ) *.bat files
( ) *.cmd files
( ) *.pif files
7 - 40