nerdexam
Microsoft

70-518 · Question #222

You are designing a .NET Framework 4 solution that includes a Windows Presentation Foundation (WPF) application, a Windows service, and a private assembly shared by the WPF application and by the…

The correct answer is B. Install the Windows service to the same folder as the WPF application. D. In the installer, set an environment variable that defines the database installation path. See the full explanation below for the reasoning.

Question

You are designing a .NET Framework 4 solution that includes a Windows Presentation Foundation (WPF) application, a Windows service, and a private assembly shared by the WPF application and by the Windows service. The solution stores data in a local Microsoft SQL Server Compact 3.5 database. The WPF application and Windows service will each access the database directly. The solution will be installed by using Windows Installer. You have the following requirements:

  • The installer must allow users to specify the installation folders

for the WPF application and for the database.

  • The solution must support the deployment of updates to the WPF

application without restarting the Windows service. You need to recommend an approach for installing the solution. Which two actions should you recommend? (Each correct answer presents part of the solution. Choose two.)

Options

  • AInstall the Windows service to a different folder from the WPF application.
  • BInstall the Windows service to the same folder as the WPF application.
  • CIn the installer, create a registry key that stores the WPF application installation path.
  • DIn the installer, set an environment variable that defines the database installation path.

How the community answered

(41 responses)
  • A
    7% (3)
  • B
    76% (31)
  • C
    17% (7)

Community Discussion

No community discussion yet for this question.

Full 70-518 Practice