File version gone with resource file

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I was very happy yesterday when I figured out how to include multiple
icons in my exe file in VS 2005 (the second one is for the file type my
tool uses). I did this by creating a .res file with rc.exe, containing
just my two icons and specifying this resource file in Properties |
Application | Resources. VS used the first icon as my application icon,
and "whatever.exe,1" in HKCU finds the second icon, which is exactly
what wanted.

Unfortunately, today I noticed that the exe file doesn't seem to have a
file version anymore. I display the file version
(Application.ProductVersion) in my program, but it only shows 1.0.0.0
now. Also, the exe file properties don't have a Version page.

If I remove the resource file, the file version is back, both in the
program and in the properties.

Does this mean the res file overrides my Assembly Info settings? Is
there anything I can do?

Thanks
Oliver

.



Relevant Pages

  • UpdateResource Failure
    ... I would like to modify icon resoures in a exe file. ... I load the icon file to a byte array and then i pass it to the ... After that, I look into the exe file with the resource hacker, and the icon ...
    (microsoft.public.vb.winapi)
  • Re: COM/GUIProblem
    ... > The reason I asked for more information is that I'm not aware of any ... > user doesn't run anything at all until they drop a file on a desktop icon. ... settings to be used. ... But I suppose I could create a small .exe file ...
    (microsoft.public.win32.programmer.ui)
  • Re: Limited user doesnt get into sub main
    ... However, as a limited user, it will work fine, and then after ... > icon to a command line program icon, and brings up the standard DOS ... access on the folder containing the exe file, but no access to the exe file ...
    (microsoft.public.vb.syntax)
  • Re: Maarten, I am still having trouble
    ... icon but that I con doesn't show up on my exe file. ... Maarten wrote The icon is saved in the project's resource file. ...
    (alt.comp.lang.borland-delphi)
  • Starpacks - Setting Description, Company, File Version, etc... information
    ... When I create a starpack the .exe file has some information encoded ... Hovering over the ... icon produces a tooltip with this info: ...
    (comp.lang.tcl)