Previous Topic: Product Installation Logged in a FileNext Topic: Interaction Between a Prepif Script and a Response File During Silent Installations


Selective Uninstall Supported

Symptom:

I install a PIF product that contains an external component. Then I install another product by not using the Installer and software delivery. One of the soft links of the latter product points to the external component in the PIF product. As a result, software delivery does not know that this product uses the external component. Is it possible to get a warning that when I remove the external component other products might be disabled, and can I get the option to not removing the external component?

Solution:

Yes, the PIF SDK provides a solution to prevent components from being removed from the target computer. You can add a pre-remove script to the product using the #prerm keyword in the prototype file. This pre-remove script must check whether the component is being used by other products, and exit with a non-zero exit value. Then, the Installer leaves the component unchanged on the computer.