<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Gadget Corner</title><link>http://blogs.msdn.com/sidebar/default.aspx</link><description>Posts from the Windows Sidebar team, with gadget authoring tips, links to gadget information, and news about our platform. </description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Gadget security guide</title><link>http://blogs.msdn.com/sidebar/archive/2007/07/31/gadget-security-guide.aspx</link><pubDate>Wed, 01 Aug 2007 08:52:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4161151</guid><dc:creator>sbblog@microsoft.com</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/sidebar/comments/4161151.aspx</comments><wfw:commentRss>http://blogs.msdn.com/sidebar/commentrss.aspx?PostID=4161151</wfw:commentRss><description>Check out Michael Howard's and Dave Ross'&amp;nbsp;nice article on how to write a more secure gadget at &lt;A href="http://msdn2.microsoft.com/en-us/library/bb498012.aspx"&gt;http://msdn2.microsoft.com/en-us/library/bb498012.aspx&lt;/A&gt;.&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4161151" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/sidebar/archive/tags/sidebar+gadget+security/default.aspx">sidebar gadget security</category></item><item><title>Swiss gadget development competition</title><link>http://blogs.msdn.com/sidebar/archive/2007/04/18/swiss-gadget-development-competition.aspx</link><pubDate>Wed, 18 Apr 2007 18:37:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2176603</guid><dc:creator>sbblog@microsoft.com</dc:creator><slash:comments>5</slash:comments><comments>http://blogs.msdn.com/sidebar/comments/2176603.aspx</comments><wfw:commentRss>http://blogs.msdn.com/sidebar/commentrss.aspx?PostID=2176603</wfw:commentRss><description>&lt;P&gt;Our friends in Switzerland are hosting a gadget development competition. Here are some highlights:&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"&gt;What is the Swiss Gadget Competition about?&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"&gt;Contestants develop their own Windows Live or Vista Sidebar Gadget to become the Swiss Gadget Champion 2007. They will not only compete with Swiss developers, but their gadget will also be presented to the rest of the world.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"&gt;How is it set up?&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"&gt;The competition is set up in two phases:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;U&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"&gt;Phase 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"&gt;From now till 31 May 2007: Developers design their gadgets to take part in the competition.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;U&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"&gt;Phase 2&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"&gt;1 June till 15 June: Public voting. Any Swiss user may vote for their favorite gadget.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"&gt;How does public voting work?&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;U&gt;&lt;SPAN lang=DE-CH style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'; mso-ansi-language: DE-CH"&gt;Criteria&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/U&gt;&lt;/P&gt;
&lt;OL style="MARGIN-TOP: 0in" type=1&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l2 level1 lfo1"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;Number of votes, weighing 30% of total score&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l2 level1 lfo1"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;Average gadget score based on customer’s votes, weighing 70% of total score&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;U&gt;&lt;SPAN lang=DE-CH style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'; mso-ansi-language: DE-CH"&gt;Examples&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/U&gt;&lt;/P&gt;
&lt;OL style="MARGIN-TOP: 0in" type=1&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo2"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;Number of votes: The gadget with the highest number of total votes gets 5 points. All other gadgets are valued in relation to the highest number of votes (5000 votes = 5 points, 3’000 votes = 3 points, 100 votes = 0,1 points)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo2"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;Average gadget score: User give scores between 1 to 5 (5 = excellent, 1 = poor). Only full points can be given. The total number of points divided by the number of votes = average score.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;U&gt;&lt;SPAN lang=DE-CH style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'; mso-ansi-language: DE-CH"&gt;Final score&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"&gt;Both results are added, based on their weighing. Should the total score be equal&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL style="MARGIN-TOP: 0in" type=1&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l3 level1 lfo3"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;The contestant with the higher average gadget score wins&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l3 level1 lfo3"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;Should both criteria be equal, the winner will be elected by a lucky draw&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"&gt;Prizes for developers&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;
&lt;UL style="MARGIN-TOP: 0in" type=disc&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l1 level1 lfo4; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;1st prize: Fly to the Professional Developers Conference 2007. The prize includes admission, flight in Economy Class and hotel accommodation during PDC. &lt;/SPAN&gt;&lt;SPAN lang=DE-CH style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: DE-CH"&gt;Value: approx 3‘500 US Dollars.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l1 level1 lfo4; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;2nd prize: One Toshiba Flat Screen TV (82 cm, HD-ready, HDMI Digital Input und Active Vision III Plus). &lt;/SPAN&gt;&lt;SPAN lang=DE-CH style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: DE-CH"&gt;Value: 1’300 US Dollars&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l1 level1 lfo4; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;3rd prize: One Windows Vista Ultimate Edition (Full version)&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"&gt;URL&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"&gt;All information is available in German and French on &lt;A href="http://www.gadgetcompetition.ch/"&gt;&lt;FONT color=#0000ff&gt;www.gadgetcompetition.ch&lt;/FONT&gt;&lt;/A&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=2176603" width="1" height="1"&gt;</description></item><item><title>Pre-configuration of Sidebar Gadgets using unattend.xml</title><link>http://blogs.msdn.com/sidebar/archive/2007/03/08/pre-configuration-of-sidebar-gadgets-using-unattend-xml.aspx</link><pubDate>Fri, 09 Mar 2007 00:28:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1839499</guid><dc:creator>sbblog@microsoft.com</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/sidebar/comments/1839499.aspx</comments><wfw:commentRss>http://blogs.msdn.com/sidebar/commentrss.aspx?PostID=1839499</wfw:commentRss><description>&lt;P&gt;We’ve heard from several OEMs who are having trouble pre-configuring Sidebar gadgets using the Sidebar unattend settings. We will explain in more detail how these settings work.&lt;/P&gt;
&lt;P&gt;First, the Sidebar unattend settings are overrides for the default gadget settings. To determine what the default Sidebar gadget settings are, you can examine the “%programfiles%\Windows Sidebar\settings.ini” file. The default settings.ini file that shipped with Vista contains the following information (note that this can change between versions of Windows): &lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;[Root]&lt;BR&gt;SettingsVersion=00.00.00.01&lt;BR&gt;SidebarShowState=Imploded&lt;BR&gt;SidebarDockedPartsOrder=0x1,0x2,0x3,&lt;BR&gt;Section0=1&lt;BR&gt;Section1=2&lt;BR&gt;Section2=3&lt;BR&gt;[Section 1]&lt;BR&gt;PrivateSetting_GadgetName=%PROGRAMFILES%\windows sidebar\gadgets\Clock.gadget&lt;BR&gt;PrivateSetting_Enabled=true&lt;BR&gt;[Section 2]&lt;BR&gt;PrivateSetting_GadgetName=%PROGRAMFILES%\windows sidebar\gadgets\SlideShow.Gadget&lt;BR&gt;PrivateSetting_Enabled=true&lt;BR&gt;[Section 3]&lt;BR&gt;PrivateSetting_GadgetName=%PROGRAMFILES%\windows sidebar\gadgets\RSSFeeds.Gadget&lt;BR&gt;PrivateSetting_Enabled=true&lt;BR&gt;loadFirstTime=defaultGadget&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;As you can see, the default settings indicate that Sidebar should be on by default and that the Clock, SlideShow and RSSFeeds gadgets are loaded. &lt;/P&gt;
&lt;P&gt;The unattend.xml file can be used by OEMs and Corporations to override certain default properties of Windows components, including Sidebar, during Windows setup. Using the unattend.xml file, OEMs and Corporations my override the following Sidebar default settings:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Whether Sidebar is on by default when Windows boots&lt;/LI&gt;
&lt;LI&gt;Whether Sidebar is visible by default when it is running&lt;/LI&gt;
&lt;LI&gt;Control up to five default gadgets&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Whether Sidebar starts when Windows boots is controlled by the “SidebarOnByDefault” unattend value. Whether Sidebar is visible by default when it runs is controlled by the “SidebarVisible” unattent setting. To have Sidebar not start by default when Windows load, you would add the following to your unattend.xml: &lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;UNATTEND xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"&gt;&lt;SETTINGS pass="oobeSystem"&gt;&lt;component language=neutral processorArchitecture="x86" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" name="Microsoft-Windows-Sidebar"&gt;&lt;SIDEBARONBYDEFAULT&gt;&lt;/component&gt;&amp;lt;unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;settings pass="oobeSystem"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;component name="Microsoft-Windows-Sidebar" publicKeyToken="31bf3856ad364e35" language="neutral"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; versionScope="nonSxS" processorArchitecture="x86"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;SidebarOnByDefault&amp;gt;false&amp;lt;/SidebarOnByDefault&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/component&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/settings&amp;gt;&lt;BR&gt;&amp;lt;/unattend&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;/SETTINGS&gt;&lt;/UNATTEND&gt;To have Sidebar start when Windows is booted but not be visible by default, you would add the following to your unattend.xml file: &lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;component language=neutral processorArchitecture="x86" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" name="Microsoft-Windows-Sidebar"&gt;&amp;lt;unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;settings pass="oobeSystem"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;component name="Microsoft-Windows-Sidebar" publicKeyToken="31bf3856ad364e35" language="neutral"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; versionScope="nonSxS" processorArchitecture="x86"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;SidebarVisible&amp;gt;false&amp;lt;/SidebarVisible&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;SidebarOnByDefault&amp;gt;true&amp;lt;/SidebarOnByDefault&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/component&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/settings&amp;gt;&lt;BR&gt;&amp;lt;/unattend&amp;gt;&lt;/component&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;/SETTINGS&gt;&lt;/UNATTEND&gt;To use the Gadget settings, you need the information from the default settings.ini file. It’s also best to think of the Gadget settings as slots to hold up to five gadgets. Each slot (Gadget1,…, Gadget5) contains two pieces of information; the path of a preinstalled gadget and whether that gadget is enabled (true) or disabled (false). These five gadget slots override the settings in the default settings.ini file (which controls which gadgets start by default). Let’s consider a few examples. &lt;/P&gt;
&lt;P&gt;Example 1. Suppose you want to have Clock, SlideShow, RSSFreeds and your own custom preinstalled Foo gadget to load in that order. Since Clock, SlideShow, and RSSFeeds are already the default gadgets that load (and in that order) for Vista, you could just add the following to unattend.xml: &lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;UNATTEND xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"&gt;&lt;SETTINGS pass="oobeSystem"&gt;&lt;component language=neutral processorArchitecture="x86" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" name="Microsoft-Windows-Sidebar"&gt;&lt;SIDEBARVISIBLE&gt;&lt;/component&gt;&amp;lt;unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;settings pass="oobeSystem"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;component name="Microsoft-Windows-Sidebar" publicKeyToken="31bf3856ad364e35" language="neutral"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; versionScope="nonSxS" processorArchitecture="x86"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;SidebarVisible&amp;gt;true&amp;lt;/SidebarVisible&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;SidebarOnByDefault&amp;gt;true&amp;lt;/SidebarOnByDefault&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Gadget4&amp;gt;%PROGRAMFILES%\windows sidebar\gadgets\Foo.Gadget,true&amp;lt;/Gadget4&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/component&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/settings&amp;gt;&lt;BR&gt;&amp;lt;/unattend&amp;gt;&lt;BR&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;/SETTINGS&gt;&lt;/UNATTEND&gt;However, it’s best to avoid dependencies on the default values in settings.ini as much as possible since those could change in later versions of the operating system. You could accomplish the same thing in a safer way by adding the following to unattend.xml: &lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR&gt;&amp;lt;unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;settings pass="oobeSystem"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;component name="Microsoft-Windows-Sidebar" publicKeyToken="31bf3856ad364e35" language="neutral"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; versionScope="nonSxS" processorArchitecture="x86"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;SidebarVisible&amp;gt;true&amp;lt;/SidebarVisible&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;SidebarOnByDefault&amp;gt;true&amp;lt;/SidebarOnByDefault&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Gadget1&amp;gt;%PROGRAMFILES%\windows sidebar\gadgets\SlideShow.gadget,true&amp;lt;/Gadget1&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Gadget2&amp;gt;%PROGRAMFILES%\windows sidebar\gadgets\Clock.Gadget,true&amp;lt;/Gadget2&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Gadget3&amp;gt;%PROGRAMFILES%\windows sidebar\gadgets\RSSFeeds.Gadget,true&amp;lt;/Gadget3&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Gadget4&amp;gt;%PROGRAMFILES%\windows sidebar\gadgets\Foo.Gadget,true&amp;lt;/Gadget4&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/component&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/settings&amp;gt;&lt;BR&gt;&amp;lt;/unattend&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Example 2: Now suppose you wanted only your Foo gadget to load. In this case, if you just add a Gadget4 setting for Foo.Gadget, you will still have SlideShow, Clock and RSS starting since the unattend settings are just overrides (nothing has overridden the first three slots). There is no way to explicitly remove a gadget entry using the unattend.xml file, but you can disable a default gadget. So, to have only Foo load by default, you could add the following to unattend.xml: &lt;SIDEBARVISIBLE&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&amp;lt;unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;settings pass="oobeSystem"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;component name="Microsoft-Windows-Sidebar" publicKeyToken="31bf3856ad364e35" language="neutral"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; versionScope="nonSxS" processorArchitecture="x86"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;SidebarVisible&amp;gt;true&amp;lt;/SidebarVisible&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;SidebarOnByDefault&amp;gt;true&amp;lt;/SidebarOnByDefault&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Gadget1&amp;gt;%PROGRAMFILES%\windows sidebar\gadgets\SlideShow.gadget,false&amp;lt;/Gadget1&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Gadget2&amp;gt;%PROGRAMFILES%\windows sidebar\gadgets\Clock.Gadget,false&amp;lt;/Gadget2&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Gadget3&amp;gt;%PROGRAMFILES%\windows sidebar\gadgets\RSSFeeds.Gadget,false&amp;lt;/Gadget3&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Gadget4&amp;gt;%PROGRAMFILES%\windows sidebar\gadgets\Foo.Gadget,true&amp;lt;/Gadget4&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/component&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/settings&amp;gt;&lt;BR&gt;&amp;lt;/unattend&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In the above case, we just disabled the three existing gadgets and added a new entry for Foo. Another way to accomplish that could be to replace the slot 1 gadget with Foo and disable the other two slots, like so: &lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&amp;lt;unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;settings pass="oobeSystem"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;component name="Microsoft-Windows-Sidebar" publicKeyToken="31bf3856ad364e35" language="neutral"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; versionScope="nonSxS" processorArchitecture="x86"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;SidebarVisible&amp;gt;true&amp;lt;/SidebarVisible&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;SidebarOnByDefault&amp;gt;true&amp;lt;/SidebarOnByDefault&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Gadget1&amp;gt;%PROGRAMFILES%\windows sidebar\gadgets\Foo.gadget,true&amp;lt;/Gadget1&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Gadget2&amp;gt;%PROGRAMFILES%\windows sidebar\gadgets\Clock.Gadget,false&amp;lt;/Gadget2&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Gadget3&amp;gt;%PROGRAMFILES%\windows sidebar\gadgets\RSSFeeds.Gadget,false&amp;lt;/Gadget3&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/component&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/settings&amp;gt;&lt;BR&gt;&amp;lt;/unattend&amp;gt;&lt;/SETTINGS&gt;&lt;/UNATTEND&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Example 3: Finally, let’s say you want to have three instances of Clock start up and then two instance of SlideShow. &lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&amp;lt;unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;settings pass="oobeSystem"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;component name="Microsoft-Windows-Sidebar" publicKeyToken="31bf3856ad364e35" language="neutral"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; versionScope="nonSxS" processorArchitecture="x86"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;SidebarVisible&amp;gt;true&amp;lt;/SidebarVisible&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;SidebarOnByDefault&amp;gt;true&amp;lt;/SidebarOnByDefault&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Gadget1&amp;gt;%PROGRAMFILES%\windows sidebar\gadgets\Clock.gadget,true&amp;lt;/Gadget1&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Gadget2&amp;gt;%PROGRAMFILES%\windows sidebar\gadgets\Clock.Gadget,true&amp;lt;/Gadget2&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Gadget3&amp;gt;%PROGRAMFILES%\windows sidebar\gadgets\Clock.Gadget,true&amp;lt;/Gadget3&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Gadget4&amp;gt;%PROGRAMFILES%\windows sidebar\gadgets\SlideShow.Gadget,true&amp;lt;/Gadget4&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Gadget5&amp;gt;%PROGRAMFILES%\windows sidebar\gadgets\SlideShow.Gadget,true&amp;lt;/Gadget5&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/component&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/settings&amp;gt;&lt;BR&gt;&amp;lt;/unattend&amp;gt;&lt;/SETTINGS&gt;&lt;/UNATTEND&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Note that configuration of a gadget (beyond whether it’s enabled or disabled) is not supported via the unattend.xml file at this time. &lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1839499" width="1" height="1"&gt;</description></item><item><title>Windows Live gadgets for Sidebar</title><link>http://blogs.msdn.com/sidebar/archive/2007/03/07/windows-live-gadgets-for-sidebar.aspx</link><pubDate>Wed, 07 Mar 2007 23:07:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1830367</guid><dc:creator>sbblog@microsoft.com</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/sidebar/comments/1830367.aspx</comments><wfw:commentRss>http://blogs.msdn.com/sidebar/commentrss.aspx?PostID=1830367</wfw:commentRss><description>&lt;P&gt;Windows Live released two gadgets that really showcase some Windows Live services, as well as being terrific examples of how to give users quick access to lots of data in a Sidebar gadget.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Live Search Gadget&lt;/STRONG&gt; - &lt;A class="" title="Live Search Gadget" href="http://gallery.live.com/liveItemDetail.aspx?li=79bb78b3-2064-4575-97ea-d36e5d37ee4a" mce_href="http://gallery.live.com/liveItemDetail.aspx?li=79bb78b3-2064-4575-97ea-d36e5d37ee4a"&gt;download&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;IMG title="Live Search Gadget" style="WIDTH: 135px; HEIGHT: 37px" height=37 alt="Live Search Gadget" src="http://blogs.msdn.com/photos/sbblogmicrosoftcom/images/1830413/original.aspx" width=135 mce_src="http://blogs.msdn.com/photos/sbblogmicrosoftcom/images/1830413/original.aspx"&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Live Search Traffic Gadget&lt;/STRONG&gt; - &lt;A class="" title="Live Search Traffic Gadget" href="http://gallery.live.com/liveItemDetail.aspx?li=d5ad423c-05bd-4de4-8803-b05ecc339397&amp;amp;l=1" mce_href="http://gallery.live.com/liveItemDetail.aspx?li=d5ad423c-05bd-4de4-8803-b05ecc339397&amp;amp;l=1"&gt;download&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="Live Search Traffic" style="WIDTH: 131px; HEIGHT: 175px" height=175 alt="Live Search Traffic" src="http://blogs.msdn.com/photos/sbblogmicrosoftcom/images/1830416/original.aspx" width=131 mce_src="http://blogs.msdn.com/photos/sbblogmicrosoftcom/images/1830416/original.aspx"&gt;&lt;/P&gt;
&lt;P&gt;Definitely head over to the Windows Live Gallery and check them out!&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1830367" width="1" height="1"&gt;</description></item><item><title>Tips for writing Sidebar gadgets with SideShow functionality</title><link>http://blogs.msdn.com/sidebar/archive/2007/03/02/tips-for-writing-sidebar-gadgets-with-sideshow-functionality.aspx</link><pubDate>Fri, 02 Mar 2007 23:29:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1789876</guid><dc:creator>sbblog@microsoft.com</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/sidebar/comments/1789876.aspx</comments><wfw:commentRss>http://blogs.msdn.com/sidebar/commentrss.aspx?PostID=1789876</wfw:commentRss><description>&lt;P&gt;Here's a few tips for developers writing Sidebar gadgets that interact with Sideshow (the Windows Vista support for auxiliary displays): &lt;/P&gt;
&lt;P&gt;Early versions of the Sidebar/Sideshow documentation incorrectly refers to the enabled method as a property. The following code snippet demonstrates how to determine in your gadget whether Sideshow is available using the enabled method: &lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;CODE&gt;var sideshowEnabled = System.Gadget.SideShow.enabled();&lt;BR&gt;…&lt;BR&gt;if (sideshowEnabled) {&lt;BR&gt;….&lt;BR&gt;}&lt;/CODE&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Also note that the enabled method reports whether Sideshow is supported on that operating system, not whether a Sideshow device is currently available. Thus, it always reports “true” on Windows Vista.&lt;/P&gt;
&lt;P&gt;The applicationEvent feature is not fully supported on the currently shipping version of Sidebar and should generally not be used.&lt;/P&gt;
&lt;P&gt;You can update content using repeated calls to addText/addImage with the same id value. We recommend that you call remove before updating the content for a given id, otherwise the script may suffer from a memory leak. &lt;/P&gt;
&lt;P&gt;Instead of this:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;CODE&gt;…&lt;BR&gt;System.Gadget.SideShow.addText(100, originalContent);&lt;BR&gt;….&lt;BR&gt;System.Gadget.SideShow.addText(100, newContent);&lt;/CODE&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;Do this: &lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;CODE&gt;…. &lt;BR&gt;System.Gadget.SideShow.addText(100, originalContent); &lt;BR&gt;…. &lt;BR&gt;System.Gadget.SideShow.remove(100); &lt;BR&gt;System.Gadget.SideShow.addText(100, newContent); &lt;BR&gt;… &lt;/CODE&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Thanks,&lt;BR&gt;Paula Tomlinson&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1789876" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/sidebar/archive/tags/gadgets/default.aspx">gadgets</category><category domain="http://blogs.msdn.com/sidebar/archive/tags/sidebar/default.aspx">sidebar</category></item><item><title>Embedded ActiveX objects and x64</title><link>http://blogs.msdn.com/sidebar/archive/2007/01/26/embedded-activex-objects-and-x64.aspx</link><pubDate>Fri, 26 Jan 2007 22:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1537845</guid><dc:creator>sbblog@microsoft.com</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/sidebar/comments/1537845.aspx</comments><wfw:commentRss>http://blogs.msdn.com/sidebar/commentrss.aspx?PostID=1537845</wfw:commentRss><description>&lt;P&gt;Really, this post is about Flash. But it will probably apply to quite a few other ActiveX objects out there, too, so use it liberally!&lt;/P&gt;
&lt;P&gt;Unfortunately, Adobe Flash &lt;A class="" href="http://www.adobe.com/go/6b3af6c9" mce_href="http://www.adobe.com/go/6b3af6c9"&gt;does not support&lt;/A&gt; the x64 processor architecture. The basic upshot of this is that you can't view Flash content in a Sidebar Gadget if your machine has an x64 processor. Sorry about that.&lt;/P&gt;
&lt;P&gt;If you're developing a gadget, you can attempt to provide an user error experience for this by using our own System APIs. The System.Machine.processorArchiture returns "x86" and "x64" for those types, so if you're using a control you suspect isn't supported, then you can write out a helpful user message instead of the HTML for the object!&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR&gt;Brian&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1537845" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/sidebar/archive/tags/gadgets/default.aspx">gadgets</category><category domain="http://blogs.msdn.com/sidebar/archive/tags/sidebar/default.aspx">sidebar</category></item><item><title>“WPF/E” and Sidebar gadgets</title><link>http://blogs.msdn.com/sidebar/archive/2006/12/05/wpf-e-and-sidebar-gadgets.aspx</link><pubDate>Wed, 06 Dec 2006 04:04:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1217050</guid><dc:creator>sbblog@microsoft.com</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/sidebar/comments/1217050.aspx</comments><wfw:commentRss>http://blogs.msdn.com/sidebar/commentrss.aspx?PostID=1217050</wfw:commentRss><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;FONT face=Calibri size=3&gt;One of my favorite new web technologies is now available for preview. I’d urge to you go check out the &lt;/FONT&gt;&lt;A href="http://msdn2.microsoft.com/en-us/asp.net/bb187358.aspx"&gt;&lt;FONT face=Calibri size=3&gt;developer center&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Calibri size=3&gt; and &lt;/FONT&gt;&lt;A href="http://blogs.msdn.com/wpfsdk/"&gt;&lt;FONT face=Calibri size=3&gt;team blog&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Calibri size=3&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;Of course, since “WPF/E” is a technology designed to work in web pages, many of you are going to try it out inside gadgets. Very cool. Unfortunately, you’ll probably hit some roadblocks when attempting to render “WPF/E” content inside a Sidebar gadget.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;External Files&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;Samples that access external files will not be able to access those files. This includes images referenced in the XAML and XAML files, even inside the gadget package.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;This is not a security issue, but rather a problem with the way the “WPF/E” control resolves file paths and URLs. Unfortunately, there is no known workaround, such as placing the files on a remote server. Only XAML content embedded in the HTML files will load.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Making samples into gadgets&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;It is minor in comparison to the above issue, but most examples won’t have height and width set on the body. This is required for Sidebar gadgets, so be sure to add it.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;Brian&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1217050" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/sidebar/archive/tags/gadgets/default.aspx">gadgets</category><category domain="http://blogs.msdn.com/sidebar/archive/tags/sidebar/default.aspx">sidebar</category></item><item><title>Using the slideshow gadget with Search folders</title><link>http://blogs.msdn.com/sidebar/archive/2006/11/27/using-the-slideshow-gadget-with-search-folders.aspx</link><pubDate>Tue, 28 Nov 2006 01:29:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1161551</guid><dc:creator>sbblog@microsoft.com</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/sidebar/comments/1161551.aspx</comments><wfw:commentRss>http://blogs.msdn.com/sidebar/commentrss.aspx?PostID=1161551</wfw:commentRss><description>&lt;P&gt;&lt;SPAN style="FONT-SIZE: 11pt; COLOR: #000000; FONT-FAMILY: 'Calibri','sans-serif'; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;Ben Betz has a pretty cool post about building some advanced queries in the UI (&lt;A href="http://shellrevealed.com/blogs/shellblog/archive/2006/10/31/Query-Composition_3A00_-Building-a-search-upon-another-search.aspx" mce_href="http://shellrevealed.com/blogs/shellblog/archive/2006/10/31/Query-Composition_3A00_-Building-a-search-upon-another-search.aspx"&gt;http://shellrevealed.com/blogs/shellblog/archive/2006/10/31/Query-Composition_3A00_-Building-a-search-upon-another-search.aspx&lt;/A&gt;). &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 11pt; COLOR: #000000; FONT-FAMILY: 'Calibri','sans-serif'; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;Did you know that you can direct the slideshow Sidebar gadget to cycle through images in those same dynamic search folders? &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 11pt; COLOR: #000000; FONT-FAMILY: 'Calibri','sans-serif'; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;David Washington submitted this tip.&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="FONT-SIZE: 11pt; COLOR: #000000; FONT-FAMILY: 'Calibri','sans-serif'; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B&gt;&lt;FONT color=#000000&gt;The Short Story:&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT color=#000000&gt;You can point the Slideshow gadget at a Search Folder. &amp;nbsp;You can do this by simply putting a search folder inside of an actual folder and pointing the gadget at the actual folder.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT color=#000000&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT color=#000000&gt;Here are the steps:&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraph style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in"&gt;&lt;FONT color=#000000&gt;1)&lt;SPAN style="FONT-SIZE: 7pt; FONT-FAMILY: 'Times New Roman','serif'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Create an actual folder &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraph style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in"&gt;&lt;FONT color=#000000&gt;2)&lt;SPAN style="FONT-SIZE: 7pt; FONT-FAMILY: 'Times New Roman','serif'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Perform a search of pictures&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraph style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in"&gt;&lt;FONT color=#000000&gt;3)&lt;SPAN style="FONT-SIZE: 7pt; FONT-FAMILY: 'Times New Roman','serif'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Save search to created folder &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraph style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in"&gt;&lt;FONT color=#000000&gt;4)&lt;SPAN style="FONT-SIZE: 7pt; FONT-FAMILY: 'Times New Roman','serif'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Point the Slideshow gadget at the created folder&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraph style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in"&gt;&lt;FONT color=#000000&gt;5)&lt;SPAN style="FONT-SIZE: 7pt; FONT-FAMILY: 'Times New Roman','serif'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Make sure “Include subfolders” &amp;nbsp;is checked&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT color=#000000&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B&gt;&lt;FONT color=#000000&gt;The Long Story:&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT color=#000000&gt;I have a ton of photos that I have tagged and rated, so I was a little disappointed when I saw that the Slideshow sidebar gadget doesn’t support search folders. I have search folders for “Top Rated Pictures” and “Pictures of Family” and I wished that I could just point the gadget at these instead of an actual folder.&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT color=#000000&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT color=#000000&gt;Due to the awesome-ness of search folders, they behave just like a regular ShellFolder so the sidebar gadget &lt;I&gt;should&lt;/I&gt; support it but the version of SHBrowseForFolder that is being called is only showing File System folders. Determined to hack my around this limitation, I was up to my elbows in javascript when I found that a neat feature in the gadget code that will allow this functionality. If “Include Sub-Folders” is checked the code that adds pictures to the slideshow checks each enumerated file if it is a folder and recursively adds its contents as well. &amp;nbsp;Due to the aforementioned awesome-ness this includes Search Folders! To have a little more control over what pictures are displayed, I created a couple (file system) folders that contain search folders. I just point the Slideshow gadget at one of these and I have exactly what I wanted. I have multiple instances of the Slideshow Gadget running pointing to different saved searches.&lt;/FONT&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1161551" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/sidebar/archive/tags/gadgets/default.aspx">gadgets</category><category domain="http://blogs.msdn.com/sidebar/archive/tags/vista/default.aspx">vista</category><category domain="http://blogs.msdn.com/sidebar/archive/tags/sidebar/default.aspx">sidebar</category></item><item><title>Building the Feed headlines gadget using the Windows Feeds Platform</title><link>http://blogs.msdn.com/sidebar/archive/2006/11/16/building-the-feed-headlines-gadget-using-the-windows-feeds-platform.aspx</link><pubDate>Thu, 16 Nov 2006 21:22:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1087948</guid><dc:creator>sbblog@microsoft.com</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/sidebar/comments/1087948.aspx</comments><wfw:commentRss>http://blogs.msdn.com/sidebar/commentrss.aspx?PostID=1087948</wfw:commentRss><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;The final RSS gadget, “Feed Headlines” is done and available with Windows Vista! This gadget is featured on the Vista Sidebar by default and allows users to see new headlines peripherally. We built the gadget using the Windows Feeds Platform, which greatly reduced the complexity of getting and storing of feed data so that we could focus more on the user experience.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;Initially, the gadget was prototyped using an http request to handle the xml files from each feed, similar to other AJAX development. Designing and developing the prototype quickly revealed that managing feeds was going to be very consuming to develop due to how much code would need to be written for feed download, storage, and user management not to mention the bugs introduced due to the extra code.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;We started prototyping a gadget to be a full-fledged feed aggregator for all types of syndicated formats. As part of this development process we took a look at the Internet Explorer 7 feed reading experience and realized that our experience with a Sidebar gadget had to interact with Vista’s new feed platform. We ended up building a gadget that essentially became a face to the feed platform. Because we chose to build the gadget on top of the feed platform the job became a lot less complex, and a more usable gadget emerged. It was more usable in that the user doesn’t need to maintain another RSS list specific to the “feed headlines” gadget and read/unread data is synchronized. &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;In hindsight, it becomes quite clear that managing feeds in one location accessible to all applications is “how feed management on the OS should work”. Sure you can be savy and have your opml list and import it to all your RSS apps, but I personally am just not that organized, and isn’t that a lot of the reason we use computers - to do our mundane tasks for us?&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;By choosing to build our gadget on top of the feed platform, we introduced a dependency on the feed platform. If it breaks we break. This is not a bad thing, because if it does break we know where things went wrong and can be fixed from one point instead of several.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;In conclusion, I don’t believe this would be a viable gadget without the feed platform. As an independent feed aggregator, there is just too much set-up to ask of the user. Gadgets are quick glance mini-applications. I don’t believe users will want to spend a great deal of time interacting with them, and API’s like the feed platform will make gadgets extremely robust. &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Notes on the gadget’s usage of the Feed Platform APIs:&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;The RSS gadget uses a number of the APIs from the feed platform in ways that may not be obvious on the surface. Helpfully, the feed platform exposes its APIs through a scriptable ActiveX object, so it was simple to access these APIs in a Sidebar gadget using JavaScript.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;By default, the RSS gadget displays all feeds in the feed platform, including subfolders. Because the feeds can be organized into folders, it’s possible through the settings dialog to select an individual feed or a folder of feeds.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;The gadget also displays only the unread items from the selected feeds, making it more relevant to the user as a gadget. Further, if the user opens a feed item from the gadget’s flyout that particular item will be marked as read.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;-John Moscarillo, Sidebar Gadget Developer&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1087948" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/sidebar/archive/tags/gadgets/default.aspx">gadgets</category></item><item><title>Roaming gadgets on a USB key</title><link>http://blogs.msdn.com/sidebar/archive/2006/11/09/roaming-gadgets-on-a-usb-key.aspx</link><pubDate>Fri, 10 Nov 2006 02:57:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1048085</guid><dc:creator>sbblog@microsoft.com</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/sidebar/comments/1048085.aspx</comments><wfw:commentRss>http://blogs.msdn.com/sidebar/commentrss.aspx?PostID=1048085</wfw:commentRss><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;DISCLAIMER: This post is relevant for the Vista v1 version of Sidebar, but isn’t guaranteed to work on future versions. Hopefully we’ll be able to devise a more streamlined method of roaming gadgets and settings in the future. &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;Sidebar by default will use settings and gadgets that have been installed to your user profile. Many folks use multiple computers and don’t have easy methods of duplicating their user profiles between computers. Even on domain joined computers and accounts with roaming profiles, gadgets don’t roam. Additionally, some folks use shared computers with profiles that get wiped out every night. For most of these scenarios, Sidebar users typically only have access to the standard Vista gadgets and any shared gadgets the system administrator has installed. Fear not, roaming users, Sidebar does have support for carrying your gadgets and settings with you!&lt;BR style="mso-special-character: line-break"&gt;&lt;BR style="mso-special-character: line-break"&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;USB storage keys are pretty cheap these days, and they have plenty of room for storing gadgets.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;We can copy our gadgets and settings to this USB key, edit the settings file to make it drive-letter independent, and use a simple batch file to execute Sidebar in such a way that our gadgets and settings are loaded from the USB key instead of from the user profile. &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;Step 1: Copy the installed gadgets to the usb key&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;On Vista your settings and user-installed gadgets are found in “%userprofile%\appdata\local\microsoft\windows sidebar”. Gadgets which were installed by your system administrator are installed in “%programfiles%\windows sidebar\shared gadgets”.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraphCxSpFirst style="MARGIN: 0in 0in 0pt 0.75in; TEXT-INDENT: -0.25in; mso-add-space: auto; mso-list: l0 level1 lfo1"&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri size=3&gt;a.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri size=3&gt;On your USB volume (let’s assume it is on E: for these instructions), create a folder called sblocal&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.75in; TEXT-INDENT: -0.25in; mso-add-space: auto; mso-list: l0 level1 lfo1"&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri size=3&gt;b.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri size=3&gt;Copy the entire folder tree from “%userprofile%\appdata\local\microsoft\windows sidebar” to e:\sblocal. &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.75in; TEXT-INDENT: -0.25in; mso-add-space: auto; mso-list: l0 level1 lfo1"&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri size=3&gt;c.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri size=3&gt;You should now have&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;settings.ini file under e:\sblocal, and all your user gadgets are under e:\sblocal\gadgets.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraphCxSpLast style="MARGIN: 0in 0in 10pt 0.75in; TEXT-INDENT: -0.25in; mso-add-space: auto; mso-list: l0 level1 lfo1"&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri size=3&gt;d.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri size=3&gt;If you want to roam your admin-installed shared gadgets too, copy the entire folder tree from “%programfiles%\windows sidebar\shared gadgets” to e:\sblocal\gadgets&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;Step 2: Edit settings.ini to make it drive-letter independent&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;Sidebar supports environment variable expansion when figuring out where gadget files live. We can replace the drive-letter-based paths in our local settings.ini file to redirect Sidebar to look where we want for a given gadget.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraphCxSpFirst style="MARGIN: 0in 0in 0pt 0.75in; TEXT-INDENT: -0.25in; mso-add-space: auto; mso-list: l2 level1 lfo2"&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri size=3&gt;a.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri size=3&gt;Open settings.ini in your favorite text editor. &lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;lt;shameless plug&amp;gt;Note that the Find/Replace All functionality in Notepad on Vista is hundreds of times faster than it was in XP so Notepad is a good choice for this. &amp;lt;/shameless plug&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraphCxSpLast style="MARGIN: 0in 0in 10pt 0.75in; TEXT-INDENT: -0.25in; mso-add-space: auto; mso-list: l2 level1 lfo2"&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri size=3&gt;b.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri size=3&gt;Each section in the settings.ini file will have an entry called “PrivateSetting_GadgetName” whose value is set to the folder where the gadget files are found. EG, my calculator.gadget entry looks like this:&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt 0.75in"&gt;&lt;SPAN style="FONT-FAMILY: Consolas"&gt;&lt;FONT size=3&gt;PrivateSetting_GadgetName="C:%5CUsers%5Cdavidshi%5CAppData%5CLocal%5CMicrosoft%5CWindows%20Sidebar%5CGadgets%5Ccalculator%5B1%5D.gadget" &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoListParagraphCxSpFirst style="MARGIN: 0in 0in 0pt 0.75in; TEXT-INDENT: -0.25in; mso-add-space: auto; mso-list: l2 level1 lfo2"&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri size=3&gt;c.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri size=3&gt;I need to change every occurrence of my user profile-based path to use an environment variable called GADGETS_USER. GADGETS_USER is the variable that sidebar uses as the default location for finding user-installed gadgets to show in the gallery, so it’s a good variable to use here for consistency. &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraphCxSpLast style="MARGIN: 0in 0in 10pt 0.75in; TEXT-INDENT: -0.25in; mso-add-space: auto; mso-list: l2 level1 lfo2"&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri size=3&gt;d.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;To do this, I will replace every occurrence of “&lt;/FONT&gt;&lt;SPAN style="FONT-FAMILY: Consolas"&gt;C:%5CUsers%5Cdavidshi%5CAppData%5CLocal%5CMicrosoft%5CWindows%20Sidebar%5CGadgets%5C” &lt;/SPAN&gt;&lt;FONT face=Calibri&gt;with “&lt;/FONT&gt;&lt;SPAN style="FONT-FAMILY: Consolas"&gt;%GADGET_USER%&lt;/SPAN&gt;&lt;FONT face=Calibri&gt;”, so my new entry for calculator will look like this:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt 0.5in; TEXT-INDENT: 0.25in"&gt;&lt;SPAN style="FONT-FAMILY: Consolas"&gt;&lt;FONT size=3&gt;PrivateSetting_GadgetName="%GADGETS_USER%\calculator%5B1%5D.gadget" &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoListParagraphCxSpFirst style="MARGIN: 0in 0in 0pt 0.75in; TEXT-INDENT: -0.25in; mso-add-space: auto; mso-list: l2 level1 lfo2"&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri size=3&gt;e.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Similarly, for any system-provided gadget I want to use, I need to replace the string “&lt;/FONT&gt;&lt;SPAN style="FONT-FAMILY: Consolas"&gt;C:%5CProgram%20Files&lt;/SPAN&gt;&lt;FONT face=Calibri&gt;” with “&lt;/FONT&gt;&lt;SPAN style="FONT-FAMILY: Consolas"&gt;%PROGRAMFILES%&lt;/SPAN&gt;&lt;FONT face=Calibri&gt;”&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraphCxSpLast style="MARGIN: 0in 0in 10pt 0.75in; TEXT-INDENT: -0.25in; mso-add-space: auto; mso-list: l2 level1 lfo2"&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri size=3&gt;f.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri size=3&gt;Finally, for any of the Shared Gadgets I want to use, I need to replace the string “C:%5CProgram%20Files%5CWindows%20Sidebar%5CShared%20Gadgets” with “%GADGETS_USER%” so they will be mapped to the copies on my usb key&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;Step 3: Create a batch file for running sidebar with the right settings and gadgets&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;Now we can take advantage of Sidebar’s use of some environment variables to redirect it to use our local copies. GADGETS_SETTINGS tells sidebar where to find settings.ini, and GADGETS_USER tells sidebar where to look for gadgets to display in the gallery.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraphCxSpFirst style="MARGIN: 0in 0in 0pt 0.75in; TEXT-INDENT: -0.25in; mso-add-space: auto; mso-list: l1 level1 lfo3"&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri size=3&gt;a.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri size=3&gt;Under e:\sblocal, create a new text file called sb.cmd&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraphCxSpLast style="MARGIN: 0in 0in 10pt 0.75in; TEXT-INDENT: -0.25in; mso-add-space: auto; mso-list: l1 level1 lfo3"&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri size=3&gt;b.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri size=3&gt;Add these lines to the file and save it:&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNoSpacing style="MARGIN: 0in 0in 0pt 0.75in"&gt;&lt;SPAN style="FONT-FAMILY: Consolas"&gt;&lt;FONT size=3&gt;pushd %~dp0&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNoSpacing style="MARGIN: 0in 0in 0pt 0.75in"&gt;&lt;SPAN style="FONT-FAMILY: Consolas"&gt;&lt;FONT size=3&gt;set GADGETS_SETTINGS=%~dp0&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNoSpacing style="MARGIN: 0in 0in 0pt 0.75in"&gt;&lt;SPAN style="FONT-FAMILY: Consolas"&gt;&lt;FONT size=3&gt;set GADGETS_USER=%~dp0\gadgets&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNoSpacing style="MARGIN: 0in 0in 0pt 0.75in"&gt;&lt;SPAN style="FONT-FAMILY: Consolas"&gt;&lt;FONT size=3&gt;start sidebar&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNoSpacing style="MARGIN: 0in 0in 0pt 0.75in"&gt;&lt;SPAN style="FONT-FAMILY: Consolas"&gt;&lt;FONT size=3&gt;popd&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNoSpacing style="MARGIN: 0in 0in 0pt 0.75in"&gt;&lt;SPAN style="FONT-FAMILY: Consolas"&gt;&lt;o:p&gt;&lt;FONT size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNoSpacing style="MARGIN: 0in 0in 0pt 0.75in"&gt;&lt;SPAN style="FONT-FAMILY: Consolas"&gt;&lt;o:p&gt;&lt;FONT size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;Now you can plug your USB key into any Vista computer, exit the default Sidebar process that runs on logon, and run the sblocal\sb.cmd script to launch sidebar with your custom gadgets and settings. Note that if you add any new gadget instances to sidebar while roaming, you may have to repeat step 2. &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;Enjoy!&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1048085" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/sidebar/archive/tags/gadgets/default.aspx">gadgets</category><category domain="http://blogs.msdn.com/sidebar/archive/tags/vista/default.aspx">vista</category><category domain="http://blogs.msdn.com/sidebar/archive/tags/sidebar/default.aspx">sidebar</category></item><item><title>Localized Date Strings</title><link>http://blogs.msdn.com/sidebar/archive/2006/10/01/779702.aspx</link><pubDate>Sun, 01 Oct 2006 20:29:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:779702</guid><dc:creator>sbblog@microsoft.com</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/sidebar/comments/779702.aspx</comments><wfw:commentRss>http://blogs.msdn.com/sidebar/commentrss.aspx?PostID=779702</wfw:commentRss><description>&lt;p&gt;I just saw this interesting exchange on an internal discussion list, and thought I'd pass it on:&lt;/p&gt; &lt;p&gt;&lt;b&gt;From:&lt;/b&gt; A Microsoft Guy&lt;br&gt;&lt;b&gt;Subject:&lt;/b&gt; Formatting date/time strings&lt;/p&gt; &lt;p&gt;Is there a good way to format a date/time string using the current system local?&amp;nbsp; The javascript function toLocaleString() only outputs the long date + time format.&amp;nbsp; I’m looking for a way to do short date, short time, and other formats.&amp;nbsp; Any tips/suggestions, other than just providing a format string that gets localized for a particular language (not the best solution, but better than nothing). &lt;p&gt;&lt;b&gt;From:&lt;/b&gt; A Sidebar Guy&lt;br&gt;&lt;b&gt;Subject:&lt;/b&gt; RE: Formatting date/time strings &lt;p&gt;Shawn Steele graciously provided us with some information on this and added it to his blog here: &lt;p&gt;&lt;a href="http://blogs.msdn.com/shawnste/archive/2006/09/05/741871.aspx"&gt;http://blogs.msdn.com/shawnste/archive/2006/09/05/741871.aspx&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=779702" width="1" height="1"&gt;</description></item><item><title>Powering Your Gadgets With ActiveX</title><link>http://blogs.msdn.com/sidebar/archive/2006/09/28/775835.aspx</link><pubDate>Thu, 28 Sep 2006 21:19:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:775835</guid><dc:creator>sbblog@microsoft.com</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/sidebar/comments/775835.aspx</comments><wfw:commentRss>http://blogs.msdn.com/sidebar/commentrss.aspx?PostID=775835</wfw:commentRss><description>&lt;P&gt;A while ago, I wrote a tutorial explaining how to create an ActiveX control and use it inside a sidebar gadget.&amp;nbsp; If you are finding yourself limited by the capabilities of DHTML and script in your gadget development, you will find this a useful way to add additional power and capabilities to your gadget.&amp;nbsp; (At the cost of some additional deployment complexity.)&lt;/P&gt;
&lt;P&gt;I've attached a Word document with the whole tutorial; or if you prefer to view it online, you can check out the original posts on my personal blog:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://galactic-patrol.spaces.live.com/blog/cns!15E79917F0743763!139.entry"&gt;Powering Your Gadgets With ActiveX (part 1)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://galactic-patrol.spaces.live.com/blog/cns!15E79917F0743763!141.entry"&gt;Powering Your Gadgets With ActiveX (part 2)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://galactic-patrol.spaces.live.com/blog/cns!15E79917F0743763!142.entry"&gt;Powering Your Gadgets With ActiveX (part 3)&lt;/A&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=775835" width="1" height="1"&gt;</description><enclosure url="http://blogs.msdn.com/sidebar/attachment/775835.ashx" length="1101312" type="application/msword" /></item><item><title>Persistent Settings Update</title><link>http://blogs.msdn.com/sidebar/archive/2006/09/25/771492.aspx</link><pubDate>Tue, 26 Sep 2006 04:53:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:771492</guid><dc:creator>sbblog@microsoft.com</dc:creator><slash:comments>7</slash:comments><comments>http://blogs.msdn.com/sidebar/comments/771492.aspx</comments><wfw:commentRss>http://blogs.msdn.com/sidebar/commentrss.aspx?PostID=771492</wfw:commentRss><description>&lt;p&gt;Soon after I posted &lt;a href="http://blogs.msdn.com/sidebar/archive/2006/09/21/765604.aspx"&gt;my persistent settings library&lt;/a&gt;, I received my first bug on it.&amp;nbsp; I'll discuss the bug a bit, but first things first - the bug is fixed, and the links updated; if you previously downloaded the library, please go ahead and get the updated version.&lt;/p&gt; &lt;p&gt;Details:&lt;/p&gt; &lt;p&gt;The symptom of the bug was that the following two consecutive calls:&lt;/p&gt; &lt;pre&gt;getPersistentSetting( "setting", firstCallback );
getPersistentSetting( "setting", secondCallback );&lt;/pre&gt;
&lt;p&gt;Would result in two calls on the 'secondCallback' function.&amp;nbsp; The failure itself made it clear to me where the error was; and the location of the error suggested the fix.&amp;nbsp; I'm afraid I don't know enough about the intricacies of the javascript language to know exactly why it failed in the first place, though; perhaps one of my more knowledgable readers will chime in.&lt;/p&gt;
&lt;p&gt;Here is the failing code:&lt;/p&gt;
&lt;p&gt;
&lt;pre&gt;window.setTimeout(function ()
{
    try
    {
        workItem.callback(returnValue);
    }
    catch (e)
    {
        persistentSettingLog("exception from callback: " + e.name + ": " + e.message);
    }
}, 0);&lt;/pre&gt;
&lt;/p&gt;
&lt;p&gt;And here is the fixed version:&lt;/p&gt;
&lt;pre&gt;persistentSettingScheduleCallback(workItem.callback, returnValue);
function persistentSettingScheduleCallback(callback, returnValue)
{
    window.setTimeout(function ()
    {
        try
        {
            callback(returnValue);
        }
        catch (e)
        {
            persistentSettingLog("exception from callback: " + e.name + ": " + e.message);
        }
    }, 0);
}
&lt;/pre&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=771492" width="1" height="1"&gt;</description></item><item><title>Persistent Gadget Settings</title><link>http://blogs.msdn.com/sidebar/archive/2006/09/21/765604.aspx</link><pubDate>Fri, 22 Sep 2006 07:14:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:765604</guid><dc:creator>sbblog@microsoft.com</dc:creator><slash:comments>6</slash:comments><comments>http://blogs.msdn.com/sidebar/comments/765604.aspx</comments><wfw:commentRss>http://blogs.msdn.com/sidebar/commentrss.aspx?PostID=765604</wfw:commentRss><description>&lt;p&gt;Here is a&amp;nbsp;question that seems to pop up with some regularity on the sidebar newsgroup: "Why doesn't the weather gadget remember where I live, if I close it and then add it again to my sidebar?"&lt;/p&gt; &lt;p&gt;The answer is that every time you add the weather gadget to the sidebar, you are creating a new 'instance' of the gadget; and every instance has its own associated location.&amp;nbsp; So the newly-added weather gadget has settings that are completely distinct from the settings on the one you closed.&amp;nbsp; This makes sense when you start to think about having three or five weather gadgets running at the same time - they should each be able to show the weather at a different location.&lt;/p&gt; &lt;p&gt;Having said that, you may choose to make a different design choice in your gadgets.&amp;nbsp; Unfortunately, the sidebar does not offer a built-in mechanism for sharing settings between gadget instances.&amp;nbsp; When asked how to do this by other gadget developers, my first response was: "you can use a shared file to share settings between gadget instances."&lt;/p&gt; &lt;p&gt;To make life easier for everyone, I decided to write a javascript library that encapsulated that work, and exposed a simple API for reading and writing shared settings.&amp;nbsp; In the process of writing the library, I discovered that just saying "use a shared file" vastly oversimplifies the effort involved.&amp;nbsp; *grin*&lt;/p&gt; &lt;p&gt;I've uploaded the results to the 'Sandbox' section of the Channel 9 site:&lt;/p&gt; &lt;p&gt;&lt;a href="http://channel9.msdn.com/Photos/ZippedFiles/236914_persistentSettings.zip"&gt;Persistent Settings ZIP Archive&lt;/a&gt;&lt;/p&gt; &lt;p&gt;The ZIP archive contains a JS file that implements the APIs, and a README.TXT file describing the APIs.&amp;nbsp; You can include the file in your gadget HTML as follows:&lt;/p&gt; &lt;p&gt;&amp;lt;script src="persistentSettings.js" language="javascript"&amp;gt;&amp;lt;/script&amp;gt;&lt;/p&gt; &lt;p&gt;I'm including the contents of the README.TXT file below, for ease of reference:&lt;/p&gt; &lt;h1&gt;&lt;font face="Courier New" size="1"&gt;&lt;u&gt;PersistentSettings.js - A Persistent Setting API For Sidebar Gadgets&lt;/u&gt;&lt;/font&gt;&lt;/h1&gt; &lt;h1&gt;&lt;font size="1"&gt;&lt;font face="Courier New"&gt;These APIs allow multiple instances of the same gadget type to &lt;/font&gt;&lt;font face="Courier New"&gt;share a set of common settings. It will also maintain those &lt;/font&gt;&lt;font face="Courier New"&gt;settings even when all instances of the gadget are shut down. It &lt;/font&gt;&lt;font face="Courier New"&gt;will not maintain the settings if the gadget is uninstalled from the &lt;/font&gt;&lt;font face="Courier New"&gt;gadget gallery window, and then reinstalled. &lt;/font&gt;&lt;/font&gt;&lt;/h1&gt; &lt;h1&gt;&lt;font face="Courier New" size="1"&gt;There are two functions: &lt;/font&gt;&lt;/h1&gt; &lt;h1&gt;&lt;font face="Courier New" size="1"&gt;&lt;strong&gt;setPersistentSetting( name, value [, callback ] ) &lt;/strong&gt;&lt;/font&gt;&lt;/h1&gt; &lt;blockquote&gt; &lt;h1&gt;&lt;font size="1"&gt;&lt;font face="Courier New"&gt;This function stores the specified name/value pair in the &lt;/font&gt;&lt;font face="Courier New"&gt;common settings. &lt;/font&gt;&lt;/font&gt;&lt;/h1&gt; &lt;h1&gt;&lt;font size="1"&gt;&lt;font face="Courier New"&gt;Note: You are not guaranteed that your setting is stored &lt;/font&gt;&lt;font face="Courier New"&gt;until that callback function is called. If you do not &lt;/font&gt;&lt;font face="Courier New"&gt;specify the optional callback, you must not assume the &lt;/font&gt;&lt;font face="Courier New"&gt;setting has been written when the function call returns; it &lt;/font&gt;&lt;font face="Courier New"&gt;has not. &lt;/font&gt;&lt;/font&gt;&lt;/h1&gt; &lt;h1&gt;&lt;font face="Courier New" size="1"&gt;Example: &lt;/font&gt;&lt;/h1&gt;&lt;pre&gt;setPersistentSetting( "CDName", "Bat out of Hell", setCallback );
function setCallback()
{
    document.body.innerText = "CDName set!";
}&lt;/pre&gt;&lt;/blockquote&gt;
&lt;h1&gt;&lt;font face="Courier New" size="1"&gt;&lt;strong&gt;getPersistentSetting( name, callback ) &lt;/strong&gt;&lt;/font&gt;&lt;/h1&gt;
&lt;blockquote&gt;
&lt;h1&gt;&lt;font size="1"&gt;&lt;font face="Courier New"&gt;This function gets the value associated with the specified &lt;/font&gt;&lt;font face="Courier New"&gt;name from the common settings. If the name is not currently &lt;/font&gt;&lt;font face="Courier New"&gt;present in the shared settings, null is returned. &lt;/font&gt;&lt;/font&gt;&lt;/h1&gt;
&lt;h1&gt;&lt;font size="1"&gt;&lt;font face="Courier New"&gt;Note: you must specify a callback function in order to &lt;/font&gt;&lt;font face="Courier New"&gt;obtain the result of your setting query. &lt;/font&gt;&lt;/font&gt;&lt;/h1&gt;
&lt;h1&gt;&lt;font face="Courier New" size="1"&gt;Example: &lt;/font&gt;&lt;/h1&gt;&lt;pre&gt;getPersistentSetting( "CDName", getCallback );
function getCallback( value )
{
    document.body.innerText = "CDName: " + value;
}&lt;/pre&gt;&lt;/blockquote&gt;
&lt;h1&gt;&lt;font size="1"&gt;&lt;font face="Courier New"&gt;If you have any questions, suggestions or bugs related to these &lt;/font&gt;&lt;font face="Courier New"&gt;APIs,please contact Bruce.Williams@microsoft.com. I hope you find this &lt;/font&gt;&lt;font face="Courier New"&gt;useful! &lt;/font&gt;&lt;/font&gt;&lt;/h1&gt;
&lt;h1&gt;&lt;font face="Courier New" size="1"&gt;-Bruce&lt;/font&gt;&lt;/h1&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=765604" width="1" height="1"&gt;</description></item><item><title>RC1 Changes to the Sidebar APIs</title><link>http://blogs.msdn.com/sidebar/archive/2006/09/08/746787.aspx</link><pubDate>Fri, 08 Sep 2006 23:34:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:746787</guid><dc:creator>sbblog@microsoft.com</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/sidebar/comments/746787.aspx</comments><wfw:commentRss>http://blogs.msdn.com/sidebar/commentrss.aspx?PostID=746787</wfw:commentRss><description>&lt;P&gt;In the RC1 release of Windows Vista, the Sidebar received a number of changes in the APIs that make up our object model. These APIs make building rich gadgets that interact with other Windows components, and the Sidebar itself, easy and familiar to HTML developers.&lt;/P&gt;
&lt;P&gt;Some gadgets written for the Beta 2 release of Windows Vista may fail to function correctly on this newer build, but most gadgets that we have seen are not affected.&lt;/P&gt;
&lt;P&gt;The changes we made can be summarized as follows:&lt;BR&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Small additions for Gadget user experience&lt;/LI&gt;
&lt;LI&gt;Better integration with Windows components&lt;/LI&gt;
&lt;LI&gt;Simplification and removal of several APIs&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;The following guide will help you as you examine the documentation for the Windows Vista Sidebar in RC1. For more information, please visit &lt;A href="http://msdn.microsoft.com/library/en-us/sidebar/sidebar/reference/launch.asp"&gt;MSDN&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT size=4&gt;Gadget User Experience&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;System.Gadget.Settings.readString, writeString&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;We added these two methods in order to give developers more control over the way settings are stored. For instance, our note gadget uses these methods because a user that types in a long string of numbers, say, “2065551212”, probably doesn’t want to see “2.0 E9” returned because our type system believed it to be a long integer.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;System.Gadget.document&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;To expose better communication between a gadget and its flyout we now expose the HTML document objects for both to the other. Two way communication was difficult prior to this change.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;System.Gadget.visible, visibilityChanged&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;This property and event allow a gadget to suspend operations when a gadget goes off the screen. This assists gadgets in consuming as few system resources as possible.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Sidebar Graphics Library&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Background element/object&lt;/LI&gt;
&lt;LI&gt;Image object&lt;/LI&gt;
&lt;LI&gt;Text object&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;The new graphics library, exposed in HTML markup and to script, allows greater flexibility in designing gadgets with alpha transparency, manipulating images and placing text and images over transparent regions of the gadget.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT size=4&gt;Windows Component APIs&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;System.Contacts&lt;/STRONG&gt;&lt;BR&gt;A set of APIs allows a gadget to access the information from the Windows Contact data store.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;System.Machine.CPUs&lt;BR&gt;&lt;/STRONG&gt;An improved set of APIs allows a gadget to access information and utilization data about the different CPUs on the computer.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;System.Machine.PowerStatus&lt;BR&gt;&lt;/STRONG&gt;An improved set of APIs allows a gadget to detect information about the power supply, and to alter the behavior to use fewer resources if the machine is operating from battery power. Several APIs were removed or modified as part of this change.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;System.MessageStore&lt;BR&gt;&lt;/STRONG&gt;A new set of APIs allows a gadget to inspect mail and other messages present&amp;nbsp; in Windows Mail.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;System.Network.Wireless&lt;BR&gt;&lt;/STRONG&gt;A simplified set of APIs allows a gadget to detect information about the wireless connection state. Several more generic Networking APIs were removed as part of this change.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;System.Time&lt;BR&gt;&lt;/STRONG&gt;A new set of APIs allows a gadget to display information formatted for the current, or other, time zones.&lt;BR&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT size=4&gt;Removals and Simplifications&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;We made a number of changes to simplify the APIs and make the information more reliable. The following removed APIs typically are exposed in other places, such as WMI (Windows Management Instrumentation) or through the Shell and FileSystemObjects for scripting&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;System.Net.NetworkInterface&lt;BR&gt;System.RecycleBin.percentFull&lt;BR&gt;System.Sound&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;- Brian Teutsch&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=746787" width="1" height="1"&gt;</description></item></channel></rss>