Hi,
when user stops installation in the middle
This scenario is handled automatically by Windows Installer. If an install or uninstall process is stopped while running, Windows Installer will perform a rollback which restores the system to its original state. If you have custom actions which modify the system, they should run as
Deferred and should also have corresponding rollback custom actions. For example, a deferred custom action which creates a registry entry should have a rollback custom action which removes the entry.
or deletes some registry keys before uninstall
This shouldn't affect the uninstall process unless the missing registry entries affect a custom action. If this is the case, your custom action should handle missing registry entries and exit gracefully (use 0 as return code).
Please note that a MSI install or uninstall shouldn't have this type of problems. However, if they occur, usually there is a flaw in the installation configuration.
Regards,
Cosmin
FOLLOW US
Get the latest news in Application Packaging