PDA

View Full Version : Add Remove Programs - Question



mariusvd
08-23-2002, 03:40 AM
I need to know how to not have my package be made available in the add/remove programs in Control Panel. I don't want users to be able to UnInstall it except for authorized users that will run the .msi file again to remove/repair it.

Thanx:eek:

MarcoHeineck
08-23-2002, 05:27 AM
Hi,

Simply set the ARPSYSTEMCOMPONENT property in the Property table to 1 to avoid showing your program in the user's Add/Remove Programs panel.

You can still repair the application using this command line: msiexec /I [PRODUCTCODE]

Hope this helps,
Marco

rakeshsoni
10-10-2002, 07:40 AM
Great question coupled with great ans!!
I too had the same query but can you tell MarcoHeineck whether I would still be able to uninstall the product by invoking IDriver.exe passing product code as the parameter(as it actually happens)??
Regards,
Rakesh

MarcoHeineck
10-10-2002, 07:50 AM
Sure,

Usually Msiexec.exe \x {PRODUCT_CODE} does the trick.

However this doesn't always remove everything for a standard project, it's better to use the /m switch:

IDriver.exe /M{Your Product GUID}

You can even create an uninstall shortcut for a Standard project this way.

Enjoy,
Marco

rakeshsoni
10-10-2002, 10:29 AM
Thanks a lot...........
You have really made my life easy,
Thanks again,
Rakesh