Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
Hello dear's.......................
 

Can anyone tell me about how to create a setup package for obfuscated code in C# Windows Application?
 

Thanks in advance,
 
Gaurav kumar
Software Developer
Wink | ;)
Posted 12-Jan-11 1:47am
Edited 12-Jan-11 1:52am
Estys12.1K
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

You will typically need to obfuscate the assemblies AFTER they are built but BEFORE they are put in the setup package. This can be done using MSBUild integration of the obfuscation step in your build process. See Crypto Obfuscator which supports this scenario.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

What obfuscation package? Have you asked the manufacturer of the obfuscation package for help?
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Well you can create Merge Module (msm file) for obfuscated code and later when you will create the installer (msi file) just merge the msm here...
 
Follow this MSDN[^] page to get the idea about MSM and MSI and how to create them. Smile | :)
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 5

I agree with jmcc2k above. However, if you don't have a sophistocated Obfuscator and/or yo don't want to mess with editing the MSBuild, then you can try my solution below.
 
If you are using the included Dotfuscator CE in Visual Studio, a relatively easy (but cumbersome) way to do it is:
1) Build your executable the normal way.
2) Run Dotfuscator.
3) Using Windows Explorer, manually overwrite the exe you generated from step 1 above with the one generated by the Dotfuscator (i.e., copy the Dotfuscated exe and paste it where the original exe file is, which is probably in your Release folder).
4) Create a setup project and build that. The setup project will see the exe file and won't care that it came from Dotfuscator.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 210
1 Richard MacCutchan 100
2 kbrandwijk 90
3 ChauhanAjay 80
4 ProgramFOX 80
0 Sergey Alexandrovich Kryukov 9,050
1 OriginalGriff 8,151
2 CPallini 2,613
3 Richard MacCutchan 2,221
4 Abhinav S 1,928


Advertise | Privacy | Mobile
Web02 | 2.8.140827.1 | Last Updated 31 Aug 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100