Comments (7)
@paulcbetts since you're the one that made the assertion in Squirrel/Squirrel.Windows#545 (comment) that the version fields are 8-bit, is this a 32-bit executable versus 64-bit executable thing?
from rcedit.
Citation Needed? I'm not sure I believe you, but if it's true that'd be rad
from rcedit.
Both 32-bit and 64-bit executables use the same format for these version resources: a 64-bit value containing four 16-bit fields.
I tested this patch using the updated rcedit.exe with a Squirrel build. The Setup.exe file that Squirrel generates is a 32-bit executable, and the patch works fine with it.
from rcedit.
For reference, the code that actually sets these values in rcedit is in rescle.cc
lines 215-216 and 241-242. Both are the same code:
root->dwProductVersionMS = v1 << 16 | v2;
root->dwProductVersionLS = v3 << 16 | v4;
The dwProductVersionMS
and dwProductVersionLS
fields are defined in verrsrc.h
:
DWORD dwProductVersionMS; /* e.g. 0x00030010 = "3.10" */
DWORD dwProductVersionLS; /* e.g. 0x00000031 = "0.31" */
from rcedit.
And here's the MSDN reference while I'm at it. :-)
FILEVERSION version
Binary version number for the file. The version consists of two 32-bit integers, defined by four 16-bit integers. For example, "FILEVERSION 3,10,0,61" is translated into two doublewords: 0x0003000a and 0x0000003d, in that order. Therefore, if version is defined by the DWORD values dw1 and dw2, they need to appear in the FILEVERSION statement as follows: HIWORD(dw1), LOWORD(dw1), HIWORD(dw2), LOWORD(dw2).PRODUCTVERSION version
Binary version number for the product with which the file is distributed. The version parameter is two 32-bit integers, defined by four 16-bit integers. For more information about version, see the FILEVERSION description.
from rcedit.
Nice!
from rcedit.
Fixed by #7.
from rcedit.
Related Issues (20)
- Exit code 1 with no output HOT 1
- Triggers false positive for windows defender golang
- Windows on ARM support HOT 1
- Using this tool am I able to add an icon to an *.exe file? HOT 1
- After change icon the exe file become invalid HOT 5
- Some icons appear blurry when viewed at higher resolution
- how to resue icon on window titlebar HOT 1
- does this run on linux/macos? HOT 1
- [Question] `rcedit` does not change Taskbar icon?
- get-version-string on LegalCopyright does not show the copyright character correctly HOT 1
- Error: Command failed with a non-zero return code (1): HOT 1
- Not working - resulting file half the size, crashes on start. HOT 8
- copy resources from another PE file
- Won't work HOT 1
- rcedit.exe failed - Unable to connect HOT 1
- rcedit.exe fails often in python and windows bat script. HOT 4
- Diacritics in path prevents using --set-icon or rcedit
- Publish rcedit.exe to Maven
- Fatal error: Unable to set icon HOT 6
- rcedit --set-icon triggers BSOD (Blue Screen of Death)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rcedit.