How would you ensure that all relevant registry entries were removed in the event that installation of your application failed?

1 Answer

Answer :

You can ensure that registry entries are removed, as well as perform any other “clean-up” tasks, by creating an Installer class and writing the appropriate code in the Rollback event handler. Then create a new Custom Action and set the InstallerClass, and EntryPoint properties to appropriate values.

Related questions

Description : How can you debug failed assembly binds ? 

Last Answer : Answer: Use the Assembly Binding Log Viewer (fuslogvw.exe) to find out the paths searched.

Description : When an aircraft subjected to unlawful interference has landed in a Contracting State, it shall notify by the most expeditious means of the State of Registry and the State of the Operator of the landing and, ... be on board only d. ICAO and each State whose citizens were known to be on board only

Last Answer : a. Each State whose citizens suffered fatalities or injuries, each State whose citizens were detained as hostages, each State whose citizens were known to be on board and ICAO

Description : When an aircraft subjected to unlawful interference has landed in a Contracting State, it shall notify by the most expeditious means of the State of Registry and the State of the Operator of the landing and, ... on board only d. ICAO and each State whose citizens were known to be on board only

Last Answer : a. Each State whose citizens suffered fatalities or injuries, each State whose citizens were detained as hostages, each State whose citizens were known to be on board and ICAO

Description : Describe a general strategy for creating a setup project that terminates installation if a specific file is not already installed on the target machine.

Last Answer : First, create a file search to search the file system for the specific file. Then create a launch condition to evaluate the results of the search. You can connect the launch condition to ... in the search's Property property in the expression specified by the launch condition's Condition property. 

Description : Define what is an event?

Last Answer : An event is an action performed based on another method of the program. An event is a delegate type dass member that is used by an object or a class to provide a notification to other objects that an event has occurred. An event can be declared with the help of the event keyword.

Description : After an act of unlawful interference a report is to be made. When and to whom? a. Within 10 days and to the Authority of the State of Registry b. Immediately and to the Authority of ... d. Without delay, to the designated local authority and the Authority of the State of the Operator

Last Answer : d. Without delay, to the designated local authority and the Authority of the State of the Operator

Description : Which one among the following statements is not correct? The word 'socialist' in the Preamble of the Constitution of India read with - (1) Article 39 (d), would enable the court to uphold the ... under that Article (4) Article 23, would enable the court to reduce inequality in income and status

Last Answer : (4) Article 23, would enable the court to reduce inequality in income and status. Explanation: Traffic in human beings and beggars and other similar forms of forced labour are prohibited and any ... . Thus, the word Socialist in the preamble of the Constitution of India read with Article 23.

Description : What is the purpose of a bootstrapper application? When do you not need to create one?

Last Answer : A bootstrapper application automatically detects if Windows Installer is installed on the target machine. If Windows Installer is not present, it installs Windows Installer before proceeding with the rest ... Installer 1.5 already installed) or have had Microsoft Installer 1.5 installed previously.

Description : What is meant by a SQL injection attack? How can you prevent them from occurring in your application? 

Last Answer : SQL injection attacks occur when a malicious user attempts to execute SQL code by passing a SQL string to the application through user input. You can guard against SQL injection attacks by validating the format of all strings derived from user input that are used to form ad hoc SQL statements.

Description : How do you enable your application to use .NET base class library members without referencing their fully qualified names?

