vernalex Posted September 24, 2014 Posted September 24, 2014 I am trying to edit file version resource values on a compiled executable and I'm floundering. I believe I'm in the right area with _WinAPI_BeginUpdateResource(..), _WinAPI_UpdateResource(...) and _WinAPI_EndUpdateResource(...) functions, but I don't understand the proper struct format or the UpdateResource parameters. I've found the Microsoft articles http://msdn.microsoft.com/en-us/library/windows/desktop/aa381058(v=vs.85).aspx (for VERSIONINFO) and http://msdn.microsoft.com/en-us/library/windows/desktop/aa381049(v=vs.85).aspx (for StringFileInfo BLOCK). In particular does anyone know how to set and get the FileDescription resource data on an already compiled exe? My goal is that I can get the FileDescription field, change it, and then write it back to the exe. Realistically I want to be able to inject a bit of data into the exe so I can bake select settings into the exe. If there's a better way for doing this type of thing, such as embedding an INI after the fact, then that would be useful to me. Thank you.
Developers Jos Posted September 24, 2014 Developers Posted September 24, 2014 There are resource udf's available and autoitwrapper can help attaching files into the resources as well. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
vernalex Posted September 28, 2014 Author Posted September 28, 2014 I've looked through a great number of resource UDFs and I've yet to find one that can do it without an external executable. The wrapper can't work for me because it needs to be after compilation. Hmmmm...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now