How to modyfy the Resources in EXE file?

Explore, browse and analyze .NET assemblies

Moderators: Luke Jefferson, Charles Brown, StephenC, Alex.Davies, Greg.Tillman, melvyn.harbour

How to modyfy the Resources in EXE file?

Postby aRTx » Mon Nov 08, 2010 10:00 am

I have an application with no source code, t's not obfuscated.

I want to make a change at the reports!
I have used CrystalReports, I see that file bill.rpt at the Resources with .Net Reflector, I have extract it but now how to add that new bill.rpt at the same exe file?

If i'm wrong, can anyone suggest what to do ? pls...
aRTx
 
Posts: 1
Joined: Mon Nov 08, 2010 9:49 am
Location: Albania

ILDasm

Postby haleyjason » Thu Nov 25, 2010 4:55 pm

Easiest way I've found to do that sort of thing is to use ILDasm to extract all the IL into a file and extract all the resources. Just take the resource you want to edit, edit it, put it back in the same folder you extracted all the il to and then use ILAsm to put it back together.

A simple example of the round tripping of a .net assembly (what the process I described above is called) can be found here: http://jasonhaley.com/blog/post/2004/06 ... t-exe.aspx though it doesn't cover taking the resources file and converting it to an resx file so you can edit it in VS.

You can use ther Resgen.exe tool to convert the resources file to an resx file - and vice versa. http://msdn.microsoft.com/en-us/library/ccec7sz1(VS.71).aspx
haleyjason
 
Posts: 78
Joined: Sat Oct 25, 2008 5:34 pm
Location: Seattle, WA


Return to .Net Reflector 6.x and .NET Reflector 6.x Pro

Who is online

Users browsing this forum: No registered users and 0 guests