<?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>Sat, 04 Feb 2012 18:17:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<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-102010</link>
		<dc:creator>GeekTieGuy</dc:creator>
		<pubDate>Sat, 04 Feb 2012 18:17:33 +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-102010</guid>
		<description>My pleasure. And thanks for the additional findings!</description>
		<content:encoded><![CDATA[<p>My pleasure. And thanks for the additional findings!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan</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-101789</link>
		<dc:creator>Jonathan</dc:creator>
		<pubDate>Fri, 03 Feb 2012 00:23:58 +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-101789</guid>
		<description>Oh, forgot to mention:
1. I&#039;m using .net 4.0
2. [STAThread] on your main method *may* be required too... see the SO thread please.
3. Most important - thanks for posting this!</description>
		<content:encoded><![CDATA[<p>Oh, forgot to mention:<br />
1. I&#8217;m using .net 4.0<br />
2. [STAThread] on your main method *may* be required too&#8230; see the SO thread please.<br />
3. Most important &#8211; thanks for posting this!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan</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-101788</link>
		<dc:creator>Jonathan</dc:creator>
		<pubDate>Fri, 03 Feb 2012 00:21: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-101788</guid>
		<description>Please see: http://stackoverflow.com/questions/4490361/c-sharp-dllimport-of-msigetshortcuttargetmsi-dll-failed-with-error-1603-under
- the return value for MsiGetShortcutTarget is UInt32 and is important (you want to check that...), and
- the [Out] modifier is missing from the StringBuilder parameters:
/*
        UINT MsiGetShortcutTarget(
            LPCTSTR szShortcutTarget,
            LPTSTR szProductCode,
            LPTSTR szFeatureId,
            LPTSTR szComponentCode
        );
        */
        [DllImport(&quot;msi.dll&quot;, CharSet = CharSet.Auto)]
        static extern UInt32 MsiGetShortcutTarget(
            string targetFile,
            [Out] StringBuilder productCode,
            [Out] StringBuilder featureID,
            [Out] StringBuilder componentCode);
and...
       /*
        INSTALLSTATE MsiGetComponentPath(
          LPCTSTR szProduct,
          LPCTSTR szComponent,
          LPTSTR lpPathBuf,
          DWORD* pcchBuf);
        */
        [DllImport(&quot;msi.dll&quot;, CharSet = CharSet.Auto)]
        static extern InstallState MsiGetComponentPath(
            string productCode,
            string componentCode,
            [Out] StringBuilder componentPath,
            ref int componentPathBufferSize);</description>
		<content:encoded><![CDATA[<p>Please see: <a href="http://stackoverflow.com/questions/4490361/c-sharp-dllimport-of-msigetshortcuttargetmsi-dll-failed-with-error-1603-under" rel="nofollow">http://stackoverflow.com/questions/4490361/c-sharp-dllimport-of-msigetshortcuttargetmsi-dll-failed-with-error-1603-under</a><br />
- the return value for MsiGetShortcutTarget is UInt32 and is important (you want to check that&#8230;), and<br />
- the [Out] modifier is missing from the StringBuilder parameters:<br />
/*<br />
        UINT MsiGetShortcutTarget(<br />
            LPCTSTR szShortcutTarget,<br />
            LPTSTR szProductCode,<br />
            LPTSTR szFeatureId,<br />
            LPTSTR szComponentCode<br />
        );<br />
        */<br />
        [DllImport("msi.dll", CharSet = CharSet.Auto)]<br />
        static extern UInt32 MsiGetShortcutTarget(<br />
            string targetFile,<br />
            [Out] StringBuilder productCode,<br />
            [Out] StringBuilder featureID,<br />
            [Out] StringBuilder componentCode);<br />
and&#8230;<br />
       /*<br />
        INSTALLSTATE MsiGetComponentPath(<br />
          LPCTSTR szProduct,<br />
          LPCTSTR szComponent,<br />
          LPTSTR lpPathBuf,<br />
          DWORD* pcchBuf);<br />
        */<br />
        [DllImport("msi.dll", CharSet = CharSet.Auto)]<br />
        static extern InstallState MsiGetComponentPath(<br />
            string productCode,<br />
            string componentCode,<br />
            [Out] StringBuilder componentPath,<br />
            ref int componentPathBufferSize);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cosmin</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-83295</link>
		<dc:creator>cosmin</dc:creator>
		<pubDate>Thu, 19 May 2011 14:58:21 +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-83295</guid>
		<description>Thanks mate, your code works flawlessly.</description>
		<content:encoded><![CDATA[<p>Thanks mate, your code works flawlessly.</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-64400</link>
		<dc:creator>GeekTieGuy</dc:creator>
		<pubDate>Mon, 04 Oct 2010 20:32:13 +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-64400</guid>
		<description>Sorry, I don&#039;t have time to investigate this at the moment. I hope you&#039;ll be able to find a method that works, though.</description>
		<content:encoded><![CDATA[<p>Sorry, I don&#8217;t have time to investigate this at the moment. I hope you&#8217;ll be able to find a method that works, though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Goverdhan A</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-64355</link>
		<dc:creator>Goverdhan A</dc:creator>
		<pubDate>Mon, 04 Oct 2010 08:35:49 +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-64355</guid>
		<description>I am trying to use the class MsiShortcutParser.cs as I have the requirement to read the target path from link file. I tried using IWshShortcut.CreateShortcut(filename) which works in most of the cases. This doesn&#039;t work for me when i try to read the target path from MSGames such as FreeCell, Minesweeper and Purble Place. Using of the class MsiShortcutParser.cs also returns me null path(MsiGetComponentPath is InstallState.InvalidArg). Let me know if there is anything more to get the &quot;ParseShortcut&quot; function work and return me the target path for MS Games.</description>
		<content:encoded><![CDATA[<p>I am trying to use the class MsiShortcutParser.cs as I have the requirement to read the target path from link file. I tried using IWshShortcut.CreateShortcut(filename) which works in most of the cases. This doesn&#8217;t work for me when i try to read the target path from MSGames such as FreeCell, Minesweeper and Purble Place. Using of the class MsiShortcutParser.cs also returns me null path(MsiGetComponentPath is InstallState.InvalidArg). Let me know if there is anything more to get the &#8220;ParseShortcut&#8221; function work and return me the target path for MS Games.</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-62677</link>
		<dc:creator>GeekTieGuy</dc:creator>
		<pubDate>Mon, 06 Sep 2010 18:09:51 +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-62677</guid>
		<description>I don&#039;t see why it couldn&#039;t be converted to VB.NET. Are you asking me if I can do it for you?</description>
		<content:encoded><![CDATA[<p>I don&#8217;t see why it couldn&#8217;t be converted to VB.NET. Are you asking me if I can do it for you?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TcoUpLoad</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-62664</link>
		<dc:creator>TcoUpLoad</dc:creator>
		<pubDate>Mon, 06 Sep 2010 15:05:22 +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-62664</guid>
		<description>You can convert that class into vbnet DLL?</description>
		<content:encoded><![CDATA[<p>You can convert that class into vbnet DLL?</p>
]]></content:encoded>
	</item>
	<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>

