Is it possible to use the Cmdlets on an existing MSI?

Topics: Features
Jul 30, 2012 at 1:00 AM
Edited Jul 30, 2012 at 1:04 AM

Am I missing something here or do these cmdlets only work on the dtabase of installed MSIs? I've read the code, but there might be something I don't know about MSI.

I'd like to add this feature using the WindowsInstaller.Installer.InvokeMethod used in this PoSH script. If you find that acceptable Heath, I will submit a feature request and a patch.

Aug 15, 2012 at 10:22 AM

Currently, all the cmdlets do only work for installed or advertised products. I've been debating about how much of an MSI database to expose to cmdlets because editing MSIs directly is dangerous. Developers really should make any changes to source code (like that from and rebuild.

The provider was more about extracting files, for which there's other ways.

Oct 3, 2013 at 10:16 PM
As of 2.2.0 (and newer), you can select rows from MSI databases and even install, repair, or uninstall MSI products and patches. I hope that is more what you want.
Marked as answer by heaths on 10/3/2013 at 2:16 PM