/build/static/layout/Breadcrumb_cap_w.png

Modify (Add/Remove Features) from command line or msi

I am currently deploying an application (Siemens Procenter) and the application comes with two separate features. Manager and Client. I have two transforms to the .msi, one that disables the manager feature (using Install Level) and one that allows the Manager installation.

My question is this. When the Client is installed and then I try and install the manager (using the same MSI and a different transform) the msi installer says product is already installed. It enters maintenance mode, does a few seemingly random things and then exits. The client still works fine... but the manager part does not install. If I enter Add/Remove Programs and select Change->Modify, and then select that feature (Manager) it installs just fine.

My question is, what exactly do I do in the command line or in the transform to get this feature to install correctly? I just want to modify the already installed product to select another feature. For some reason re-running the .msi with another transform (that has manager enabled) doesn't seem to do anything.

Thank you!

0 Comments   [ + ] Show comments

Answers (3)

Posted by: aogilmor 13 years ago
9th Degree Black Belt
3
the command line to add/remove features is,
msiexec /i (guid or msi name) ADDLOCAL=FeatureToInstall REMOVE=FeatureToRemove
if adding or removing more than one feature, it would be a comma delimited list of the features (no spaces)
http://msdn.microsoft.com/en-us/library/aa367536(v=VS.85).aspx
unless I am mistaken entering the transform name won't have any effect since it's going to be re-running and adding/removing features from the already transformed installation on the machine.
Posted by: deranjer 13 years ago
Senior Yellow Belt
0
Great! Thanks, that worked like a charm, now I just need to figure out how to easily add a shortcut to the desktop for it.

unless I am mistaken entering the transform name won't have any effect since it's going to be re-running and adding/removing features from the already transformed installation on the machine.
Yes, that is what I found to be the case. Since it recognizes the GUID as installed, it looks to C:\Windows\Installer\{GUID}\ for the .msi and .mst there.... obviously that won't work...

thanks again for your help.
Posted by: aogilmor 13 years ago
9th Degree Black Belt
0
ORIGINAL: deranjer

Great! Thanks, that worked like a charm, now I just need to figure out how to easily add a shortcut to the desktop for it.


Just make sure your shortcut is associated with a component belonging to the feature you want to install

Yes, that is what I found to be the case.  Since it recognizes the GUID as installed, it looks to C:\Windows\Installer\{GUID}\ for the .msi and .mst there.... obviously that won't work...

thanks again for your help.


you're welcome! here, i work for ratings points (so gimme some) -cheap compared to the real world!
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