Welcome to MSDN Blogs Sign in | Join | Help

Introducing Windows Installer PowerShell Extensions

Some time back I mentioned in a comment I was working on some PowerShell extensions for Windows Installer. Actually, it was a long time ago and I've spent more time learning the "ins" and "outs" of PowerShell (mostly the "ins" using .NET Reflector because the documentation needs work) than actually writing anything. Then, of course, there was that little Visual Studio 2005 Service Pack 1 project.

While I am still busy working on things for future releases out of Developer Division and beyond, I want to make this project available and add features to it over time. So, I introduce to you the Windows Installer PowerShell Extensions project on CodePlex. There is no installation package yet as I explore better alternatives to running installutil.exe or implementing similar functionality for use in an in-process custom action, but you can download what I have today and install it yourself using installutil.exe. After installed, start PowerShell and execute the following:

add-pssnapin psmsi

There are two cmdlets currently provided for enumerating installed and advertised product information, and for enumerating applied, superseded, and obsolesced patch information. I have posted some examples and will add more over time. For example, to get the sizes of all applied, superseded, and obsolesced patches, execute the following:

get-msipatchinfo -filter all | get-itemproperty | format-table fullname, lastwritetime, length -autosize

I'd also like to shout out my appreciation to Sara Ford for helping expedite the process of getting this project published on CodePlex.

Published Wednesday, March 14, 2007 1:56 PM by Heath Stewart

Comments

Friday, March 16, 2007 8:29 AM by pshell.info / Windows Installer PowerShell Extensions

# pshell.info / Windows Installer PowerShell Extensions

Saturday, March 31, 2007 11:07 AM by Aaron Stebner's WebLog

# Windows Installer PowerShell extensions project now available on CodePlex

Saturday, March 31, 2007 12:28 PM by RSS It All

# Windows Installer PowerShell extensions project now available on CodePlex

Heath Stewart recently wrote a blog post at http://blogs.msdn.com/heaths/archive/2007/03/14/introducing

Tuesday, April 10, 2007 10:53 AM by Heath Stewart's Blog

# Windows Installer PowerShell Extensions 1.0 Beta Released

I have released Windows Installer PowerShell Extensions 1.0 beta , complete with an installer package.

New Comments to this post are disabled
 
Page view tracker