{"id":3971,"date":"2009-05-26T20:27:00","date_gmt":"2009-05-26T20:27:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/powershell\/2009\/05\/26\/update-typedata-ise-ctp3-vs-ise-rc-and-teched2009-demos\/"},"modified":"2019-02-18T13:12:37","modified_gmt":"2019-02-18T20:12:37","slug":"update-typedata-ise-ctp3-vs-ise-rc-and-teched2009-demos","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/update-typedata-ise-ctp3-vs-ise-rc-and-teched2009-demos\/","title":{"rendered":"Update-TypeData, ISE CTP3 vs ISE RC, and Teched2009 Demos"},"content":{"rendered":"<p>There were quite a few name changes in the ISE Object Model from CTP3 to RC<\/p>\n<p>Using Update-TypeData, we can achieve some parity between the two<\/p>\n<p>We can add aliases to the CTP3 version to make it look like the RC Version<\/p>\n<p>&nbsp;For example,<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Name&gt;System.Management.Automation.Host.PSGHost&lt;\/Name&gt;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Members&gt;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;AliasProperty&gt;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Name&gt;CurrentPowerShellTab&lt;\/Name&gt;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ReferencedMemberName&gt;CurrentOpenedRunspace&lt;\/ReferencedMemberName&gt;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/AliasProperty&gt;<\/p>\n<p>Will make $psISE.CurrentPowerShellTab point to $psISE.CurrentOpenedRunspace<\/p>\n<p>Some are more complex, and we can use ScriptPropery<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ScriptProperty&gt;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Name&gt;AddOnsMenu&lt;\/Name&gt;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;GetScriptBlock&gt;$psISE.CustomMenu&lt;\/GetScriptBlock&gt;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/ScriptProperty&gt;<\/p>\n<p>In this example, $psISE.CurrentPowerShellTab.AddOnsMenu points back to $psISE.CustomMenu<\/p>\n<p>Some things I couldnt proxy, for example, there is no &#8216;Maximized&#8217; state in CTP3<\/p>\n<p>With that, I make it silently ignore the request<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ScriptProperty&gt;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Name&gt;SelectedScriptPaneState&lt;\/Name&gt;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;GetScriptBlock&gt;$null&lt;\/GetScriptBlock&gt;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;SetScriptBlock&gt;$null&lt;\/SetScriptBlock&gt;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/ScriptProperty&gt;<\/p>\n<p>To try Dan and I&#8217;s Tech-ed demos, <a href=\"http:\/\/blogs.msdn.com\/powershell\/archive\/2009\/05\/19\/powershell-session-at-teched-2009.aspx\">http:\/\/blogs.msdn.com\/powershell\/archive\/2009\/05\/19\/powershell-session-at-teched-2009.aspx<\/a>, do<\/p>\n<p>Execute &#8220;Update-TypeData -Append c:\\path\\to\\<span id=\"ctl00_ctl00_TaskRegion_Editor1_serverfilename\">IseRCType.ps1xml&#8221;<\/span><\/p>\n<p><span><\/span><span>Execute &#8220;. c:\\path\\to\\demo\\WindowsPowerShell\\Microsoft.PowerShellISE_profile.ps1&#8221;<\/span><\/p>\n<p><span>It should add Demo items to the menu<\/span><\/p>\n<p><span>Click on any of the menu items to start the&nbsp;demo<\/span><\/p>\n<p><span>I have tried it on an Vista box running CTP3. Some errors are ignorable, YMMV&#8230; Sorry. <\/span><\/p>\n<p><span>For Demo-GUIInstaller, it should open GUIDemo.ps1. Press F7 to move to the next comment, and F5 to run the demo<\/span><\/p>\n<p><span>Hope this helps,<\/span><\/p>\n<p><span>Ibrahim Abdul Rahim<\/span><\/p>\n<p><span>[MSFT]<\/span><\/p>\n<p><a href=\"https:\/\/msdnshared.blob.core.windows.net\/media\/MSDNBlogsFS\/prod.evol.blogs.msdn.com\/CommunityServer.Components.PostAttachments\/00\/09\/64\/29\/78\/IseRCType.ps1xml\">IseRCType.ps1xml<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There were quite a few name changes in the ISE Object Model from CTP3 to RC Using Update-TypeData, we can achieve some parity between the two We can add aliases to the CTP3 version to make it look like the RC Version &nbsp;For example, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Name&gt;System.Management.Automation.Host.PSGHost&lt;\/Name&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Members&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;AliasProperty&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Name&gt;CurrentPowerShellTab&lt;\/Name&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ReferencedMemberName&gt;CurrentOpenedRunspace&lt;\/ReferencedMemberName&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/AliasProperty&gt; Will make $psISE.CurrentPowerShellTab point [&hellip;]<\/p>\n","protected":false},"author":600,"featured_media":13641,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[137,260,327,354,360],"class_list":["post-3971","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell","tag-ctp3","tag-powershell-ise","tag-teched","tag-windows7","tag-wpf"],"acf":[],"blog_post_summary":"<p>There were quite a few name changes in the ISE Object Model from CTP3 to RC Using Update-TypeData, we can achieve some parity between the two We can add aliases to the CTP3 version to make it look like the RC Version &nbsp;For example, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Name&gt;System.Management.Automation.Host.PSGHost&lt;\/Name&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Members&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;AliasProperty&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Name&gt;CurrentPowerShellTab&lt;\/Name&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ReferencedMemberName&gt;CurrentOpenedRunspace&lt;\/ReferencedMemberName&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/AliasProperty&gt; Will make $psISE.CurrentPowerShellTab point [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/3971","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/users\/600"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/comments?post=3971"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/3971\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media\/13641"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media?parent=3971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=3971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=3971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}