Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

InstallShield: cannot extract icon with index 0

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?

like image 833
epalm Avatar asked Apr 13 '11 16:04

epalm


1 Answers

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,

like image 162
saviiles Avatar answered Oct 18 '22 20:10

saviiles