Jump to content

Resource hacker scripts


Xstyle

Recommended Posts

I saw in many icon packs something like this:

[FILENAMES]

Exe = "Backup\cdfview.dll"

SaveAs = "NewFiles\cdfview.dll"

Log = "Logs\cdfview.dll.log"

[COMMANDS]

-modify "Resources\cdfview.dll\18432.avi", AVI, 18432,

-modify "Resources\cdfview.dll\8192.ico", ICONGROUP, 8192,

-modify "Resources\cdfview.dll\8193.ico", ICONGROUP, 8193,

-modify "Resources\cdfview.dll\8194.ico", ICONGROUP, 8194,

-modify "Resources\cdfview.dll\8195.ico", ICONGROUP, 8195,

-modify "Resources\cdfview.dll\8196.ico", ICONGROUP, 8196,

-modify "Resources\cdfview.dll\8197.ico", ICONGROUP, 8197,

I want to know to make this work? I mean how to launch this commands in the text file? I read all i could find about resource hacker and i couldn't find it....so, can anyone help me?

:blushing:

Link to comment
Share on other sites


  • 2 months later...

@Xstyle

Did you find in the meanwhile a solution?

I´m also searching for that! Always Error: Invalid resource type!

ResHacker.exe -addoverwrite notepad++.exe, notepad++neu.exe, Cursor_6.cur, CUSORGROUP,1406,1033
Error: Invalid resource type.

Jolli

Link to comment
Share on other sites

@Xstyle

Did you find in the meanwhile a solution?

I´m also searching for that! Always Error: Invalid resource type!

ResHacker.exe -addoverwrite notepad++.exe, notepad++neu.exe, Cursor_6.cur, CUSORGROUP,1406,1033
Error: Invalid resource type.

Jolli

I've dropped that stuff long time ago! Not enought time!! I'm working on something else...(-when i've got the time-)........ :wacko:

Link to comment
Share on other sites

You can always try to read the manual included with Reshacker.

I use also Reshacker scripts to create Nero Lite. When you specify a log file you can look up the file to see if any errors occured.

the command is

ResHacker.exe -script "PATH_TO_RESSCRIPT"

Link to comment
Share on other sites

You can always try to read the manual included with Reshacker.

I use also Reshacker scripts to create Nero Lite. When you specify a log file you can look up the file to see if any errors occured.

the command is

ResHacker.exe -script "PATH_TO_RESSCRIPT"

i know how it works -after reading the manual- thanx anyway! :blink:

Link to comment
Share on other sites

Yes, i´ve read the manual but don´t know whats wrong!

[FileNames]
Exe=notepad++.exe
SaveAs=notepad++_deu.exe
Log=notepad++_deu.log

[Commands]
-addoverwrite Dialog139.rc, DIALOG,139,1033
Error: Invalid resource type.

How does the Script have to be written?

I extractet from orginal .exe Dialog139.rc, translate it and would save back! What´s wrong?

Is this why always an error comes up?

139 DIALOGEX 0, 0, 186, 103
STYLE DS_SETFOREGROUND | WS_MAXIMIZEBOX | WS_POPUP | WS_CLIPCHILDREN | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
EXSTYLE WS_EX_TOOLWINDOW
CAPTION "Gewählter Tab"
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
FONT 8, "MS Shell Dlg"
{
CONTROL "Überschrift", 1050, BUTTON, BS_OWNERDRAW | WS_CHILD, 0, 0, 186, 10
CONTROL "", 1028, STATIC, SS_LEFT | WS_CHILD | WS_VISIBLE, 16, 28, 156, 50
CONTROL "Tab1", 1027, "SysTabControl32", TCS_TABS | TCS_BOTTOM | TCS_OWNERDRAWFIXED | WS_CHILD, 0, 14, 185, 88
}

Jolli

Link to comment
Share on other sites

I had also problems modifying dialogs using RC files. For Nero Lite I saved the altered dialog as a Resfile. As a script command

-addoverwrite "Resources\Dialogs\Nero8\1001.res", DIALOG,1001,

worked for me.

P.S. You have to specify a , as last character.

Edited by Acheron
Link to comment
Share on other sites

What do you mean with a?
Jolli, I don't understand anything about the codes. But I think Acheron talked about a comma (,) as the last character. There is a comma at the end of his code.
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
  • Recently Browsing   0 members

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