Thread: Visual studio deployment and shortcut icons

  1. #1
    Registered User
    Join Date
    Aug 2003

    Visual studio deployment and shortcut icons

    I have recently run into an extremely annoying problem at work:

    I create an MSI installer project, add the primary output of another project and an icon file.

    I then add a shortcut to the output on the desktop and on the start menu. Now the problem is I try to set the icon of the shortcut to be the icon I included in the installer project, but it won't work. The icon is still the generic windows 7 icon and not the icon i specify.

    Has anybody else encountered this and has some tips on how to fix this? I know this may sound like a trivial thing but it just looks so damn lazy to ship software to a customer without a custom icon.

    Edit: I am using Visual studio 2010 SP1 by the way.
    Last edited by Shakti; 04-26-2012 at 07:17 AM.

  2. #2
    Registered User
    Join Date
    Aug 2003
    Found a solution. Looks like windows is really picky with icons and if the Sun isn't exacly lined up with Venus and Jupiter while Pluto does a loop it just won't work.

    More serious solution: The icon needs to contain not just one icon but icons for alot of different sizes and color depths. The easiest way of doing this is to take an image (preferrably transparent background), open the image in this little program: Greenfish Icon Editor Pro Freeware download and reviews from SnapFiles and select Icon -> "Create icon from image" and make sure everything in the popup box is selected.

    This was the easiest way to get it to work for me at least.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Visual Studio DLL and Visual Basic
    By mathguy in forum C Programming
    Replies: 18
    Last Post: 12-08-2011, 03:55 PM
  2. Visual C++ and Visual Studio 2010
    By 03jh01 in forum C++ Programming
    Replies: 5
    Last Post: 10-03-2010, 04:03 AM
  3. visual studio 6 and visual difference
    By gemini_shooter in forum Tech Board
    Replies: 5
    Last Post: 02-04-2006, 01:32 AM
  4. Replies: 1
    Last Post: 05-26-2004, 09:59 AM
  5. Visual Studio 6.0 Help
    By L_I_Programmer in forum C++ Programming
    Replies: 1
    Last Post: 03-24-2003, 10:35 PM