<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to parse &quot;special&quot; .lnk files, aka. MSI shortcuts aka. Windows Installer advertised shortcuts using C#</title>
	<atom:link href="http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/</link>
	<description>News and views from the geek tie guy.</description>
	<lastBuildDate>Fri, 12 Mar 2010 15:29:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Man</title>
		<link>http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/comment-page-1/#comment-47144</link>
		<dc:creator>Man</dc:creator>
		<pubDate>Fri, 20 Nov 2009 18:42:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/#comment-47144</guid>
		<description>Thank you soooo much, useful, clear and simple and works like a charm too. Perfect! :)</description>
		<content:encoded><![CDATA[<p>Thank you soooo much, useful, clear and simple and works like a charm too. Perfect! <img src='http://www.geektieguy.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GeekTieGuy</title>
		<link>http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/comment-page-1/#comment-46342</link>
		<dc:creator>GeekTieGuy</dc:creator>
		<pubDate>Fri, 30 Oct 2009 01:06:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/#comment-46342</guid>
		<description>Cool! Glad you found it useful.</description>
		<content:encoded><![CDATA[<p>Cool! Glad you found it useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew Clark</title>
		<link>http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/comment-page-1/#comment-46333</link>
		<dc:creator>Matthew Clark</dc:creator>
		<pubDate>Thu, 29 Oct 2009 19:42:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/#comment-46333</guid>
		<description>Lifesaver!  I had to convert this to VB.NET, but I couldn&#039;t have come up with a solution without your article.  Thanks to you, I went from a blank .vb module to a perfect solution.</description>
		<content:encoded><![CDATA[<p>Lifesaver!  I had to convert this to VB.NET, but I couldn&#8217;t have come up with a solution without your article.  Thanks to you, I went from a blank .vb module to a perfect solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GeekTieGuy</title>
		<link>http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/comment-page-1/#comment-46294</link>
		<dc:creator>GeekTieGuy</dc:creator>
		<pubDate>Wed, 28 Oct 2009 15:38:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/#comment-46294</guid>
		<description>Glad it helped you. Thanks for leaving your comment.</description>
		<content:encoded><![CDATA[<p>Glad it helped you. Thanks for leaving your comment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JackZhong</title>
		<link>http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/comment-page-1/#comment-46286</link>
		<dc:creator>JackZhong</dc:creator>
		<pubDate>Wed, 28 Oct 2009 08:06:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/#comment-46286</guid>
		<description>Thank you very much,This problem has troubled me for long time ,now see your code ,wo have resolved
it,very gratefull to you!</description>
		<content:encoded><![CDATA[<p>Thank you very much,This problem has troubled me for long time ,now see your code ,wo have resolved<br />
it,very gratefull to you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GeekTieGuy</title>
		<link>http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/comment-page-1/#comment-45377</link>
		<dc:creator>GeekTieGuy</dc:creator>
		<pubDate>Wed, 07 Oct 2009 15:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/#comment-45377</guid>
		<description>Well, I guess I&#039;d trust the InstallState.InvalidArg and look that up. Maybe the product isn&#039;t installed properly. Or maybe the shortcut you&#039;re trying to open isn&#039;t an advertised shortcut, but some other type. Maybe a Shell Namespace item or something like that.</description>
		<content:encoded><![CDATA[<p>Well, I guess I&#8217;d trust the InstallState.InvalidArg and look that up. Maybe the product isn&#8217;t installed properly. Or maybe the shortcut you&#8217;re trying to open isn&#8217;t an advertised shortcut, but some other type. Maybe a Shell Namespace item or something like that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gaurav</title>
		<link>http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/comment-page-1/#comment-45358</link>
		<dc:creator>Gaurav</dc:creator>
		<pubDate>Wed, 07 Oct 2009 06:37:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/#comment-45358</guid>
		<description>Immensely helpful...Thank You... :)

I am trying to use your code on an XP machine (VS 2008 in a WPF application) along with the WshShell method but, have run into a weird problem. The return value from MsiGetShortcutTarget is 0 (indicating ERROR_SUCCESS, i.e. the function call was successful), but the InstallState returned from MsiGetComponentPath is InstallState.InvalidArg. 

I haven&#039;t modified your code (except for the namespace), so the error is quite puzzling...

Any ideas?</description>
		<content:encoded><![CDATA[<p>Immensely helpful&#8230;Thank You&#8230; <img src='http://www.geektieguy.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I am trying to use your code on an XP machine (VS 2008 in a WPF application) along with the WshShell method but, have run into a weird problem. The return value from MsiGetShortcutTarget is 0 (indicating ERROR_SUCCESS, i.e. the function call was successful), but the InstallState returned from MsiGetComponentPath is InstallState.InvalidArg. </p>
<p>I haven&#8217;t modified your code (except for the namespace), so the error is quite puzzling&#8230;</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dirk</title>
		<link>http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/comment-page-1/#comment-38395</link>
		<dc:creator>Dirk</dc:creator>
		<pubDate>Tue, 19 May 2009 15:00:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/#comment-38395</guid>
		<description>Your post was very very helpful!
My little &quot;ToolBarFolders&quot; tool would only be half as good without this information (but then again - it&#039;s up to others to tell how good my tool is anyway.)
I&#039;ll have to try it on Vista though - maybe I&#039;ll fire up a VM later.</description>
		<content:encoded><![CDATA[<p>Your post was very very helpful!<br />
My little &#8220;ToolBarFolders&#8221; tool would only be half as good without this information (but then again &#8211; it&#8217;s up to others to tell how good my tool is anyway.)<br />
I&#8217;ll have to try it on Vista though &#8211; maybe I&#8217;ll fire up a VM later.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/comment-page-1/#comment-17565</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Wed, 05 Nov 2008 14:27:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/#comment-17565</guid>
		<description>This post was a tremendous help. Thank you.

I am seeing similar behavior on Vista Home Premium that Greg reported. In my case, the MsiGetShortcutTarget fails on Office 2007 shortcuts that are in fact installed.

Question, does anyone have further insight on resolving advertised shortcuts on Vista?</description>
		<content:encoded><![CDATA[<p>This post was a tremendous help. Thank you.</p>
<p>I am seeing similar behavior on Vista Home Premium that Greg reported. In my case, the MsiGetShortcutTarget fails on Office 2007 shortcuts that are in fact installed.</p>
<p>Question, does anyone have further insight on resolving advertised shortcuts on Vista?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GeekTieGuy</title>
		<link>http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/comment-page-1/#comment-7457</link>
		<dc:creator>GeekTieGuy</dc:creator>
		<pubDate>Fri, 16 May 2008 15:35:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/#comment-7457</guid>
		<description>No problem. I haven&#039;t seen problems with MS Office 2003 shortcuts myself, but I have seen Office 2007 shortcuts work. Maybe it depends on the install source (admin share, SMS, etc.)?</description>
		<content:encoded><![CDATA[<p>No problem. I haven&#8217;t seen problems with MS Office 2003 shortcuts myself, but I have seen Office 2007 shortcuts work. Maybe it depends on the install source (admin share, SMS, etc.)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg Zelesnik</title>
		<link>http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/comment-page-1/#comment-7455</link>
		<dc:creator>Greg Zelesnik</dc:creator>
		<pubDate>Fri, 16 May 2008 12:41:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/#comment-7455</guid>
		<description>Thanks for responding!  I am, in fact, using the WshShell method after the MsiGetShorcutTarget() returns null from parsing a .lnk file, and it works like a champ.  However, it&#039;s weird.  It&#039;s the MS Office 2003 advertising shortcuts that are returning null in my case, and I know they&#039;re installed as I use them daily.  The weird part is that the return value fromMsiGetShortcutTarget() call is 1603, which is ERROR_INSTALL_FAILED. The WshShell method returns the icon file for these links.  Not sure what&#039;s going on here, but I&#039;m going to try it on some other advertising links that I know I have.  Thanks for responding and letting me know that it&#039;s not a fundamental Vista issue!</description>
		<content:encoded><![CDATA[<p>Thanks for responding!  I am, in fact, using the WshShell method after the MsiGetShorcutTarget() returns null from parsing a .lnk file, and it works like a champ.  However, it&#8217;s weird.  It&#8217;s the MS Office 2003 advertising shortcuts that are returning null in my case, and I know they&#8217;re installed as I use them daily.  The weird part is that the return value fromMsiGetShortcutTarget() call is 1603, which is ERROR_INSTALL_FAILED. The WshShell method returns the icon file for these links.  Not sure what&#8217;s going on here, but I&#8217;m going to try it on some other advertising links that I know I have.  Thanks for responding and letting me know that it&#8217;s not a fundamental Vista issue!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GeekTieGuy</title>
		<link>http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/comment-page-1/#comment-7451</link>
		<dc:creator>GeekTieGuy</dc:creator>
		<pubDate>Fri, 16 May 2008 04:25:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/#comment-7451</guid>
		<description>I&#039;ve got it to work on Vista Home Premium and Ultimate. Maybe in your case the shortcuts are for things that are truly advertised and not installed yet, i.e. there is no real target at the time you try to resolve the link? Also, I apply the WshShell method after MsiGetShortcutTarget() returns null (note I didn&#039;t include that code in the downloadable sample). I assume you are doing that too?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve got it to work on Vista Home Premium and Ultimate. Maybe in your case the shortcuts are for things that are truly advertised and not installed yet, i.e. there is no real target at the time you try to resolve the link? Also, I apply the WshShell method after MsiGetShortcutTarget() returns null (note I didn&#8217;t include that code in the downloadable sample). I assume you are doing that too?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg Zelesnik</title>
		<link>http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/comment-page-1/#comment-7445</link>
		<dc:creator>Greg Zelesnik</dc:creator>
		<pubDate>Thu, 15 May 2008 22:08:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/#comment-7445</guid>
		<description>Have you ever gotten this code to work on Vista?  The MsiGetShortcutTarget() method is returning nothing for advertised shortcuts on my Vista Business OS.</description>
		<content:encoded><![CDATA[<p>Have you ever gotten this code to work on Vista?  The MsiGetShortcutTarget() method is returning nothing for advertised shortcuts on my Vista Business OS.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GeekTieGuy</title>
		<link>http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/comment-page-1/#comment-7333</link>
		<dc:creator>GeekTieGuy</dc:creator>
		<pubDate>Sat, 10 May 2008 03:04:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/#comment-7333</guid>
		<description>Glad to be of help. And thanks for taking the time to comment as well!</description>
		<content:encoded><![CDATA[<p>Glad to be of help. And thanks for taking the time to comment as well!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg Zelesnik</title>
		<link>http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/comment-page-1/#comment-7328</link>
		<dc:creator>Greg Zelesnik</dc:creator>
		<pubDate>Fri, 09 May 2008 19:38:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/#comment-7328</guid>
		<description>This was incredibly helpful to me.  Thank you for taking the time to publish this explanation and example on the web.  I have been trying to figure out how to parse advertised shortcuts for many hours, and this was just the ticket.  thanks!</description>
		<content:encoded><![CDATA[<p>This was incredibly helpful to me.  Thank you for taking the time to publish this explanation and example on the web.  I have been trying to figure out how to parse advertised shortcuts for many hours, and this was just the ticket.  thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Parsing those *.lnk type files - VB.NET version &#124; Hodson Report</title>
		<link>http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/comment-page-1/#comment-4239</link>
		<dc:creator>Parsing those *.lnk type files - VB.NET version &#124; Hodson Report</dc:creator>
		<pubDate>Tue, 12 Feb 2008 01:51:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.geektieguy.com/2007/11/19/how-to-parse-special-lnk-files-aka-msi-shortcuts-aka-windows-installer-advertised-shortcuts-using-c/#comment-4239</guid>
		<description>[...] sure to drop by his site and grab the rest of the sample code just incase you need more info - even if it is done in [...]</description>
		<content:encoded><![CDATA[<p>[...] sure to drop by his site and grab the rest of the sample code just incase you need more info &#8211; even if it is done in [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
