Jump to content

Resource Editing


vernalex
 Share

Recommended Posts

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

Link to comment
Share on other sites

  • Developers

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...