Sign in to follow this  
Followers 0
vernalex

Resource Editing

3 posts in this topic

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. :)

Share this post


Link to post
Share on other sites



There are resource udf's available and autoitwrapper can help attaching files into the resources as well.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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... 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0