Recently Updated Application Packaging Interview Questions
What Is Application Packaging?
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).
What Is 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.
What Are The Steps Of Repackaging?
Review the packaging requirements (User Requirement Review).
Analyze the vendor package (Tech Review).
Repackage the application (Setup capture).
Customize the package (Scripting).
Test the package (Testing & UAT).
Release the package to end users (Deployment).
Why Repackaging Is Required & What Are The Problems In Legacy Installation?
Most common reasons for Re-packaging are as follows:
Customized Installation.
Reduce Support Costs.
Self Repair.
Source Resiliency.
Unattended Install.
The problems with Legacy Installations:
High Support Costs.
Fragile Installs & uninstalls.
Difficult & labor Intensive to deploy.
Name Few Msi Packaging Tools?
Wise for Windows Installer.
Wise Package Studio.
Install Shield.
SMS Installer.
Marimba.
WIX (It cannot be used for re-packaging).
Sharpdevelop.
Visual Studio.
Name Few Msi Re-packaging Tools?
Wise Package Studio
Install Shield
SMS Installer
Marimba.
Name Few Deployment Tools?
Radia
CA DSM
Altiris Client Management Suite
Altiris Notification Server Console
Microsoft Systems Management Server (SMS)
What Is Windows Installer?
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.
Benefits Of The Windows Installer?
Advertising
Installation on Demand
Repair (Self-healing)
Rollback (Transactional operations)
Managed Shared Resources
Msi Installation Mechanism (background Mechanism)?
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.
What Is A Msi?
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.
Structure Of Msi?
Products (Collection of Features)
Features (Collection of Components)
Components (Collection of files and Registries)
What Is 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.
What Is Feature?
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.
What Is Component?
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.
What Is Self-healing?
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.