Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>It looks like you've build your application using 'x32' as the target platform which makes <code>Process.Start</code> spawn a x32-bit process. And as I guess Windows 7 stores file associations for 32-bit and 64-bit applications separately.</p> <p>If you don't have COM or unmanaged 32-bit dependencies you could try building your application for 'Any' target platform instead of 'x32'.</p> <p>I investigated some further and found that ClickOnce installer creates the following open verb for any associated file extension (GUID is unique per application):</p> <pre><code>rundll32.exe dfshim.dll, ShOpenVerbExtension {dce01888-35e8-4df3-af35-cd971f520d8d} %1 </code></pre> <p>Using <a href="http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx" rel="nofollow noreferrer">Process Monitor</a>, I found that the 32-bit version fails to open <code>HKCU\Software\Classes\Wow6432Node\CLSID\{dce01888-35e8-4df3-af35-cd971f520d8d}</code> registry key. (the 64-bit version successfully opens it at <code>HKCU\Software\Classes\CLSID\{dce01888-35e8-4df3-af35-cd971f520d8d}</code>.)</p> <p>So for me it is indeed a ClickOnce bug. If I were you, I would use that dirty <code>%WinDir%\system32\cmd.exe /C test.abc</code> workaround. (Which appears to work -- tried from x32 Task Manager.)</p> <p>I've added this issue to the <strike><a href="https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=521282#details" rel="nofollow noreferrer">Microsoft Connect</a></strike> (update 2013-02-13: that link is rotten).</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload