Setting correct icon for Shortcut in VS2010 Setup Project

BlueChippy picture BlueChippy · Jan 26, 2012 · Viewed 31.2k times · Source

I have a small app with a setup project. If I create a shortcut to my Primary Output, then this gets a standard Win7 icon and not the icon specified in my exe's Application Icon?

Whats the best way to make sure my desktop shortcut icon is the same icon as my exe? e.g. If I change the exe's icon then I'd like the Setup icon to change as well.

Answer

Gert Arnold picture Gert Arnold · Jan 26, 2012

If you set the icon for the shortcut you can set a primary output as source. In the file system editor of the setup project, click on the "(Icon)" combobox in the properties pane of the shortcut, then option "(Browse...)", button "Browse...". You'll see this:

Add Output

Then add output and select the primary output of the exe.