2

What could be the possible cause of trailing spaces in Version Info of the resulting executable file? How to remove them ? (Removing the spaces with Resource Hacker yields the executable corrupted)

This is the excerpt from Version Info, viewed with Resource Hacker.

BLOCK "StringFileInfo"
{
    BLOCK "000004b0"
    {
        VALUE "Comments", "This installation was built with Inno Setup."
        VALUE "CompanyName", "name                                                        "
        VALUE "FileDescription", "installer                                                  "
        VALUE "FileVersion", "3.0.5.0             "
        VALUE "LegalCopyright", "copyright                                                                                           "
        VALUE "OriginalFileName", "file.exe                                        "
        VALUE "ProductName", "some product                                               "
        VALUE "ProductVersion", "3.0.5.0                                           "
    }
}

Thank you.

wonderingdev
  • 1,132
  • 15
  • 28

1 Answers1

3

I'm afraid that it's just how it works.

Inno Setup-generated exe is based on a pre-built binary. It includes "Version Info" placeholder with a fixed space for each field. On compile time that placeholder is filled with real data, keeping remaining spaces.

See the "Version Info" placeholder in Inno Setup repository.

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992