Search code examples
c#visual-studiovisual-studio-2013obfuscationconfuserex

ConfuserEx With Visual Studio Installer Setup Project, Obfuscation not working properly?


I have created single layer windows form application and added one Visual Studio Install Setup Project to create the installation wizard using Visual Studio 2013.

So my application contains one .exe file and number of .dll files (SQLite, EntitiyFramework, etc) and other publish items. I am trying to Obfuscate my code using ConfuserEx.

  1. For that, first I have created the publish build using my Visual Studio 2013.
  2. Using ConfuserEx, obfuscated my publish .exe file. This step was working fine. I tried to decompile the obfuscated .exe file and got the unreadable code files. So that means, the process works fine.
  3. Then I have replaced the obfuscated exe file with release exe file (..\bin\Release\appName.exe).
  4. Then, rebuilt the installer setup project to generate the setup.exe file.
  5. Then I have installed the software using setup.exe. Installation was success.
  6. Decompiled the installed application exe using .NET Reflector 9
  7. Decompiler shows the exact source of my project. So that means something is wrong in the obfuscation process.

Anyone know how to fix this issue?


Solution

  • I find the issue.

    I was replacing the ..bin\Release\AppName.exe file instead of ..obj\Release\Appname.exe

    Now it is working fine.

    Thanks.