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 / C++ / MFC
  4. Inserting data to exe file

Inserting data to exe file

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
5 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.
  • C Offline
    C Offline
    Chernobog1
    wrote on last edited by
    #1

    Hi, I am trying to make an installer for my app. Id like to have all data(files) in one exe file. How should I append or insert these files to my installer application and how to aproach them? Thanks.

    P N 2 Replies Last reply
    0
    • C Chernobog1

      Hi, I am trying to make an installer for my app. Id like to have all data(files) in one exe file. How should I append or insert these files to my installer application and how to aproach them? Thanks.

      P Offline
      P Offline
      Prakash Nadar
      wrote on last edited by
      #2

      Instead why dont you import the files as custom resource into your installer, then at installation use the resource handling functions to load and write it to the harddisk.


      MSN Messenger. prakashnadar@msn.com

      C 1 Reply Last reply
      0
      • C Chernobog1

        Hi, I am trying to make an installer for my app. Id like to have all data(files) in one exe file. How should I append or insert these files to my installer application and how to aproach them? Thanks.

        N Offline
        N Offline
        Navin
        wrote on last edited by
        #3

        You can do it, as the other poster said, by shoving your files into resources in your EXE. You might be better off getting a commercial package that creates self-extracting ZIP files (I think WinZip can do this but I'm not sure. I know there are others.) Remember, even if you win the rat race, you're still a rat.

        1 Reply Last reply
        0
        • P Prakash Nadar

          Instead why dont you import the files as custom resource into your installer, then at installation use the resource handling functions to load and write it to the harddisk.


          MSN Messenger. prakashnadar@msn.com

          C Offline
          C Offline
          Chernobog1
          wrote on last edited by
          #4

          Thx, but what are these resource handing function?

          P 1 Reply Last reply
          0
          • C Chernobog1

            Thx, but what are these resource handing function?

            P Offline
            P Offline
            Prakash Nadar
            wrote on last edited by
            #5

            To start with... LoadResource(...); LockResource(...); SieofResource(...); I dont have a sample, try looking for these apis may be you will get one.


            MSN Messenger. prakashnadar@msn.com

            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