Explore topic-wise InterviewSolutions in Current Affairs.

This section includes 7 InterviewSolutions, each offering curated multiple-choice questions to sharpen your Current Affairs knowledge and support exam preparation. Choose a topic below to get started.

1.

How To Give Permission For Files, Folders & Registry Keys In Msi?

Answer»

In the MSI, we can GIVE permissions through Lock Permission table. But using subinacl.exe CUSTOM action is the best WAY to set permissions.

In the MSI, we can give permissions through Lock Permission table. But using subinacl.exe custom action is the best way to set permissions.

2.

Detail The Background Mechanism Of Merge Module?

Answer»

If there are a number of applications that require a specifically configured component, it would be possible to create a merge module that INSTALLS and

CONFIGURES that component. That merge module COULD then be added to the installation packages of each product that REQUIRED that particular component.

This saves the effort of having to individually add the necessary files, registry entries, and other components to EVERY installation. It also saves time if updates are needed, as instead of updating the installations for all five applications, only the merge module is updated, and the installations only need to be rebuilt.

If there are a number of applications that require a specifically configured component, it would be possible to create a merge module that installs and

configures that component. That merge module could then be added to the installation packages of each product that required that particular component.

This saves the effort of having to individually add the necessary files, registry entries, and other components to every installation. It also saves time if updates are needed, as instead of updating the installations for all five applications, only the merge module is updated, and the installations only need to be rebuilt.

3.

Name Few Merge Module Tables?

Answer»
  •  ModuleSignature,
  •  ModuleComponents,
  •  ModuleDependency,
  •  ModuleExclusion,
  •  ModuleIgnore,
  •  ModuleSubstitution,
  •  ModuleAdminUISequence,
  •  ModuleAdminExecuteSequence,
  •  ModuleConfiguration,
  •  ModuleAdvtUISequence,
  •  ModuleAdvtExecuteSequence,
  •  ModuleInstallUISequence,
  •  ModuleInstallExecuteSequence.

4.

What Is Merge Module?

Answer»

Merge modules are a mechanism in Windows Installer that ALLOWS companies to prepackage and share standard COMPONENT definitions. Merge modules are used to deliver shared CODE, files, resources, registry entries and setup logic to APPLICATIONS as a single COMPOUND file.

Merge modules are a mechanism in Windows Installer that allows companies to prepackage and share standard component definitions. Merge modules are used to deliver shared code, files, resources, registry entries and setup logic to applications as a single compound file.

5.

What Is Property & Types Of Properties, Give Some Examples?

Answer»

PROPERTIES are global variables that the Microsoft Windows Installer uses during an installation.

Private: The installer can be use only internally (VALUES can’t be changed during the run time).

Manufacture, ProductCode, ProductID, ProductName, ProductVersion ……

Public: The installer can be uses both internally & externally (values can be changed during the run time also).

INSTALLLEVEL, ….

Restricted Public: The user can’t CHANGE the VALUE both internally & externally due to SECURITY purposes. ALLUSERS, REBOOT, REINSTALLMODE.

Properties are global variables that the Microsoft Windows Installer uses during an installation.

Private: The installer can be use only internally (values can’t be changed during the run time).

Manufacture, ProductCode, ProductID, ProductName, ProductVersion ……

Public: The installer can be uses both internally & externally (values can be changed during the run time also).

INSTALLLEVEL, ….

Restricted Public: The user can’t change the value both internally & externally due to security purposes. ALLUSERS, REBOOT, REINSTALLMODE.

6.

What Is Environment Variable & Its Types?

Answer»

Environment Variables are the variables that are set by the Operating System & Application:

Environment Variables are the variables that are set by the Operating System & Application:

7.

What Is File Association?

Answer»

The Windows operating system recognizes file types and ASSOCIATES them with PROGRAMS based on their file extension. A file that carries no extension or no associated program is called ORPHANED.

The Windows operating system recognizes file types and associates them with programs based on their file extension. A file that carries no extension or no associated program is called Orphaned.

8.

What Is Odbc & Dsn And Its Types?

Answer»

