Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 17th January 2003, 23:09   #1
ein
Junior Member
 
Join Date: Feb 2001
Posts: 4
Search & Replace a binary file?

I know it's possible for text file or using VPatch with known files.
However, if I want to make a patch that search for a 85c0752f6a01 and replace it with 85c090906a01, without knownledge of the file to patch (i.e. patching a .acm file, that version update is out of my control, yet I want to make a easy way to hexedit the specific bytes) Is it possible to do it with NSIS and the plugin availble?
ein is offline   Reply With Quote
Old 18th January 2003, 10:28   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,336
NSIS itself can't edit binary files and there is no plug-in that does that I know of. You will have to write your own plug-in.

BTW, how can you be sure that 85c0752f6a01 doesn't show in the file more than once and that other time it shows in the file should be edited too?

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 19th January 2003, 18:07   #3
ein
Junior Member
 
Join Date: Feb 2001
Posts: 4
I'm trying to use NSIS to patch files like msaud32.acm or uxtheme.dll
What I'm trying to do is just removing the checking routine so normal version upgrade does not have much affect on it (unless they try to change the checking procedure). And that hack worked for WMP6,7,8,9 (except the position of code changes)
ein is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump