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?

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?

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.



Leave a Reply 1

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


mr_tienvu

mr_tienvu

Correct answer is D