ODBC means OPEN Database Connectivity. The purpose of ODBC is to allow the user to ACCESS data from any APPLICATION. The layer between the application and the DBMS called DSN.

  • SYSTEM DSN (DSN will be available for all USERS)
  • User DSN (DSN will be available for that particular user)

ODBC means Open Database Connectivity. The purpose of ODBC is to allow the user to access data from any application. The layer between the application and the DBMS called DSN.

9.

In The Msi, Which Tables Contain Information About The Service Details?

Answer»

10.

Where Is Service Information Stored?

Answer»

Most of the Service information are STORED under the WINDOWS REGISTRY HIVE “HKLMSystemCurrentControlSetName of the Service”.

Most of the Service information are stored under the windows registry hive “HKLMSystemCurrentControlSetName of the Service”.

11.

What Are Services & Its Types?

Answer»

A windows service is a background PROCESS which is loaded by the Service Control Manager of the OS.

  1. WIN32 Service (Win32 services are the services which is running by the executable file installed by the APPLICATION).
  2. System or KERNEL Services (Kernel services are the services which are used by the OS to communicate to the hardware devices).

A windows service is a background process which is loaded by the Service Control Manager of the OS.

12.

What Are Ini File & Its Format?

Answer»

INI files are plain-text files that CONTAIN configuration INFORMATION. "INI" stands for:

INITIALIZATION.
[SECTION]
Keyname=value.

INI files are plain-text files that contain configuration information. "INI" stands for:

initialization.
[Section]
Keyname=value.

13.

What Are Shortcuts & Types?

Answer»

SHORTCUTS are the entry points to the applications installed on the system which is normally points to a file:

  • ADVERTISED (File should be Installed by the Application).
  • NON Advertised (File that is not part of Installation. It is also called COMMAND Line shortcuts).

 

Shortcuts are the entry points to the applications installed on the system which is normally points to a file:

 

14.

What Is Registry, Tell The Structure & Types Of Registry?

Answer»

The REGISTRY is a single place for storing INFORMATION about the Windows OS (HARDWARE & Software):

  • Root Keys / Subtrees
  • Subkeys
  • Hives
  • Entries

Types of Registry keys:

  1. Machine-Specific (HKCR, HKLM, HKCC, HKU)
  2. User-Specific (HKCU, HKU)

Types of Registry Root keys:

  1. HKEY_CLASS_ROOT (HKCR)
  2. HKEY_LOCAL_MACHINE (HKLM)
  3. HKEY_CURRENT_CONFIG (HKCC)
  4. HKEY_CURRENT_USER (HKCU)
  5. HKEY_USERS (HKU)

The Registry is a single place for storing information about the Windows OS (Hardware & Software):

Types of Registry keys:

Types of Registry Root keys:

15.

What Is The Difference Between Self-healing And Repair?

Answer»

Self Heal and Repair are two different concepts in Windows Installer which people many times consider to be the same thing however there is difference in these two.

Self Heal is triggered by advertised shortcuts, or other advertising information in the package which eventually Repairs the application.

When the application is launched by advertised shortcut, it checks for all the key paths of the Current Feature, if any of the key paths is missing it will launch Repair.

Note that if there are multiple FEATURES then it will not check the missing key paths of the other features, but only the feature of which the advertised shortcut is launched.

Repair of an MSI can be triggered by:

  • Repair button in Add/Remove programs
  • GIVING the COMMAND line msiexec /f{other OPTION} {MSI name}
  • Self Heal by advertised shortcut or other advertising information
  • Active setup

Once the repair of the package is triggered, even with Self Heal, then the whole of the MSI is reinstalled. Then it does not see that only the feature which triggered the self heal should be repaired, but the whole MSI, by which I mean, all its features are reinstalled.

Self Heal and Repair are two different concepts in Windows Installer which people many times consider to be the same thing however there is difference in these two.

Self Heal is triggered by advertised shortcuts, or other advertising information in the package which eventually Repairs the application.

When the application is launched by advertised shortcut, it checks for all the key paths of the Current Feature, if any of the key paths is missing it will launch Repair.

Note that if there are multiple features then it will not check the missing key paths of the other features, but only the feature of which the advertised shortcut is launched.

