Red Gate forums :: View topic - How to modyfy the Resources in EXE file?
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
.Net Reflector 6.x and .NET Reflector 6.x Pro
.Net Reflector 6.x and .NET Reflector 6.x Pro forum

How to modyfy the Resources in EXE file?

Search in .Net Reflector 6.x and .NET Reflector 6.x Pro forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
aRTx



Joined: 08 Nov 2010
Posts: 1
Location: Albania

PostPosted: Mon Nov 08, 2010 10:00 am    Post subject: How to modyfy the Resources in EXE file? Reply with quote

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...
Back to top
View user's profile Send private message
haleyjason



Joined: 25 Oct 2008
Posts: 78
Location: Seattle, WA

PostPosted: Thu Nov 25, 2010 4:55 pm    Post subject: ILDasm Reply with quote

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/06/Round-Tripping-a-simple-Net-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
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group