Invalid icon file located in 'application folder'
Asked Answered
E

6

38

in my Setup project i delete icon and add new one now when i build the setup project i have this error

Invalid icon file xxx located in 'application folder'

i use VS 2010

Eloyelreath answered 29/8, 2012 at 16:51 Comment(0)
A
93

I think this might help you:

Add a valid icon in the Project. Then left click to select the installer project (in solution explorer). Go to properties window, change the AddRemoveProgramsIcon. Browse and set it to the newly added valid icon.

Anoxemia answered 29/8, 2012 at 16:58 Comment(3)
Note: To open properties window, select the project (in solution explore) and use the menu: "View / Properties Window"Wartow
Shortcut to open properties window is select the project in solution explore and press F4Middy
+1 Aarghh I was staring at those properties looking for an "Icon" property, never saw "AddRemoveProgramsIcon"Bughouse
B
9

Alternately, just change the AddRemoveProgramsIcon value to "None" in your install project, if you are not ready to specify an icon file yet.

Buffet answered 8/10, 2012 at 17:52 Comment(0)
C
5

I was having the same issue, I had the icon in my application folder, I saw it in the explorer, everything looked fine, but I was having problems with TFS, going back and forward then the problem appeared, what I did was the following:

  1. Went to my Setup project properties and on the AddRemoveProgramsIcon property clicked on Browse, then saw that the file name was there but not the physical icon as in the image below

No physical icon

  1. Click on browse and searh in the Application Folder for my icon, then inserted it as, then saw the physical icon as in the image below

enter image description here enter image description here

  1. Then rebuild and everything was ok
Crab answered 30/5, 2013 at 15:18 Comment(2)
Restart as well!Anemoscope
no joy here. This used to be so easy to do, but anytime I add an icon to this "folder", I get the error here. (VS2019 and the latest and greatest setup projects - this worked before, not sure why it no longer works)Elviaelvie
A
1

I think you're using that icon for shortcuts, if so you have to re-affect all shortcuts to the new icon, same thing when you delete an assembly & even if you replace it with a new one with the same name you have to re-affect all

Annapolis answered 29/8, 2012 at 17:18 Comment(0)
D
1

Use a different icon and rebuild the project again. It seems to get stuck if you use a different name. Alternatively you can also close the solution and reopen it again to clear the error.

Dispread answered 21/10, 2019 at 14:7 Comment(0)
O
0

All the above answers work, however was not exactly what I needed. If you're still having trouble getting past this error, go through the file system by double clicking one of your dependencies in your deployment folder.

Go through each sub-folder and check any shortcut you see in the folders (Type == Shortcut) and check their respective "Icon" setting.

Offutt answered 8/7, 2024 at 7:5 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.