Repair of an MSI can be triggered by:

Once the repair of the package is triggered, even with Self Heal, then the whole of the MSI is reinstalled. Then it does not see that only the feature which triggered the self heal should be repaired, but the whole MSI, by which I mean, all its features are reinstalled.

16.

What Is Self-healing?

Answer»

When an MSI-based APPLICATION is launched (by clicking on an advertised shortcut or file TYPE association), Windows Installer checks the existence of key path items.

If there is a mismatch between the current SYSTEM state and the value specified in the MSI package (e.g., a key file or REGISTRY is MISSING), then the related feature is reinstalled. This process is also known as self-healing or self-repair.

When an MSI-based application is launched (by clicking on an advertised shortcut or file type association), Windows Installer checks the existence of key path items.

If there is a mismatch between the current system state and the value specified in the MSI package (e.g., a key file or registry is missing), then the related feature is reinstalled. This process is also known as self-healing or self-repair.

17.

What Is Component?

Answer»

Components are collections of resources that are always installed or removed as a unit from a USER's system. A RESOURCE can be a file, registry key, shortcut, or anything else that MAY be installed. Every COMPONENT is assigned a unique component code GUID.

Components are collections of resources that are always installed or removed as a unit from a user's system. A resource can be a file, registry key, shortcut, or anything else that may be installed. Every component is assigned a unique component code GUID.

18.

What Is Feature?

Answer»

Features are buckets for Components. Windows Installer CONFIGURATION commands operate only on Features (INSTALLING, ADVERTISING, UNINSTALLING). Self-healing, installon- demand and user profile fix-up operate at the Feature level.

Features are buckets for Components. Windows Installer configuration commands operate only on Features (installing, advertising, Uninstalling). Self-healing, installon- demand and user profile fix-up operate at the Feature level.

19.

What Is Product?

Answer»

A single, installed, working program (or SET of programs) is a product. A product is identified by a UNIQUE GUID (the ProductCode PROPERTY). A product is not the same as a package: a single MSI package might INSTALL multiple different products. For example, an MSI might install French and English versions of a program, each of which is a different product.

A single, installed, working program (or set of programs) is a product. A product is identified by a unique GUID (the ProductCode property). A product is not the same as a package: a single MSI package might install multiple different products. For example, an MSI might install French and English versions of a program, each of which is a different product.

20.

Structure Of Msi?

Answer»

21.

What Is A Msi?

Answer»

MSI is “Microsoft WINDOWS Installer”. It is an installation, in the form of a single file. It is actually a database that contains several tables (80+). Each of these tables contains INSTRUCTIONS and set-up INFORMATION.

MSI is “Microsoft Windows Installer”. It is an installation, in the form of a single file. It is actually a database that contains several tables (80+). Each of these tables contains instructions and set-up information.

22.

Msi Installation Mechanism (background Mechanism)?

Answer»

Acquisition: The Installer first installs the feature and then progresses through the actions SPECIFIED in the sequence tables of the installation database. These actions query the installation database and generate a script that gives a step-by-step procedure for performing the installation.

Execution: The installer passes the information to a process with elevated privileges and runs the script.

Rollback: If an installation is unsuccessful, the installer restores the ORIGINAL state of the computer. When the installer processes the installation script, it SIMULTANEOUSLY generates a rollback script. In addition to the rollback script, the installer saves a COPY of every file it deletes during the installation. These FILES are kept in a hidden,system directory. Once the installation is complete, the rollback script and the saved files are deleted.

Acquisition: The Installer first installs the feature and then progresses through the actions specified in the sequence tables of the installation database. These actions query the installation database and generate a script that gives a step-by-step procedure for performing the installation.

Execution: The installer passes the information to a process with elevated privileges and runs the script.

Rollback: If an installation is unsuccessful, the installer restores the original state of the computer. When the installer processes the installation script, it simultaneously generates a rollback script. In addition to the rollback script, the installer saves a copy of every file it deletes during the installation. These files are kept in a hidden,system directory. Once the installation is complete, the rollback script and the saved files are deleted.

23.

Benefits Of The Windows Installer?

Answer»

24.

What Is Windows Installer?

Answer»

Windows Installer (previously known as Microsoft Installer) is a built-in Operating System service for Installing and Managing Applications. It provides a standard method for developing, customizing, installing and updating applications. It is an ENGINE for the INSTALLATION, maintenance, and removal of software on modern Microsoft Windows systems. The installation information, and often the FILES themselves, are packaged in installation packages, loosely relational databases structured as OLE COM Structured Storages and COMMONLY known as “MSI files”, from their default file extension. Windows Installer contains significant changes from its predecessor, Setup API.

New features include a GUI framework and automatic generation of the uninstallation sequence. It is POSITIONED as an alternative to stand-alone executable installer frameworks such as older versions of InstallShield and Wise Package Studio (later versions of both supports Windows Installer) and NSIS.

Windows Installer (previously known as Microsoft Installer) is a built-in Operating System service for Installing and Managing Applications. It provides a standard method for developing, customizing, installing and updating applications. It is an engine for the installation, maintenance, and removal of software on modern Microsoft Windows systems. The installation information, and often the files themselves, are packaged in installation packages, loosely relational databases structured as OLE COM Structured Storages and commonly known as “MSI files”, from their default file extension. Windows Installer contains significant changes from its predecessor, Setup API.

New features include a GUI framework and automatic generation of the uninstallation sequence. It is positioned as an alternative to stand-alone executable installer frameworks such as older versions of InstallShield and Wise Package Studio (later versions of both supports Windows Installer) and NSIS.

25.

Name Few Deployment Tools?

Answer»

26.

Name Few Msi Re-packaging Tools?

Answer»
  1. Wise Package STUDIO
  2. Install Shield
  3. SMS INSTALLER
  4. MARIMBA.

27.

Name Few Msi Packaging Tools?

Answer»
  1. WISE for Windows Installer.
  2. Wise Package Studio.
  3. Install Shield.
  4. SMS Installer.
  5. Marimba.
  6. WIX (It cannot be USED for re-packaging).
  7. SHARPDEVELOP.
  8. Visual Studio.

28.

Why Repackaging Is Required & What Are The Problems In Legacy Installation?

Answer»

Most common reasons for Re-packaging are as FOLLOWS:

  1. Customized Installation.
  2. Reduce Support COSTS.
  3. Self REPAIR.
  4. SOURCE Resiliency.
  5. Unattended Install.

The problems with Legacy Installations:

  1. High Support Costs.
  2. Fragile Installs & uninstalls.
  3. Difficult & labor Intensive to deploy.

Most common reasons for Re-packaging are as follows:

The problems with Legacy Installations:

29.

What Are The Steps Of Repackaging?

Answer»
  1. Review the packaging REQUIREMENTS (User REQUIREMENT Review).
  2. Analyze the vendor package (TECH Review).
  3. Repackage the application (Setup capture).
  4. Customize the package (Scripting).
  5. Test the package (Testing & UAT).
  6. Release the package to END USERS (Deployment).

30.

What Is Application Repackaging?

Answer»

REPACKAGING (Customized Installation) is the process of capturing the changes made by an Installation Program (PACKAGE) and it is customized to support company STANDARDS and distribution METHODS.

It is not necessary to do setup capture to CALL it repackaging, even creating must files or is files can be called application repackaging.

Repackaging (Customized Installation) is the process of capturing the changes made by an Installation Program (Package) and it is customized to support company standards and distribution methods.

It is not necessary to do setup capture to call it repackaging, even creating must files or is files can be called application repackaging.

31.

What Is Application Packaging?

Answer»

Process of creating an installer for an application is CALLED application packaging. Usually in it binary files provided by developers are packaged to FORM a PACKAGE. The Main difference between packaging and re-packaging is that the source files does not COME in the form of package in packaging where as in re-packaging they come in a form of a package, which might be MSI or legacy package (such as EXECUTABLE, batch files, etc).

Process of creating an installer for an application is called application packaging. Usually in it binary files provided by developers are packaged to form a package. The Main difference between packaging and re-packaging is that the source files does not come in the form of package in packaging where as in re-packaging they come in a form of a package, which might be MSI or legacy package (such as executable, batch files, etc).