ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

ResHacker.exe -extract then -modify error?

(1/2) > >>

electronixtar:
Hi DC,

I am writing a script to modify chrome.dll using Resource Hacker, here's the script:

--- ---ResHack.exe -extract chrome.dll, test.rc, 9,101,
ResHack.exe -modify  chrome.dll, chromenew.dll, test.rc, 9,101,
The log says

ResHack.exe -modify  chrome.dll, chromenew.dll, test.rc, 9,101,
Error: Invalid resource type.
--- End quote ---

Anybody know why?

BTW, any free commandline tools for extract and modify PE's resources?

scancode:
Hi DC,

I am writing a script to modify chrome.dll using Resource Hacker, here's the script:

--- ---ResHack.exe -extract chrome.dll, test.rc, 9,101,
ResHack.exe -modify  chrome.dll, chromenew.dll, test.rc, 9,101,
The log says

ResHack.exe -modify  chrome.dll, chromenew.dll, test.rc, 9,101,
Error: Invalid resource type.
--- End quote ---

Anybody know why?

BTW, any free commandline tools for extract and modify PE's resources?
-electronixtar (August 18, 2009, 04:34 AM)
--- End quote ---

Hello!
As far as I know, ResHacker does NOT support importing .rc files.
You can try this free nifty tool by XPero to make a ResHacker script, or compile the RC file to a RES file (and then use reshacker to modify it), using for example, the free Pelles Resource Compiler
(Attached here [attachimg=1 ][/attachimg]or can be grabbed from the Pelles C Compiler website])

Have fun reshacking!

electronixtar:
As far as I know, ResHacker does NOT support importing .rc files.-scancode (August 18, 2009, 01:12 PM)
--- End quote ---

Thank you scancode. Your tool is very helpful.

Too bad ResHacker does not support .rc import, another issue is ResHacker.exe -extract does not produce standard .rc files, it's ResHacker's own special format with extesion name .rc. I think I need another tool for correcet .rc exporting.

scancode:
it's ResHacker's own special format with extesion name .rc-electronixtar (August 18, 2009, 08:46 PM)
--- End quote ---

Would you be interested in a reshacker -> rc converter?

electronixtar:
it's ResHacker's own special format with extesion name .rc-electronixtar (August 18, 2009, 08:46 PM)
--- End quote ---

Would you be interested in a reshacker -> rc converter?
-scancode (August 18, 2009, 08:50 PM)
--- End quote ---

Yes please provide a small and convenient one. I need it in one of my auto modify scripts.

Navigation

[0] Message Index

[#] Next page

Go to full version