PrepAway - Latest Free Exam Questions & Answers

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 and are busy writing the following installation code for the Windows service:
Public Class TestServiceInstaller Implemets Installer
‘Additional code to go here
End Class
You are required to install the Windows service and write the values associated with the service in the Windows Registry.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
The Assembly Registration Tool (Regasm.exe) should be used.

B.
The Global Assembly Cache Tool (Gacutil.exe) should be used.

C.
The .NET Services Installation Tool (Regsvcs.exe) should be used.

D.
The Installer Tool (InstallUtil.exe) should be used.

Explanation:
The InstallUtil.exe utility is the correct toll that should be used because it will install the classes in the specified assembly that derive from the installer class and have the RunInstallArttribute attribute set to True.
Incorrect Answers:
A: This tool should not be used in the scenario as this tool registers .Net assemblies so that COM clients can access .NET classes.
B: This tool should not be used as it is used to install and uninstall assemblies from the global assembly cache.
C: This tool should not be considered for usage as the tool is used for installing classes for Enterprise Services.

One Comment on “What should you do?


Leave a Reply