sookeke
Posts: 9
Joined: Wed Apr 12, 2023 4:35 pm

Setting Add or Remove Programs option via powershell or command line

We have a requirement to disable the remove option for an MSI or possibly don’t show it in the list of control panels. We can achieve this using the UI and changing these options in the Product detail. My question is how do we accomplish the same using PowerShell or automated scripting as we are currently using AI in our CI pipeline build process?

Note these MSI we want to edit are not built with AI tool
Catalin
Posts: 6582
Joined: Wed Jun 13, 2018 7:49 am

Re: Setting Add or Remove Programs option via powershell or command line

Hello,

For this, you do not need to modify the MSI file itself.

You can simply run the MSI and passing the ARPSYSTEMCOMPONENT property with a value of "1" in the command line, e.g.:

Code: Select all

msiexec /i <path_to_msi> ARPSYSTEMCOMPONENT=1
This should prevent the MSI from appearing into the Control Panel.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Liviu
Posts: 1042
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Setting Add or Remove Programs option via powershell or command line

You're always welcome!

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”