Wox-launcher / Wox

A cross-platform launcher that simply works
http://wox-launcher.github.io/Wox/
GNU General Public License v3.0
24.47k stars 2.37k forks source link

FileNotFoundException at startup after uninstalling a program #250

Closed Otiel closed 9 years ago

Otiel commented 9 years ago

Hi,

I got the following exception at startup. Please not that I have uninstalled the so called program "Remote Desktop Manager" during my previous Windows session:


Wox - Unhandled Exception

Wox has occured an error that can't be handled.

Exception

System.IO.FileNotFoundException: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Remote Desktop Manager\Remote Desktop Manager.lnk
   Source: System.Drawing
   TargetAssembly: System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
   TargetModule: System.Drawing.dll
   TargetSite: System.Drawing.Icon ExtractAssociatedIcon(System.String, Int32)
   at System.Drawing.Icon.ExtractAssociatedIcon(String filePath, Int32 index)
   at Wox.ImageLoader.ImageLoader.GetIcon(String fileName) in c:\projects\wox\Wox\ImageLoader\ImageLoader.cs:line 42
   at Wox.ImageLoader.ImageLoader.Load(String path, Boolean addToCache) in c:\projects\wox\Wox\ImageLoader\ImageLoader.cs:line 103
   at Wox.ImageLoader.ImageLoader.PreloadImages() in c:\projects\wox\Wox\ImageLoader\ImageLoader.cs:line 61
   at Wox.MainWindow.<.ctor>b__13(Object o) in c:\projects\wox\Wox\MainWindow.xaml.cs:line 200
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)

Environment

qianlifeng commented 9 years ago

This issue has been fixed in V1.2.0 beta