0% found this document useful (0 votes)
48 views3 pages

8component Rules

The document outlines the rules and guidelines for app packaging, including component requirements and shortcut types. It explains the differences between advertised and non-advertised shortcuts, as well as the self-heal and repair mechanisms for applications. Additionally, it details the repair options available through the msiexec command and the use of ActiveSetup for user-based components without advertised entry points.

Uploaded by

Saran Neelam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views3 pages

8component Rules

The document outlines the rules and guidelines for app packaging, including component requirements and shortcut types. It explains the differences between advertised and non-advertised shortcuts, as well as the self-heal and repair mechanisms for applications. Additionally, it details the repair options available through the msiexec command and the use of ActiveSetup for user-based components without advertised entry points.

Uploaded by

Saran Neelam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

For App packaging Training Contact:

+918867632827

Component Rules

 Every component must have key path.


 Every component must not have more than 1 dll(DynamicLinkLibrary) file in one component.
 Every component must not have more than 1 exe file in one component.
 Only one file per component can be the target of a desktop or program menu shortcut.
 Every component must be assigned to feature. (Red Component)

Shortcuts are 2 types:

Advertised Shortcut:

An advertised shortcut (Windows Installer Shortcuts) is a technology specific to Windows Installer.


If you right-click an advertised shortcut the target field will be greyed out. An advertised shortcut
supports advertisement and repair.

Confidential C
For App packaging Training Contact:
+918867632827

Non-Advertised Shortcut:

A non-advertised shortcut (Standard Shortcuts) is a standard windows shortcut. If you right-click it


you will see the target field points to the executable that will be launched. If, for whatever reason,
this executable is missing the application will simply fail.

Selfheal:

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: 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:
Repair of an MSI can be triggered by

1. Repair button in Add/Remove programs


2. Giving the command line msiexec /f{other option} {MSI name}
3. Active setup

Confidential C
For App packaging Training Contact:
+918867632827

Repair Options

msiexec.exe [/f{p|o|e|d|c|a|u|m|s|v}] <product_code>

/f - repair a package

 p - repair only if a file is missing


 o - repair if a file is missing or an older version is installed
 e - repair if file is missing or an equal or older version is installed
 d - repair if a file is missing or a different version is installed
 c - repair if a file is missing or the checksum does not match the calculated value
 a - forces all files to be reinstalled
 u - repair all the required user-specific registry entries
 m - repair all the required computer-specific registry entries
 s - repair all existing shortcuts
 v - run from source and recache the local package

ActiveSetup :

When application doesn’t have advertised shortcut or no entry point with having any user related
data to load then active setup is useful.

Active setup provides a solution when the aim is to deliver user based components when no
advertised entry points exist in an MSI package.

Confidential C

You might also like