Hello,
If you want to create a separate package for the printer you can add it as a
prerequisite on both packages. This way the printer will be installed only if it's not already present on the target machine. You can try using the approach from the
Uninstall another MSI when my product is uninstalled how-to, to prompt the user whether to remove the printer prerequisite during any of your product's uninstall or not.
Yet again, referencing your initial post on this thread, to avoid uninstalling the prerequisite if one of your product is installed, you can add a search from the Search page and then include its name in the condition from the above article:
Code: Select all
REMOVE="ALL" AND UNINSTALL_PREREQ="YES" AND YOUR_SEARCH
Each package should search for the other on uninstall and remove the prerequisite accordingly, both having the same prerequisite. Since the user doesn't get a choice if the other product is installed as well, you should condition the user interaction .VBS custom action with:
All the best,
Mihai