What should you do?

You work as the application developer at Domain.com. Domain.com uses Visual Studio.NET 2005 as its application development platform.
You are developing a .NET Framework 2.0 Windows service application that has three distinct Windows services. You create a custom installation class named
BillAppInstaller which derives from the Installer class.
Within the class you decide to customize installation for each Windows service by using the ServiceInstaller objects and add them to the installer collection below:
Installers.Add(serviceInstaller1)
Installers.Add(serviceInstaller2)
Installers.Add(serviceInstaller3)
You later compile the class and store in a file named BillAppInstaller.dll. You are required to programmatically access and install the Windows services in the BillAppInstaller.dll file.
What should you do?

You work as the application developer at Domain.com. Domain.com uses Visual Studio.NET 2005 as its application development platform.
You are developing a .NET Framework 2.0 Windows service application that has three distinct Windows services. You create a custom installation class named
BillAppInstaller which derives from the Installer class.
Within the class you decide to customize installation for each Windows service by using the ServiceInstaller objects and add them to the installer collection below:
Installers.Add(serviceInstaller1)
Installers.Add(serviceInstaller2)
Installers.Add(serviceInstaller3)
You later compile the class and store in a file named BillAppInstaller.dll. You are required to programmatically access and install the Windows services in the BillAppInstaller.dll file.
What should you do?

A.
Use the ManagedInstallerClass class.

B.
Use the ComponentInstaller class.

C.
Use the InstallContext class.

D.
Use the AssemblyInstaller class.

Explanation:
The AssemblyInstaller class should be used in the scenario because the AssemblyInstaller class is capable of loading available installers in an assembly and install them.
Incorrect Answers:
A: This class should not be used in the scenario as this is not for the .NET Framework internal use.
B: This method is used to install components such as event logs and performance counters and should not be used in the scenario.
C: This class should not be used because by itself the class can not help install the installers in an assembly.



Leave a Reply 1

Your email address will not be published. Required fields are marked *


seenagape

seenagape

I have the same idea. D