Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. The .exe application file isn't obfuscated after installing setup ?

The .exe application file isn't obfuscated after installing setup ?

Scheduled Pinned Locked Moved C#
csharpdebugginghelptutorialquestion
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    taibc
    wrote on last edited by
    #1

    Hi, I am creating a setup project for my solution in C#, and I created a merge module that include all obfuscated assembly files (.dll files, and the .exe file), then add it to the setup project Before building the setup project, I replace assembly files (in the Bin/Debug) by obfuscated files. After building the project, .dll files still are obfuscated, however the .exe file isn't obfuscated. Are there anyone know how to fix that ? Thank you very much !

    P S 2 Replies Last reply
    0
    • T taibc

      Hi, I am creating a setup project for my solution in C#, and I created a merge module that include all obfuscated assembly files (.dll files, and the .exe file), then add it to the setup project Before building the setup project, I replace assembly files (in the Bin/Debug) by obfuscated files. After building the project, .dll files still are obfuscated, however the .exe file isn't obfuscated. Are there anyone know how to fix that ? Thank you very much !

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      I suspect, from this question, that you are manually obfuscating the file. When your setup is built, though, it rebuilds the executable, so that the file is no longer obfuscated - (you'll see the same behaviour if you manually apply a certificate to your code). The trick is to run the obfuscation process as a PostBuild process - which means that the setup will get the obfuscated version.

      I was brought up to respect my elders. I don't respect many people nowadays.
      CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

      T 1 Reply Last reply
      0
      • P Pete OHanlon

        I suspect, from this question, that you are manually obfuscating the file. When your setup is built, though, it rebuilds the executable, so that the file is no longer obfuscated - (you'll see the same behaviour if you manually apply a certificate to your code). The trick is to run the obfuscation process as a PostBuild process - which means that the setup will get the obfuscated version.

        I was brought up to respect my elders. I don't respect many people nowadays.
        CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

        T Offline
        T Offline
        taibc
        wrote on last edited by
        #3

        Thanks Pete very much, Could you please tell me more how to use PostBuild process ? I'm using the Crypto Obfuscator software to obfuscate assembly files. And I can see the properties of Setup project include the PostBuildEvent but I don't know how to use it (I am using Visual Studio 2010) Thanks and regards, Tai

        P 1 Reply Last reply
        0
        • T taibc

          Thanks Pete very much, Could you please tell me more how to use PostBuild process ? I'm using the Crypto Obfuscator software to obfuscate assembly files. And I can see the properties of Setup project include the PostBuildEvent but I don't know how to use it (I am using Visual Studio 2010) Thanks and regards, Tai

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          Have a look at this[^]

          I was brought up to respect my elders. I don't respect many people nowadays.
          CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

          T 1 Reply Last reply
          0
          • P Pete OHanlon

            Have a look at this[^]

            I was brought up to respect my elders. I don't respect many people nowadays.
            CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

            T Offline
            T Offline
            taibc
            wrote on last edited by
            #5

            Hi Pete, thank you Could you tell me more detail about creating obfuscated setup project ? My solution includes some project: 1. Start up project (create application file) 2. Library projects (create dll files) 3. Merge project (include obfuscated assembly files) 4. Setup project Thanks and regards,

            1 Reply Last reply
            0
            • T taibc

              Hi, I am creating a setup project for my solution in C#, and I created a merge module that include all obfuscated assembly files (.dll files, and the .exe file), then add it to the setup project Before building the setup project, I replace assembly files (in the Bin/Debug) by obfuscated files. After building the project, .dll files still are obfuscated, however the .exe file isn't obfuscated. Are there anyone know how to fix that ? Thank you very much !

              S Offline
              S Offline
              Samer AlRawi
              wrote on last edited by
              #6

              Hi, You can drag and drop the project file to Eazfuscator.Net and it will handle the Obfuscation of your binaries every time you compile with release, if you are using different Obfuscator check how to obfuscate the project file, I believe rebuilding your solution is recompiling the .exe and overwrite your Obfuscated .exe then the setup project will include the new non-Obfuscated file.

              T 1 Reply Last reply
              0
              • S Samer AlRawi

                Hi, You can drag and drop the project file to Eazfuscator.Net and it will handle the Obfuscation of your binaries every time you compile with release, if you are using different Obfuscator check how to obfuscate the project file, I believe rebuilding your solution is recompiling the .exe and overwrite your Obfuscated .exe then the setup project will include the new non-Obfuscated file.

                T Offline
                T Offline
                taibc
                wrote on last edited by
                #7

                Thanks Samer, I am trying to use Crypto Obfuscator and Dotfuscator. I only rebuild setup project (not the solution) but it make the .exe recompiling. I don't know why ?

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups