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. Self Extractor

Self Extractor

Scheduled Pinned Locked Moved C#
question
7 Posts 2 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.
  • B Offline
    B Offline
    BLaZiNiX
    wrote on last edited by
    #1

    How Can I make my own self extractor without using any zipping lib, I just want to add multiple file to an exe and when I double click on this exe : show a dialog with a browse to folder where the user want to extract files ??? Thanks

    J 1 Reply Last reply
    0
    • B BLaZiNiX

      How Can I make my own self extractor without using any zipping lib, I just want to add multiple file to an exe and when I double click on this exe : show a dialog with a browse to folder where the user want to extract files ??? Thanks

      J Offline
      J Offline
      James T Johnson
      wrote on last edited by
      #2

      You could add each file as a resource to an executable, then use the Assembly.GetManifestStreamNames/Assembly.GetManifestStream methods to loop through all the files added as resources parsing the name to determine if a folder should be created (or adding a special file which contains that data). James Sonork: Hasaki "I left there in the morning with their God tucked underneath my arm their half-assed smiles and the book of rules. So I asked this God a question and by way of firm reply, He said - I'm not the kind you have to wind up on Sundays." "Wind Up" from Aqualung, Jethro Tull 1971

      B 1 Reply Last reply
      0
      • J James T Johnson

        You could add each file as a resource to an executable, then use the Assembly.GetManifestStreamNames/Assembly.GetManifestStream methods to loop through all the files added as resources parsing the name to determine if a folder should be created (or adding a special file which contains that data). James Sonork: Hasaki "I left there in the morning with their God tucked underneath my arm their half-assed smiles and the book of rules. So I asked this God a question and by way of firm reply, He said - I'm not the kind you have to wind up on Sundays." "Wind Up" from Aqualung, Jethro Tull 1971

        B Offline
        B Offline
        BLaZiNiX
        wrote on last edited by
        #3

        do you have sample code or articles on the subject because I don't know how play with Manifest( I don't know what is it) and I don't know how play with asssembly ?? thanks a lot

        J 2 Replies Last reply
        0
        • B BLaZiNiX

          do you have sample code or articles on the subject because I don't know how play with Manifest( I don't know what is it) and I don't know how play with asssembly ?? thanks a lot

          J Offline
          J Offline
          James T Johnson
          wrote on last edited by
          #4

          I'll get right on it :) Actually I'll 'get right on' finding my code and tweaking it :) James Sonork: Hasaki "I left there in the morning with their God tucked underneath my arm their half-assed smiles and the book of rules. So I asked this God a question and by way of firm reply, He said - I'm not the kind you have to wind up on Sundays." "Wind Up" from Aqualung, Jethro Tull 1971

          1 Reply Last reply
          0
          • B BLaZiNiX

            do you have sample code or articles on the subject because I don't know how play with Manifest( I don't know what is it) and I don't know how play with asssembly ?? thanks a lot

            J Offline
            J Offline
            James T Johnson
            wrote on last edited by
            #5

            I've uploaded a sample program that (by default) has two files embedded in it; it uses the FolderBrowser component from CP, and it just happens that that component is what I embedded in the exe. AssemblyManifest.zip I've included the VS.NET project and a batch file to build it from the command line if you don't have VS.NET Good Luck, James Sonork: Hasaki "I left there in the morning with their God tucked underneath my arm their half-assed smiles and the book of rules. So I asked this God a question and by way of firm reply, He said - I'm not the kind you have to wind up on Sundays." "Wind Up" from Aqualung, Jethro Tull 1971

            B 1 Reply Last reply
            0
            • J James T Johnson

              I've uploaded a sample program that (by default) has two files embedded in it; it uses the FolderBrowser component from CP, and it just happens that that component is what I embedded in the exe. AssemblyManifest.zip I've included the VS.NET project and a batch file to build it from the command line if you don't have VS.NET Good Luck, James Sonork: Hasaki "I left there in the morning with their God tucked underneath my arm their half-assed smiles and the book of rules. So I asked this God a question and by way of firm reply, He said - I'm not the kind you have to wind up on Sundays." "Wind Up" from Aqualung, Jethro Tull 1971

              B Offline
              B Offline
              BLaZiNiX
              wrote on last edited by
              #6

              Thanks a lot, you're my god btw do you have ICQ if yes here's my pin :71682311 thanks again

              J 1 Reply Last reply
              0
              • B BLaZiNiX

                Thanks a lot, you're my god btw do you have ICQ if yes here's my pin :71682311 thanks again

                J Offline
                J Offline
                James T Johnson
                wrote on last edited by
                #7

                I have ICQ but its closed most of the time, I only talk to 2 people on it anymore and one of them is in an IRC channel with me and the other doesn't get on much :-P I'm trying to switch over to sonork full time :) James Sonork: Hasaki "I left there in the morning with their God tucked underneath my arm their half-assed smiles and the book of rules. So I asked this God a question and by way of firm reply, He said - I'm not the kind you have to wind up on Sundays." "Wind Up" from Aqualung, Jethro Tull 1971

                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