CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 26 of 26
  1. #16
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,835

    Re: exe generates another exe

    And I do too. Coopers, if you can't be a lot more specific about why you need this very unusual requirement, I don't think you'll get any more help.
    "A problem well stated is a problem half solved.” - Charles F. Kettering

  2. #17
    Join Date
    Nov 2009
    Posts
    19

    Re: exe generates another exe

    c++, john_e.

    i have a good software idea, that i cannot share at the moment.
    i want to find out if i can make this program by my self.

  3. #18
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,835

    Re: exe generates another exe

    Well, a programming IDE is essentially an exe which generates another exe by interfacing with an external compiler. There's a programming IDE built into Visual C++ but another good one is Code::Blocks

    It's good because it can work with a whole bunch of different compilers and languages - and in particular, it will show you what it needs to send to the external compiler while it's working (and it also shows you what the external compiler sends back).

    Download a free copy of Code::Blocks and experiment with program creation. You'll be able to see what needs to be sent to the compiler for a whole range of different compilers (although you'll need to install them first, of course). That way, you'll be able to learn how to control a compiler (which is much too big a topic for this forum).

    Having said all that, I can see nothing in what you've said that convinces me about the necessity for your exe to generate another exe - unless you're planning to write your own IDE (that's what an IDE does).

    Good luck but on the basis of what little you've told us, that's probably about as much help as we can give.
    "A problem well stated is a problem half solved.” - Charles F. Kettering

  4. #19
    Join Date
    Nov 2009
    Posts
    19

    Re: exe generates another exe

    thanks for the replys.


    i just have to make an installer. enter the path and some options and generates the program with selected options.

    donno how to do this simple task.

  5. #20
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: exe generates another exe

    A installer installs something that is already compiled.

  6. #21
    Join Date
    Nov 2009
    Posts
    19

    Re: exe generates another exe

    and how can i make an exe installer, that contains the files that has to install, and an interface for options input?


    please don't give me some installers from market, i have to make one by myself in c++.

    keywords please.

  7. #22
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: exe generates another exe

    Quote Originally Posted by coopers View Post
    please don't give me some installers from market, i have to make one by myself in c++.

    keywords please.
    Since you've posted in the Visual C++ forum, why not use the installer that comes with Visual Studio?

    In other words, why do you have to make one yourself?

  8. #23
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: exe generates another exe

    why not use the installer that comes with Visual Studio?
    ... or you can try a free installer like InnoSetup.

  9. #24
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: exe generates another exe

    Quote Originally Posted by coopers View Post
    and how can i make an exe installer, that contains the files that has to install, and an interface for options input?


    please don't give me some installers from market, i have to make one by myself in c++.

    keywords please.
    It really isn't hard to create a dialog with some check boxes on it and it really isn't hard to copy files. Where are you stuck?

  10. #25
    Join Date
    Nov 2009
    Posts
    19

    Talking Re: exe generates another exe

    i don't know how to include the files that has to be copied, in the exe installer.

    give me some reference on the installer that comes with Visual Studio, i'll do the research, i'm not a lazy one.

  11. #26
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,835

    Re: exe generates another exe

    I suspect his problem might be how to store files so they can be retrieved from inside another file. One approach might be to use an open source archiver such as 7-zip or ARJ. These allow you to store several files inside a master file. You'd mostly need to change the user interface to give it the functionality of an installer, instead of the functionality of an archiver but because the above examples are open source, this should be relatively easy. Just watch out for licensing issues.
    "A problem well stated is a problem half solved.” - Charles F. Kettering

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured