Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Change in appllication exe icon at runtime not getting reflected after installation

$
0
0

Hi Team,

In  my previous thread,

http://social.msdn.microsoft.com/Forums/en-US/c4788a6d-b7ca-4852-ba8e-5469892bfb81/change-application-exe-icon-at-runtime-programatically-in-wpf?forum=wpf

I asked a question to change the exe icon at run time for WPF. The above solution works only when I debug the application or execute it directly from release folder.

But when I install the application on PC using Wix even on my system, the change in icon is not reflected it still shows the previous available icon in taskbar. Below is my code,

_window.Icon =  new BitmapImage(new Uri(Environment.CurrentDirectory + "\\1.ico", UriKind.RelativeOrAbsolute));

I tried refreshing it, but no success.

Thanks,

Nikhil.


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>