Click here to Skip to main content
15,892,643 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
I have an installer attached to a C# program it seems to be creating the directory structure that is required and short cuts, the issue is in the short cuts on the desk top and the all programs menu uses a custom icon which I can only get to if it is Included it as a separate item in the installer project which then gets installed.
What have I missed, the MSDN pages don't seem to help.

Glenn
Posted

You haven't missed anything. That is correct.

To use a custom icon for the short cuts and executable you must include the custom icon in the install.

If you want to change it change the reference on the installer.
 
Share this answer
 
Comments
glennPattonWork3 21-Jun-12 11:47am    
Umm, how can you do that without adding it to the project ?
[no name] 21-Jun-12 12:29pm    
AFAIK, you can't. How do you expect the installer to map an unknown location?
glennPattonWork3 22-Jun-12 4:42am    
Is there a good guide to creating the shortcuts as I don't want to install the executable on the desktop.
Umm... the solution is below, a friend of mine came up with it. I appears to work!

In the setup project, select the shortcut.

In the properties, go to the (Icon) property and select (Browse…) to get the icon selection dialog

Click the browse button.

Change the “Files of type” to look for exe’s

Find your main executable and select it, then pick an icon from the exe.

This will give the shortcut the correct icon.



No need to have a separate icon file or anything…..
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900