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. how to reduce the size of exe File ...

how to reduce the size of exe File ...

Scheduled Pinned Locked Moved C#
comhelptutorial
12 Posts 7 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.
  • N Offline
    N Offline
    nassimnastaran
    wrote on last edited by
    #1

    Hi All ! the size of my exe file is about 1.5 mb .I just used Microsoft.Office.Interop.Excel.dll and Word in preferences. thanks for any help me to introduce a way to decrease the size of Exe file. Regards !

    D R P L 4 Replies Last reply
    0
    • N nassimnastaran

      Hi All ! the size of my exe file is about 1.5 mb .I just used Microsoft.Office.Interop.Excel.dll and Word in preferences. thanks for any help me to introduce a way to decrease the size of Exe file. Regards !

      D Offline
      D Offline
      DaveyM69
      wrote on last edited by
      #2

      Normally in a small application, the app's Icon (and any other included images/resources) are the biggest bloat.

      Dave
      Binging is like googling, it just feels dirtier. Please take your VB.NET out of our nice case sensitive forum. Astonish us. Be exceptional. (Pete O'Hanlon)
      BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)

      1 Reply Last reply
      0
      • N nassimnastaran

        Hi All ! the size of my exe file is about 1.5 mb .I just used Microsoft.Office.Interop.Excel.dll and Word in preferences. thanks for any help me to introduce a way to decrease the size of Exe file. Regards !

        R Offline
        R Offline
        RobCroll
        wrote on last edited by
        #3

        Obfuscation will not only make the exe smaller but also protect your IP.

        "You get that on the big jobs."

        P N 2 Replies Last reply
        0
        • N nassimnastaran

          Hi All ! the size of my exe file is about 1.5 mb .I just used Microsoft.Office.Interop.Excel.dll and Word in preferences. thanks for any help me to introduce a way to decrease the size of Exe file. Regards !

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #4

          Have my wife wash it.

          P 1 Reply Last reply
          0
          • R RobCroll

            Obfuscation will not only make the exe smaller but also protect your IP.

            "You get that on the big jobs."

            P Offline
            P Offline
            PIEBALDconsult
            wrote on last edited by
            #5

            Prove it.

            R 1 Reply Last reply
            0
            • P PIEBALDconsult

              Prove it.

              R Offline
              R Offline
              RobCroll
              wrote on last edited by
              #6

              void GetDataFromDatabaseSortedByCustomerName()
              {
              int customerId;
              //more maintainable code with meaningful naming
              }

              Obfuscated

              void a()
              {
              int a;
              //more unmaintainable code with meaningless names like b, c, x
              }

              The obfuscated IL code is going to be smaller

              "You get that on the big jobs."

              P 1 Reply Last reply
              0
              • P PIEBALDconsult

                Have my wife wash it.

                P Offline
                P Offline
                Peter_in_2780
                wrote on last edited by
                #7

                What's her email again? ;P Peter

                Software rusts. Simon Stephenson, ca 1994.

                1 Reply Last reply
                0
                • R RobCroll

                  void GetDataFromDatabaseSortedByCustomerName()
                  {
                  int customerId;
                  //more maintainable code with meaningful naming
                  }

                  Obfuscated

                  void a()
                  {
                  int a;
                  //more unmaintainable code with meaningless names like b, c, x
                  }

                  The obfuscated IL code is going to be smaller

                  "You get that on the big jobs."

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

                  Trouble is, it does absolutely sod all to protect your IP.

                  *pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

                  "Mind bleach! Send me mind bleach!" - Nagy Vilmos

                  My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

                  R 1 Reply Last reply
                  0
                  • N nassimnastaran

                    Hi All ! the size of my exe file is about 1.5 mb .I just used Microsoft.Office.Interop.Excel.dll and Word in preferences. thanks for any help me to introduce a way to decrease the size of Exe file. Regards !

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #9

                    1.5 Mb isn't that much; why is it a problem and what are you trying to achieve?

                    Bastard Programmer from Hell :suss:

                    1 Reply Last reply
                    0
                    • R RobCroll

                      Obfuscation will not only make the exe smaller but also protect your IP.

                      "You get that on the big jobs."

                      N Offline
                      N Offline
                      nassimnastaran
                      wrote on last edited by
                      #10

                      RobCroll wrote:

                      Obfuscation will not only make the exe smaller but also protect your IP.

                      Really! I didn't know this before ! :omg:

                      P 1 Reply Last reply
                      0
                      • P Pete OHanlon

                        Trouble is, it does absolutely sod all to protect your IP.

                        *pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

                        "Mind bleach! Send me mind bleach!" - Nagy Vilmos

                        My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

                        R Offline
                        R Offline
                        RobCroll
                        wrote on last edited by
                        #11

                        I definitely see obfuscation as a deterrent. At least it's going to cost them more to reverse engineer. But sure if there just hunting down algorithms, it's pretty well useless.

                        "You get that on the big jobs."

                        1 Reply Last reply
                        0
                        • N nassimnastaran

                          RobCroll wrote:

                          Obfuscation will not only make the exe smaller but also protect your IP.

                          Really! I didn't know this before ! :omg:

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

                          And you don't now. Obfuscation does not protect your IP. As a deterrent, it is next to useless if someone has a reasonable toolset available.

                          *pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

                          "Mind bleach! Send me mind bleach!" - Nagy Vilmos

                          My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

                          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