none
Fox exe without installation

    Question

  • Hi all,

     

    How can we create a fox program (EXE) that can run without being installed.

    The idea is to run the EXE from a pen in a machine without installing the program.

    Friday, September 16, 2011 10:58 PM

Answers

  • Fox executables never require any kind of installation and always will work when run on its own on any machine.

    Of course, you need to watch out for its dependent DLLs and libraries. The main problem is the VFP runtimes. The easiest solution is as said above, just to put the DLLs together with the EXE (in the same directory) so it can find them. Also if your program requires any other DLL/OCX/ODBC driver/whatever you must provide that. Those may or may not request an installation procedure on their own, but if you know them you can just put a small routine in your code to register all it needs.

     

    • Marked as answer by CNT LM Monday, September 19, 2011 11:46 AM
    Sunday, September 18, 2011 4:13 AM

All replies

  • This is a standard VFP feature. You just need to add Run-time libraries into a folder where the EXE is placed.

    More info: http://fox.wikis.com/wc.dll?Wiki~VFP9RuntimeFiles

    Saturday, September 17, 2011 11:21 AM
  • Of course the target computer needs to be a windows computer. Also you'll have trouble with nonregistered activex components. But otherwise as pavel says, put the runtime files to your exe, which also is recommendable if doing an install, and that's it.

    By the way, only partial related: for development and testing purposes you can also simply copy over the vfp directory and start the IDE on any windows computer, but of course you're only allowed to use the IDE yourself.

    Bye, Olaf.

    Saturday, September 17, 2011 12:17 PM
  • Fox executables never require any kind of installation and always will work when run on its own on any machine.

    Of course, you need to watch out for its dependent DLLs and libraries. The main problem is the VFP runtimes. The easiest solution is as said above, just to put the DLLs together with the EXE (in the same directory) so it can find them. Also if your program requires any other DLL/OCX/ODBC driver/whatever you must provide that. Those may or may not request an installation procedure on their own, but if you know them you can just put a small routine in your code to register all it needs.

     

    • Marked as answer by CNT LM Monday, September 19, 2011 11:46 AM
    Sunday, September 18, 2011 4:13 AM