aliens

Author Topic: exe and taskbar icon?  (Read 7697 times)

Offline Viaro

  • Sergeant
  • **
  • Posts: 19
    • View Profile
exe and taskbar icon?
« on: August 06, 2013, 02:06:30 am »
My icon for the main OpenXcom.exe file disappeared, and I really like the blue alien icon :(

I don't know how to get it back - I have windows 8, which makes it harder for me to manually find and reset it.

It must be from a mod or nightly build that replaced the .exe, because base 0.9 had the icon.

Help?

~ Viaro

« Last Edit: August 06, 2013, 03:33:21 pm by Viaro »

Offline kkmic

  • Commander
  • *****
  • Posts: 582
  • Undefined
    • View Profile
Re: exe and taskbar icon?
« Reply #1 on: August 06, 2013, 10:16:48 am »
Mods don't replace your application icon.

Have you tried a fresh install/git build to see if the problem persists?

Offline moriarty

  • Commander
  • *****
  • Posts: 1421
    • View Profile
    • Luke's OX mod site
Re: exe and taskbar icon?
« Reply #2 on: August 06, 2013, 12:54:41 pm »
The git-built .exe files don't have the icon. I guess it's because of the builder, although I don't know jack about that stuff :)

you could always keep the original (0.9) exe file somewhere, and manually assign the icon to the link...

Offline Amunak

  • Colonel
  • ****
  • Posts: 101
    • View Profile
    • My homepage (czech only)
Re: exe and taskbar icon?
« Reply #3 on: August 06, 2013, 01:59:09 pm »
I had this problem too. You can just find the .ico file in the repo, download it and set it as the shortcut icon manually.

Offline Viaro

  • Sergeant
  • **
  • Posts: 19
    • View Profile
Re: exe and taskbar icon?
« Reply #4 on: August 06, 2013, 03:28:15 pm »
:S I can't add an icon. I tried using resource hacker, but it didn't work. Other exe files show the icon, but this one couldn't be replaced.

I have the icon, and know a way to add it, but the exe doesn't seem able to receive it :(

Help? Or should I stop worrying about an icon?


EDIT: I have updated to the latest build. Problem still there. Exe file not able to receive any icons.
« Last Edit: August 06, 2013, 03:33:53 pm by Viaro »

Offline Viaro

  • Sergeant
  • **
  • Posts: 19
    • View Profile
Re: exe and taskbar icon?
« Reply #5 on: August 06, 2013, 04:27:56 pm »
Problem solved!

I can't change the icon of the original .exe, but I can change the icon of a shortcut.


Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2160
    • View Profile
Re: exe and taskbar icon?
« Reply #6 on: August 06, 2013, 08:25:02 pm »
The git-built .exe files don't have the icon. I guess it's because of the builder, although I don't know jack about that stuff :)

you could always keep the original (0.9) exe file somewhere, and manually assign the icon to the link...
This. Maybe I'll add the ICO on future releases so people always have it handy.

Offline moriarty

  • Commander
  • *****
  • Posts: 1421
    • View Profile
    • Luke's OX mod site
Re: exe and taskbar icon?
« Reply #7 on: August 06, 2013, 10:41:42 pm »
Problem solved!

I can't change the icon of the original .exe, but I can change the icon of a shortcut.

yes, that's what I meant. it's also cleaner, because every new git build installation will overwrite the exe, but since the name stays the same, the shortcut (what I called "link") will still work, and retain the icon. :)

Offline Viaro

  • Sergeant
  • **
  • Posts: 19
    • View Profile
Re: exe and taskbar icon?
« Reply #8 on: August 07, 2013, 05:42:26 am »
Yep, that makes a lot of sense. Too bad I didn't understand what you meant at first :P Or I did, I just didn't understand why it wasn't working for the original, and wanted to fix it.

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: exe and taskbar icon?
« Reply #9 on: August 07, 2013, 07:23:10 am »
extract to the same folder as openxcom.exe and run addicon.bat
rcedit will insert the icon resource into the executable.
« Last Edit: August 07, 2013, 08:49:34 am by Warboy1982 »