Last Answer : Use the Imports keyword (Visual Basic .NET) or the using keyword (Visual C#) to make a .NET Framework namespace visible to your application. 

Description : How can you tell the application to look for assemblies at the locations other than its own install ?

Last Answer : Answer: Use the directive in the XML .config file for a given application.

Description : What is an application domain ?

Last Answer : An application domain (often AppDomain) is a virtual process that serves to isolate an application. All objects created within the same application scope (in other words, anywhere along the sequence ... (the runtime cannot guarantee isolation when unsafe code is loaded in an application domain).  

Description : What namespaces are necessary to create a localized application? 

Last Answer : System.Globalization and System.Resources.

Description : Can you change the value of a variable while debugging a C# application? 

Last Answer : Yes. If you are debugging via Visual Studio.NET, just go to Immediate window. 

Description : How do you debug an ASP.NET Web application?

Last Answer : Attach the aspnet_wp.exe process to the DbgClr debugger. 

Description : Explain the three services model commonly know as a three-tier application.

Last Answer : Presentation (UI), Business (logic and underlying code) and Data (from storage or other sources).

Description : Write a hello world console application. 

Last Answer : using System; namespace Console1 { class Class1 { [STAThread] // No longer needed static void Main(string[] args) { Console.WriteLine("Hello world"); } } }

Description : What namespaces are necessary to create a localized application?

Last Answer : System.Globalization and System.Resources. 

Description : Can you change the value of a variable while debugging a C# application? 

Last Answer : Yes. If you are debugging via Visual Studio.NET, just go to Immediate window. 

Description : How do you debug an ASP.NET Web application?

Last Answer : Attach the aspnet_wp.exe process to the DbgClr debugger.

Description : Explain the three services model commonly know as a three-tier application.

Last Answer : Presentation (UI), Business (logic and underlying code) and Data (from storage or other sources). 

Description : Define what is the difference between console and window application?

Last Answer : A console application, which is designed to run at the command line with no user interface. A Windows application, which is designed to run on a user’s desktop and has a user interface.

Description : Ahmed is actively initiating a project, so he plans to invite all relevant  internal and external stakeholders including sponsors, customers, project  teams, etc. for a kick-off meeting. To ensure all ... b. Scope statement c. Project charter d. Work packages e. Project funding agents

Last Answer : c. Project charter

Description : The principle professional competence and due care imposes which of the following obligations on professional accountants? a. To maintain professional knowledge and skill at the level required to ensure that a ... , conflict of interest or undue influence of others. d. To be fair and truthful.

Last Answer : To maintain professional knowledge and skill at the level required to ensure that a client or employer receives competent professional service.

Description : Parameters or Registry keys? Which is best to tell an application to do "something" at startup?

Last Answer : The registry is probably the better choice. That's where configuration -type stuff is supposed to go, for one thing, so people are more likely to look for it there. For another, users will sometimes ... to build in some command-line parameters too, in case power users would want to utilize them..)

Description : A Hybrid Vehicle equipped with push button start will enter the power ON mode but will not enter the ready to drive mode .No diagnostic trouble code are stored this could cause by a) The high voltage safety ... removed b) A failed brake on/off switch c) An empty fuel tank d) A disconnect 12v battery

Last Answer : b) A failed brake on/off switch

Description : .In the event a candidate obtains the rating of seventy-five percent (75%) and above in at least a majority of subjects as provided for in RA9298, and one subject has a rating of 64%, ... candidate. c. A successful passer of the CPA Board exams. d. Cannot be determined without additional information

Last Answer : A conditioned candidate

Description : The Three attributes of project risk are _________, ___________ and ___________. 1. What might happen, who it happens to, and how much will it cost  2. Notification, frequency of relevant events, ... planning, total number of risk events 5. Risk event, probability occurrence, the amount at stake

Last Answer : 5. Risk event, probability occurrence, the amount at stake

Description : Acceptance testing means A. Testing performed on a single stand - alone module or unit of code B. Testing after changes have been made to ensure that no unwanted changes were introduced C. ... the needs of the organization and end user. D. Users test the application in the developers environment

Last Answer : C. Testing to ensure that the system meets the needs of the organization and end user.

Description : What si the difference between interface and abstractclass Select Answer:  1. interface contain only methods  2. we can't declare a variable for interface  3. interface contain only events  4. None  5. All

Last Answer : Ans : 2 The only Difference between Interface and Abstract class is we can declare a variable in abstract class but we can't declare in variable interface

Description : What is the lifespan for items stored in ViewState? Select Answer:  1. Item stored in ViewState exist for the life of the current page  2. Item stored in ViewState exist for the life ... of the current Applicaiton  4. Item stored in ViewState exist for the life of the current configuration

Last Answer : 1. Item stored in ViewState exist for the life of the current page AS any web application works on request and response basis ,so on every post backs, The data in control gets lost. To retain page ... control with data. The life cycle of the view state exist for life of current running page only. 

Description : Which one of the following tools is used to view the metadata information contained in a .NET assembly? Select Answer:  1. al.exe  2. ilasm.exe  3. vbx.exe  4. csc.exe  5. ildasm.exe

Last Answer :  5. ildasm.exe

Description : What is a native image? How do you create one?

