InstallShield: cannot extract icon with index 0

epalm picture epalm · Apr 13, 2011 · Viewed 20.8k times · Source

I can't seem to figure out why this error is occurring when I build my setup.exe installation file.

Error 5 -3204: Cannot extract icon with index 0 from file C:\dev\MyProj4\MyProjClientWpf\obj\x86\Release\MyProjClient.exe. ISEXP : error : -3204: Cannot extract icon with index 0 from file C:\dev\MyProj4\MyProjClientWpf\obj\x86\Release\MyProjClient.exe.

In the Shortcuts/Folders section, for the shortcut I'm generating, Icon File is blank, and Icon Index is 0. Whatever default icon is fine, I didn't specify one nor do I even want one.

Any ideas?

Answer

saviiles picture saviiles · Jan 10, 2014

I was getting this problem, I try a lot of solutions on the web, but the only way that works for me:

  1. Expand the setup project (Solution Explorer)
  2. Expand the menu "Configure the Target System"
  3. Double click on Shortcuts folder
  4. Here you will find 2 output you set up in the project wizard.
  5. Select one of them, and find the property Icon, click to (...) to browse the propertly icon.
  6. Do the same with the second one output built solution.
  7. Rebuild your project!

Regards,