Squirrel / Squirrel.Windows

An installation and update framework for Windows desktop apps
MIT License
7.36k stars 1.03k forks source link

Need taskbar icon same as shortcut icon but different from Form icon #1613

Open SunnySv72 opened 4 years ago

SunnySv72 commented 4 years ago

Hi,

I am creating a Windows Forms application and my application has a different icon for Form and shortcut. After installation, it shows the icons for shortcut accordingly that we give under VS,( right-click on project>Properties>Application, in there, under the 'Resources'>Icon,) that is absolutely fine for me.

While running it shows the Form icon on the taskbar instead, I need the same icon for taskbar as we have for a shortcut but without changing the Form icon. Earlier I used VS Setup and Deployment to create a setup in which my application has shown the same icon on the taskbar as shortcut.

Could anyone please suggest the approach. Thanks.

ComtelJeremy commented 4 years ago

To my knowledge this doesn't seem like a Squirrel issue. The taskbar icon is related to the form icon. Have you tried changing the Form.ShowInTaskbar property? Setting the icon for the application (or WinForms project) by going to the project properties allows you the set default application icon, but it might be overridden by the form icon. See Form.ShowInTaskbar and Form.Icon. Hope this helps.