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. installer question

installer question

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++windows-admintutoriallounge
4 Posts 4 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.
  • A Offline
    A Offline
    andyg 101
    wrote on last edited by
    #1

    Hi, I've been coding visual c++ for a while now, and made a couple of nice little MFC applications. However I have a kind of general question about the next stage. I can get the applications to work from visual C++ but obviously that's not ideal for distribution, so my question is (sorry if this is stupid) 1. What exactly is the purpose of an installer i.e. install shield etc, as when I build my app in c++ i just get an exe file, no changes in registry or other files?(don't think my question is well worded :|) 2. Where do i get one/ how do i implement it. Thanks Andy ps another question if i want to read a particular file format into my application say *.jpg for example, how can i do this, surely I don't have to write the code from scratch or do I have to buy a proprietary library?

    J A J 3 Replies Last reply
    0
    • A andyg 101

      Hi, I've been coding visual c++ for a while now, and made a couple of nice little MFC applications. However I have a kind of general question about the next stage. I can get the applications to work from visual C++ but obviously that's not ideal for distribution, so my question is (sorry if this is stupid) 1. What exactly is the purpose of an installer i.e. install shield etc, as when I build my app in c++ i just get an exe file, no changes in registry or other files?(don't think my question is well worded :|) 2. Where do i get one/ how do i implement it. Thanks Andy ps another question if i want to read a particular file format into my application say *.jpg for example, how can i do this, surely I don't have to write the code from scratch or do I have to buy a proprietary library?

      J Offline
      J Offline
      Joaquin M Lopez Munoz
      wrote on last edited by
      #2

      1. Your program usually has a number of dependencies, which most commonly are DLLs implicitly used by your program at run-time. An installer makes sure that the target machine already has these DLLs and install the missing ones (an installer can do quite some things more, but this is its main functionality.) Most DLLs are system DLLs and you won't have to worry about them. Make this little test: copy your executable to a fresh machine (OS just installed) and see what happens. The system will guide you about what DLLs are missing. One important case is MFC distribution DLLs: usually, it is preferrable to build your app as statically linked against MFC (see project settings, first tab) so that you don't depend on MFC DLLs at all. 2. Most known commercial installers are InstallShield and Wise (google for them.) Windows has its on installation technology called Windows Installer, but it requires some preloaded services in the target machine which are not natively supported by older OSs. Pablo van der Meer has written a Little Install Builder[^] which may suit your needs. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

      1 Reply Last reply
      0
      • A andyg 101

        Hi, I've been coding visual c++ for a while now, and made a couple of nice little MFC applications. However I have a kind of general question about the next stage. I can get the applications to work from visual C++ but obviously that's not ideal for distribution, so my question is (sorry if this is stupid) 1. What exactly is the purpose of an installer i.e. install shield etc, as when I build my app in c++ i just get an exe file, no changes in registry or other files?(don't think my question is well worded :|) 2. Where do i get one/ how do i implement it. Thanks Andy ps another question if i want to read a particular file format into my application say *.jpg for example, how can i do this, surely I don't have to write the code from scratch or do I have to buy a proprietary library?

        A Offline
        A Offline
        Anders 1
        wrote on last edited by
        #3

        try nsis or inno setup

        1 Reply Last reply
        0
        • A andyg 101

          Hi, I've been coding visual c++ for a while now, and made a couple of nice little MFC applications. However I have a kind of general question about the next stage. I can get the applications to work from visual C++ but obviously that's not ideal for distribution, so my question is (sorry if this is stupid) 1. What exactly is the purpose of an installer i.e. install shield etc, as when I build my app in c++ i just get an exe file, no changes in registry or other files?(don't think my question is well worded :|) 2. Where do i get one/ how do i implement it. Thanks Andy ps another question if i want to read a particular file format into my application say *.jpg for example, how can i do this, surely I don't have to write the code from scratch or do I have to buy a proprietary library?

          J Offline
          J Offline
          Jim Crafton
          wrote on last edited by
          #4

          i want to read a particular file format into my application say *.jpg for example, how can i do this, surely I don't have to write the code from scratch or do I have to buy a proprietary library? There are a bunch of different ways to do this. There are articles here on code project that show how to do this, and there's also FreeImage project (http://freeimage.sourceforge.net/). There are lots of other ones as well, google is your friend :) ¡El diablo está en mis pantalones! ¡Mire, mire! Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)! SELECT * FROM User WHERE Clue > 0 0 rows returned

          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