Resource Hacker

Discussion in 'Tutorials' started by digitaldon37, Jan 4, 2009.

  1. digitaldon37

    digitaldon37 Active Member Licensed User

    Note: This applies to the PC

    The compiled executables that B4PPC produces usually don't have the correct information within them. For example, if you place a compiled program in the apps directory for PortableAppsMenu the program icon will be listed, but not the name. This is because these programs get information from the resource area (usually in the "Version Info" section)

    One way that I have found to fix this is with Resource Hacker:

    Resource Hacker

    Here is an example resource that I corrected for the Windiff program:
    Code:
    VALUE "CompanyName""Microsoft Corporation"
          VALUE 
    "FileDescription""File comparison utility"
          VALUE 
    "FileVersion""5.2.3790.0 (srv03_rtm.030324-2048)"
          VALUE 
    "InternalName""WINDIFF.EXE"
          VALUE 
    "LegalCopyright""© Microsoft Corporation. All rights reserved."
          VALUE 
    "OriginalFilename""WINDIFF.EXE"
          VALUE 
    "ProductName""MS WinDiff"
          VALUE 
    "ProductVersion""5.2.3790.0"
    Looking at the resource area for snip (a B4PPC utility written by tremera, used to store snips of code) shows this:

    Code:
    VALUE "FileDescription"" "
          VALUE 
    "FileVersion""0.0.0.0"
          VALUE 
    "InternalName""1.exe"
          VALUE 
    "LegalCopyright"" "
          VALUE 
    "OriginalFilename""1.exe"
          VALUE 
    "ProductVersion""0.0.0.0"
          VALUE 
    "Assembly Version""0.0.0.0"
    Adding a value for ProductName with Resource Hacker fixes the entry for the PortableAppsMenu.
     
    Last edited: Jan 4, 2009
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice