Morning all,
Im trying to create a custom icon for the application shortcut, but for some reason it wont allow me to select the icon i have created.
Creation of Icon
1) i took a jpeg, scaled it down so its roughly the same size as a normal icon.
2) I saved it as 24bit bitmap, with the name "Voss.ico".
3) Selected a folder on my desktop and sucessfully managed to change its icon to the picture above.
In Visual Studio 2010.
1) Specified the primary output to be put into the aplication folder.
2) Right clicked and selected create shortcut.
3) selected the shortcut and in the properties window, clicked icon, browse, browse,application folder, add file.
4) selected my icon file mentioned above.
5) selected open, ok.
6) This is the last window and for some reason the icon isnt showing up so i cant select it. I know its suppose to show up as i found a video on youtube Video @ 1min 54 seconds.
Has anyone else experienced this issue + how did u get around it?
Thanks
Setup project, custom icon
Page 1 of 15 Replies - 1877 Views - Last Post: 20 January 2012 - 05:59 PM
Replies To: Setup project, custom icon
#2
Re: Setup project, custom icon
Posted 17 January 2012 - 05:18 AM
I add all my images as a resource attached to my project, makes them a lot simpler to access from the code. Also allows you to choose your resources from a list in Visual Studios GUI when you need to place them.
http://msdn.microsof...y(v=vs.90).aspx
http://msdn.microsof...y(v=vs.90).aspx
#3
Re: Setup project, custom icon
Posted 17 January 2012 - 05:30 AM
i tried adding the icon i had created via the info in the link you provided but after used "add existing image" i got the following error.
i dont understand how i could use the image to replace an existing icon on my desktop yet it says its invalid.
Any ideas?? Thanks again for your help
Quote
Resource 'Voss' could not be instantiated. The resource value contains invalid data or has an incorrect format.
i dont understand how i could use the image to replace an existing icon on my desktop yet it says its invalid.
Any ideas?? Thanks again for your help
#4
Re: Setup project, custom icon
Posted 17 January 2012 - 05:40 AM
Are you sure that your Voss.ico file is correctly encoded? Meaning is it OK? From the error, you're getting, I would say it hasn't been saved(encoded) properly?
When you saved the icon, did you save it as a .ico or did you save it as a bmp and then rename it to .ico?
When you saved the icon, did you save it as a .ico or did you save it as a bmp and then rename it to .ico?
#5
Re: Setup project, custom icon
Posted 17 January 2012 - 06:18 AM
Its working now. Rex, your right, i had opened a jpeg, resized it to random size, ie not 32x32 or XYxXY(i think this was one of the mistaked i made). I then saved it as "Voss.ico" and saved it as a 24bit bitmap.
The following is what i had to do to get this to work. Note: its based on what Negligible had stated so thanks go out to him for the link.
1) Right clicked "properties" in solution explorer
2) Select "Open"
3) Selected resource tab
4) Add Resource -> add new icon.
5) Open MS Paint with the image you want as an icon.
6) Resize image so its 94x94 or 32x32 etc (see bottom right of MS Paint). (i think it has to be a bitmap but im not 100% sure)
7) Copy Image.
8) Right click below 32x32 and selected "new image type".
9) Selected the appropriate size, and then pasted in the resized image from paint.
10) Save.
11) Return to the Solution explorer window.
12) Select the setup file and then clicked the File System Editor icon at the top of the Solution Explorer window.
13) Select Application Folder on the far left.
14) Select "Primary Output".
15) Right click and select "Create Shortcut for...".
16) Select the new Shortcut.
17) Properties Window, click on "Icon" and browse through the folders till you find where you saved the icon.
18) Build solution.
Hopefully the above will help anyone who encounters the same issue that i had.
Thanks again to Negligible and RexGrammer
The following is what i had to do to get this to work. Note: its based on what Negligible had stated so thanks go out to him for the link.
1) Right clicked "properties" in solution explorer
2) Select "Open"
3) Selected resource tab
4) Add Resource -> add new icon.
5) Open MS Paint with the image you want as an icon.
6) Resize image so its 94x94 or 32x32 etc (see bottom right of MS Paint). (i think it has to be a bitmap but im not 100% sure)
7) Copy Image.
8) Right click below 32x32 and selected "new image type".
9) Selected the appropriate size, and then pasted in the resized image from paint.
10) Save.
11) Return to the Solution explorer window.
12) Select the setup file and then clicked the File System Editor icon at the top of the Solution Explorer window.
13) Select Application Folder on the far left.
14) Select "Primary Output".
15) Right click and select "Create Shortcut for...".
16) Select the new Shortcut.
17) Properties Window, click on "Icon" and browse through the folders till you find where you saved the icon.
18) Build solution.
Hopefully the above will help anyone who encounters the same issue that i had.
Thanks again to Negligible and RexGrammer
#6
Re: Setup project, custom icon
Posted 20 January 2012 - 05:59 PM
I would suggest for people who want to create icons use IcoFX.
http://icofx.ro/index.html
Although it is a new version and now costs money,
here is an older version of it that is free.
https://sites.google...redirects=0&d=1
If it doesn't download, then just click the download on here:
https://sites.google...hodle/downloads
This is WAY better then Visual Studio's Icon Editor for it's ability to create 256x256 icons and it's advanced icon tools.
They improved it and added a price now.
I am lucky I downloaded it early before it costed money.
If you would pay the money and buy the new IcoFX, do not, instead buy this, Microsoft uses it to create their amazing icons:
http://www.axialis.com/iconworkshop/
http://icofx.ro/index.html
Although it is a new version and now costs money,
here is an older version of it that is free.
https://sites.google...redirects=0&d=1
If it doesn't download, then just click the download on here:
https://sites.google...hodle/downloads
This is WAY better then Visual Studio's Icon Editor for it's ability to create 256x256 icons and it's advanced icon tools.
They improved it and added a price now.
I am lucky I downloaded it early before it costed money.
If you would pay the money and buy the new IcoFX, do not, instead buy this, Microsoft uses it to create their amazing icons:
http://www.axialis.com/iconworkshop/
This post has been edited by blogwhodle: 20 January 2012 - 05:59 PM
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|