views:

445

answers:

1

I have created a form in C#.net which ask for key and check validity (expiry date). i place this form as first running form in my application. first time it takes key and every next time loading it check for expiration policy which saved through key in registry. this form is working fine. but now i want to create a another application which browse any exe created in C# or other language and generate new exe (with my validation form as startup form). means i want to create software which place my form as startup form to any Exe. so that it can work as anti piracy for any application (exe).

A: 

You can analyse and modify .NET applications with the Cecil Library.
http://www.mono-project.com/Cecil

You need to add your form class. Then remember the class that gets loaded in the original application. Load that instead from your form and change the startup to your form.

David R
actually i want solution how to wrap any exe in my own exe built in dot net. i dont want to change code in any exe i just want to wrap it in my exe.
Rajesh Rolen- DotNet Developer