Move storage group path validating the destination file paths

21 Jun

As a design feature, if applied correctly this mechanism will also roll back a failed uninstall of an application to a good working state.

Windows Installer can advertise a product rather than actually install it.

) is a software component and application programming interface (API) of Microsoft Windows used for the installation, maintenance, and removal of software.

The installation information, and optionally the files themselves, are packaged in installation packages, loosely relational databases structured as COM Structured Storages and commonly known as "MSI files", from their default filename extensions.

The Execute phase makes system changes, but it does not display any user interface elements.

The Execute phase happens in two steps: In other words, for each operation that Windows Installer performs, it generates an equivalent undo operation that would revert the change made to the system.

A package describes the installation of one or more full products and is universally identified by a GUID.

The user does not directly interact with components.

When an MSI-based program is launched, Windows Installer checks the existence of key paths.

If there is a mismatch between the current system state and the value specified in the MSI package (e.g., a key file is missing), the related feature is re-installed.

The product will appear installed to the user, but it will not actually be installed until it is run for the first time by triggering an entry point (by means of a Start menu shortcut, by opening a document that the product is configured to handle, or by invoking an advertised COM class).

A package can be advertised by an administrator using Group Policy or other deployment mechanism, or by running the msiexec executable with the /jm (for per-machine advertisement) or /ju (for per-user advertisement) switch.