Last Answer : A native image is a precompiled version of a .NET assembly. You can create a native image of your application by using the Ngen.exe utility.

Description : Describe XCOPY deployment. Under what conditions is it useful? When can it not be used?

Last Answer : XCOPY deployment is a simple method of deployment where the DOS command XCOPY is used to copy the application directory and any subdirectories to the target machine. You can use XCOPY ... an application requires a more complex deployment or references shared assemblies, you cannot use XCOPY.

Description : What is a shared assembly? How would you create one?

Last Answer : An assembly is an assembly of which only a single copy is installed per machine. This copy can be shared by multiple applications. To make an assembly a shared assembly, you must first assign it a strong name, and then install it to the global assembly cache.

Description : Briefly highlight the differences between imperative and declarative security as they pertain to code access security.

Last Answer : Imperative security is implemented by calling methods of Permission objects in code at run time. Declarative security is configured by attaching attributes representing permissions to classes ... request assembly-wide permissions using the Assembly (assembly) directive with declarative security.

Description : Explain how to retrieve information from the configuration file at run time. How would you store information in the configuration file at design time?

Last Answer : You must first create an instance of AppSettingsReader to read the configuration file. You can then call the GetValue method to read values represented in the configuration file. To add configuration ... used to retrieve the entry. The value can be changed between executions of the application.

Description : Describe how to use code to retrieve resources at run time.

Last Answer : You must first create an instance of the ResourceManager class that is associated with the assembly that contains the desired resource. You can then use the GetString method to retrieve string resources or the GetObject method to retrieve object resources.

Description : Describe how to sign your assembly with a strong name. Why would you want to do this?

Last Answer : To sign your assembly with a strong name, you must have access to a key file or create one with the strong name utility (sn.exe). You then specify the key file in the AssemblyInfo file and ... identity, a strong name is required if you want to install your assembly to the Global Assembly Cache.

Description : Explain how to use the PrintPreviewDialog control to display a preview of a printed document before it is printed.

Last Answer : You display a preview of a printed document with the PrintPreviewDialog control by first setting the PrintDocument property of the PrintPreviewDialog instance to the PrintDocument you want to preview, then by calling the PrintPreviewDialog.Show command to display the dialog box. 

Description : Explain the difference between Globalization and Localization.

Last Answer : Globalization refers to the application of culture-specific format to existing data. Localization refers to providing new culture-specific resources and retrieving the appropriate resources based on the culture setting. 

Description : Explain how to convert data in legacy code page formats to the Unicode format.

Last Answer : You can use the Encoding.Convert method to convert data between encoding types. This method requires instances of both encoding types and an array of bytes that represents the data to be converted. ... GetBytes method and can convert an array of bytes back to chars with the Encoding.GetChars method.

Description : Describe how to create localized versions of a form.

Last Answer : To create a localized version of a form, set the Localizable property to true. Then set the Language property to the language/region for which you want to create the localized form. Make ... be stored in resource files and loaded when the CurrentUICulture is set to the appropriate CultureInfo. 

Description : Explain how to use the HelpProvider component to provide help for UI elements.

Last Answer : You can provide either a HelpString or a help topic for UI elements with the HelpProvider. The HelpProvider provides HelpString, HelpKeyWord, and HelpNavigator properties for each control on the form. If ... particular element is displayed when the element has the focus and the F1 key is pressed.

Description : Briefly describe the five accessibility requirements of the Certified for Windows logo program.

Last Answer : The five requirements are o Support standard system settings. This requires your application to be able to conform to system settings for colors, fonts, and other UI elements. o Be ... information by sound alone. This requirement can be met by providing redundant means of conveying information.

Description : Explain how to use the Begin and End methods on a Web Service to make an asynchronous method call.

Last Answer : Every public Web method on a Web Service can be called either synchronously or asynchronously. To make an asynchronous call to a Web method, you call the method named Begin, where is the name of ... returned by Begin. This will allow you to retrieve the actual data returned by the Web method.

Description : Briefly describe how to use the PrintDocument component to print a document. Discuss maintaining correct line spacing and multipage documents.

Last Answer : The PrintDocument class exposes the Print method, which raises the PrintPage event. Code to render printed items to the printer should be placed in the PrintPage event handler. The PrintPage event ... been printed, you must incorporate all logic for printing multiple pages into your event handler.