Latest Application Packaging Interview Questions Part – 3
What Are The Types Of Sequences In The Custom Actions?
Normal User Interface
Normal Execute Immediate / Deferred
Administrative User Interface
Administrative Execute Immediate / Deferred
What Are The Types Of In Script Options In The Custom Actions?
a) Immediate Execution
Immediate custom actions, can be sequenced anywhere within any of the sequence tables. It has access to the installation database (read & set installation properties, modify feature & component states, add temporary columns, rows, and tables).
b) Deferred Execution – User Context
Deferred custom actions can only be sequenced between the Install Initialize and Install Finalize actions in execute sequence tables. It doesn’t have access to the installation database. Deferred custom actions are not executed immediately. Instead they are scheduled to run later during the execution script.
The execution script isn’t processed until the Install Execute, Install Execute Again, or Install Finalize action is run. If the Current User doesn’t have the elevated privileges (Custom actions make changes in the system directly), the custom actions should run in Deferred Execution in User Context only.
c) Rollback only
This Action should be executed during the Installation of the Rollback script or if the Installation is Unsuccessful.
d) Commit only
This Action should be executed during the Installation of the Commit script.
e) Deferred Execution – System Context
Deferred custom actions can only be sequenced between the Install Initialize and Install Finalize actions in execute sequence tables. It doesn’t have access to the installation database. Deferred custom actions are not executed immediately. Instead they are scheduled to run later during the execution script.
The execution script isn’t processed until the Install Execute, Install Execute Again, or Install Finalize action is run. If the Current User have the elevated privileges (Custom actions make changes in the system directly), then it should run in Deferred Execution in System Context only.
What Is The Difference Between “immediate Execute / Deferred Execute”?
Immediate custom actions, can be sequenced anywhere within any of the sequence tables
Deferred custom actions can only be sequenced between the Install Initialize and Install Finalize actions in execute sequence tables
Immediate custom actions have access to the Installation database
Deferred custom actions doesn’t have access to the Installation database
Immediate custom actions can only run in the User Context
Deferred custom actions can run both in the context of the user and elevated using the system context.
What Is The Difference Between “deferred In System Context / Deferred In User Context”?
If the Custom action which installs or modify a file under the INSTALLDIR or Installation should be run in “Deferred in User Context”.
If the Custom action which installs or modify the system file directly should be run in “Deferred Execution in System Context”.
What Are The Types Of Processing Options In The Custom Actions And What Is The Use?
A) Synchronous:
Windows Installer runs the custom action synchronously to the main installation. It waits for the custom action to complete successfully before continuing the main installation.
b) Synchronous, ignore exit code:
Windows Installer runs the custom action synchronously to the main installation. It waits for the custom action to complete before continuing the main installation; the action can be either success or fail.
c) A synch, wait at end of sequence:
Windows Installer runs the custom action simultaneously with the main installation. At the end it waits for the exit code from the custom action before continuing.
d) A synch, no wait:
Windows Installer runs the custom action simultaneously with the main installation. It doesn’t wait for completion of the custom action and doesn’t check the exit code also.
What Are The Types Of Scheduling Options In The Custom Actions And What Is The Use?
Always Execute:
This action execute in all sequences
Run first time:
This action execute only the first time Windows Installer encounters it.
Run once per process:
This action execute only one time either Execute sequence that should not run if the installation is running in silent mode.
Run only if UI sequence was run:
This action execute only if either Execute sequence is run following User Interface sequence.
What Is Launch Condition?
Launch Condition is used to check system requirements on the destination computer.
What Is App Search?
App Search action is used to search for existing versions of products (Files, Registry, INI, Directory & Component)
What Is Isolated Component, Why We Are Using And Its Types?
It means that to prevent overwriting of previous versions of shared components, and ensures that other applications do not overwrite your version of shared components.
a) Manifest file concept
b) Local file concept
What Is The Use Of Msi Assembly Tables?
It is used for the registration of .Net Assembly files
What Is The Latest Version Of Windows Installer?
The latest version of Windows Installer is 4.5
What Is The Latest Version Of Wise Package Studio & Install Shield Admin Studio?
Will change with time.
What Is Conflict Management?
When two or more applications install the same system files (DLLs, .VBXs, and .OCXs), Windows registry, and other items. To detect, Conflict Management should be use and for resolve the software conflicts, Application Isolation concept should be use.
What Are The Types Of Deployment (software Distribution)?
Group policy (Active Directory)
Software Update Services (SUS)
Windows Update Web site
Systems Management service (SMS)
What Is Software Distribution?
One of the more critical aspects to managing a Windows environment is the ability to deploy new applications, updates, upgrades & patches. Distributing new or updated software is called as Software Distribution.
What Is Group Policy (gpo) & How To Set It?
Administrators use Group Policy to define options for managing, configuration of servers, desktops, and groups of users. It is used to set policies across a given site, domain, or range of organizational units. Use “gpedit.msc” in the run command to set the policy.
What Is Elevated User & How To Create It?
If the user having the privileges of MSI features (Windows Installer) is called as Elevated User You can create through “gpedit.msc” in the run Command or registry keys HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsInstaller
Type: DWORD Key: Always Install Elevated Value: 1
What Is Wrapper Msi?
When an Executable is wrapped within an MSI then that msi is called wrapper msi.