I need to develop an MSI package with three icons that allows me to do the following in an automated fashion.

Install the application with icon #1, but not icon #2 or icon #3. Later, if the user needs icon #2, I need to be able to add icon #2 without uninstalling and reinstalling the application.

This seems simple enough, but I can't figure it out.

Can someone with more MSI experience help me out?
0 Comments   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


If you are wanting to handle this just from the MSI then you will need to place the icons in different features within the MSI. Like for example, if you install Office, each application is a feature and can be installed or not installed. You can then use the command line switches against the MSI to choose which features to install. But, that does mean using the MSI again but it's more of a repair than an install or uninstall. You would need to see the documentation for the packaging solution you are using on how to add the features. Wise does it in a very simple manner and I imagine most of the other tools are very similar.

Here is what the command line for using features looks like:
msiexec /i MyApp.msi ADDLOCAL="Feature1,Feature2,Feature4"

Generally it is a good idea to see if these types of things can be controlled by a GPO or some kind of group membership script. It makes it easier to install everything before hand and control what they have access to through a group membership that creates the icons and possibly sets permissions as well.

Hope that helps.
Answered 02/10/2006 by: yarborg
Blue Belt

Please log in to comment