{"id":133,"date":"2013-07-03T14:51:00","date_gmt":"2013-07-03T14:51:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/heaths\/2013\/07\/03\/windows-installer-powershell-module-2-2-1-released\/"},"modified":"2019-02-17T15:29:27","modified_gmt":"2019-02-17T22:29:27","slug":"windows-installer-powershell-module-2-2-1-released","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/setup\/windows-installer-powershell-module-2-2-1-released\/","title":{"rendered":"Windows Installer PowerShell Module 2.2.1 Released"},"content":{"rendered":"<p>Yesterday I released servicing update <a href=\"http:\/\/bit.ly\/16gHsOt\">2.2.1<\/a>, which updates 2.2.0 to <a href=\"https:\/\/psmsi.codeplex.com\/workitem\/list\/advanced?keyword=&amp;status=Resolved%7cClosed&amp;type=All&amp;priority=All&amp;release=2.2.1&amp;assignedTo=All&amp;component=All&amp;sortField=LastUpdatedDate&amp;sortDirection=Descending&amp;page=0&amp;reasonClosed=Fixed\">fix a few bugs<\/a> and add a few cool new features:<\/p>\n<ul>\n<li>You can define the <code>[string] $MsiAttributeColumnFormat<\/code> variable to dictate how attribute columns should appear. The values you can pass are the same as the <a href=\"http:\/\/bit.ly\/17UhCnM\">enumeration format strings<\/a>, except that &#8220;G&#8221; displays the culture-invariant decimal value you would see in version 2.2.0 or even in Orca. Changing the display format does not change the underlying value, so bitwise operators like -band still work.<\/li>\n<li>Can&#8217;t remember the standard attribute column enumeration values? I&#8217;ve been working with Windows Installer for about 14 years and only remember a couple myself. But now it&#8217;s a little easier to do by adding another property adapter to standard attribute columns that provide attribute properties in the form:&#8221;Has&#8221; + &lt;attribute enumeration name&gt; (e.g. Component.Attributes.HasRegistryKeyPath). This is also great if you don&#8217;t really get bitwise operators. See <a href=\"http:\/\/bit.ly\/14OrDwM\">this example<\/a> for more detail.<\/li>\n<li>While really a bug fix, I wanted to call out specifically that registry paths should be mapped correctly to PSPath properties whether running under 32- or 64-bit PowerShell. This was a fun problem and I invite you to look at the <a href=\"http:\/\/bit.ly\/11J5PTS\">source code<\/a> for the <code>RegistryView<\/code> class if you&#8217;re interested.<\/li>\n<\/ul>\n<p>Version-specific <a href=\"http:\/\/bit.ly\/1aDBcVx\">documentation<\/a> has been added, but the most significant change to the documentation is the complete overhaul of the <a href=\"http:\/\/bit.ly\/psmsieg\">examples<\/a>. Apart from removing some old examples using deprecated functionality, I organized the examples into different subsections (on separate pages) based on what sort of actions you&#8217;d like to perform. You can suggest any other examples you would like to see &#8211; or any other questions or comments &#8211; on the discussion tab.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yesterday I released servicing update 2.2.1, which updates 2.2.0 to fix a few bugs and add a few cool new features: You can define the [string] $MsiAttributeColumnFormat variable to dictate how attribute columns should appear. The values you can pass are the same as the enumeration format strings, except that &#8220;G&#8221; displays the culture-invariant decimal [&hellip;]<\/p>\n","protected":false},"author":389,"featured_media":3843,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[4,14,20,30,31],"class_list":["post-133","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-64-bit","tag-development","tag-installation","tag-powershell","tag-psmsi"],"acf":[],"blog_post_summary":"<p>Yesterday I released servicing update 2.2.1, which updates 2.2.0 to fix a few bugs and add a few cool new features: You can define the [string] $MsiAttributeColumnFormat variable to dictate how attribute columns should appear. The values you can pass are the same as the enumeration format strings, except that &#8220;G&#8221; displays the culture-invariant decimal [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/posts\/133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/users\/389"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/comments?post=133"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/posts\/133\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/media\/3843"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/media?parent=133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/categories?post=133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/tags?post=133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}