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!
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)
Please log in to answer
Posted by:
aogilmor
14 years ago
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.
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
14 years ago
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.
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.
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
14 years ago
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.
so that the conversation will remain readable.