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

Setting Add or Remove Programs option via powershell or command line

Wed Apr 26, 2023 2:31 pm

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: 6542
Joined: Wed Jun 13, 2018 7:49 am

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

Wed Apr 26, 2023 2:58 pm

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: 1035
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

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

Fri Apr 28, 2023 9:33 am

You're always welcome!

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

Return to “Common Problems”