Preventing deletion of redistributable in C ++

I am using Advanced Installer in my product. as part of the installation, the installer installs the C ++ redistributors required for my product. my question is how to prevent a user from deleting a C ++ redistributable installation in add / remove programs? is it possible to use link counting for third-party products that the installer installs?

+3


source to share


2 answers


Do you consider using merge modules to install your redistributables ? Instead of separate standalone installers. This is also supported by Advanced Installer.



This should prevent them from appearing in the control panel, but they will also be removed along with your application.

+5


source


If you want the user not to uninstall the redistributable installation from Add or Remove Programs, see the MSDN documentation: Configuring Add and Remove Programs with Windows Installer . You can use ARPSYSTEMCOMPONENT propertyto prevent it from spreading in the Add or Remove Programs list in Control Panel. This should hide the redistributable installation, but you can still use Windows Installer to install, uninstall, patch, and reinstall the app. If a user uninstalls your app, it should also be designed to uninstall the redistributable. The recommended alternative to using side-by-side installations is to instead use the setup application and front-end user interface to install multiple Windows Installer packages in sequence.



Note that Microsoft recommends that no one use side-by-side installations to install or update a shipping product. A side-by-side installation installs another Windows Installer package during the current installation.

0


source







All Articles