the Internet Windows Android

Create an EXE installation file. How to make an exe file in Visual Foxpro

  • What you need to enable in exe
  • 1. How to compile EXE

    1.1 Compilation technology

    Epigraph:
    "Ay yes Pushkin, ah yes ..."
    A.S. Pushkin.

    The EXE compilation technology in Visual Foxpro is quite simple. We will not be distracted by extreme methods as inputs in the command window of type Build Project, Build App, Build EXE, and limited to the conveniences provided by the VFP graphical interface.

    So, to create EXE, we will need to press the "Build ..." button in the project manager. After selecting the Win32 Executable / COM Server (EXE) option in the open dialog box. EVERYTHING. ;-)

    "How is it all?" - You ask - "and specify under what name to save the file?"

    I agree ... it is necessary to specify necessarily, otherwise all the goal.

    By the way, I think that it will be worth reminding that in order for the compilation process, the project manager has been successfully necessary to complete the files of your program, one of which must be like Main (in the project manager, the name of this file is highlighted in bold), i.e. . The file that will be performed first. By default, as a Main program is set to the first software file included in the project (* .prg) or form file (* .scx).

    In general, everything is quite simple! Simply..?

    Now about sad ...

    1.2 Related files

    Epigraph:
    "... And you turn on - not working!"
    M.Zhwannetsky

    All retests of the compilation stage of the application are already behind, and you, proud of the consciousness of our own superiority over simple mortals, seven-year steps carrying out to the customer, install your application, passing to him (to the customer), how now everything will be cool, and counting in mind what screw It is necessary to buy that it would be left for beer, suddenly stumble on the fact that your super-duct program does not furyly. Sad. It's a shame. And most importantly will not have a new Werster or what you have planned to buy yourself there with a fee ...

    The thing is that the .exe compiled by us is not a self-sufficient executable file. For normal operation, this pseudo-executable file requires support libraries (.dll). I will not go very much in reasoning about it, but I'll just give the names of the files necessary for the normal operation of the application.

    In principle, until the 6th version, inclusive to transfer the application to the client machine, you can use the regular SETUP WIZARD, which independently prescribes, and in the subsequent --install slate (or other installer).

    All files below are the minimum-needed file set for different versions VFP (based on http://www.foxclub.ru):

    Vfp 8.0 msvcr70.dll, vfp8r.dll, vfp8rrus.dll, gdiplus.dll VFP 7.0 msvcr70.dll, vfp7r.dll, vfp7rrus.dll VFP 6.0 VFP6R.DLL, VFP6RENU.DLL, VFP6RRUS.DLL VFP 5.0 vfpole50.dll, vfpodbc .dll, vfp500.dll, vfp5rus.dll, foxpro.int

    The above library set must be placed in the program directory or in the Windows system directory. For various versions of Windows These catalogs are different:

    Win9x, Winme C: \\ Windows \\ System WinNT, Win2000, WinXP C: \\ Windows \\ System32

    2.What need to be included in EXE

    Epigraph:
    "To include or not to include?"
    Drunk electric

    All the above is the person's personal opinion that you can neglect. But making it in your own way, remember: fight your head in the concrete wall is much more painful than to use the break made to you.

    Default to Ready.exe All files needed to work apps - programs, forms, menus, libraries, classes, etc. In addition to database files and tables (such files can be found on the crossed out a mug near the file name in the project manager). All included in. eXE fileafter compilation, they will become unmodifiable (read-only). It is understood that the table files (* .dbf) are not included as they are subject to constant data-adding operations, but sometimes there are cases when you need to hide any statistant from the user, but to provide access to them the program itself. Better place What the "insides" of the EXE-Schnick do not come up with.

    Also a rather non-separation when it is necessary to "find", or temporarily, change the report file, or when we have a set of reports unique for each user. Well, in fact, imagine: ten operators and to each ten reports and all this in * .exe. The only way out in this situation will exclude these reports from the destination file and supply them with the application.

    In any case, the decision about which files to exclude and what to leave for you.

    Surely many of you at least once in your life came across an archive with extension.exe, not RAR and not even zip, namely EXE. All of the charm this archive is that he self-extracting and does not require installation additional programs. Many people think that in order to create a similar type of archive, require some specific knowledge of either the program, but I dare to assure you that it is not. Ecroves are created using one of several of the most popular archivers: WinRar and WinZip.

    You have one of these two archivers on your computer, one of these archivers is installed, so you can safely immediately start practicing. If there is no archiver at all, you can safely install 7-zip, because it is free and freely extends to the Internet. From this archiver we will start.

    And so, we prepare the folder with the files that you want to archive and click on it right-click. We find such an item like 7-zip

    We have another submenu, from which we must choose "Add to archive ..."

    Opens our window, looking for the "Options" section, in the option Options "Create a SFX archive" Install the bird opposite it. Now pay attention to the uppermost field, where the name of our future archive. We have added extension EXE. By the way, the name of the archive can be changed. You can also specify the place in which it must be kept. In principle, you can play with the rest of the options, but they do not affect the archive type. You can put the maximum level of compression so that the archive size is as small as possible.

    Now you can click on the "OK" button.

    Here such a file I got on the desktop:

    Now let's figure out how to create exactly the same archive, but already with WinRar.

    Similarly, you click on the right mouse button on the folder and select the item "Add to archive":

    In the window that opens in the General tab, it is necessary in the section "Archiving Settings" Put a bird in front of the item "Create a SFX archive". We put some compression method. I chose "good."

    Click on the "OK" button.

    It turned out such an archive:

    So we reviewed several ways about how to create a self-extracting exe archive.

    See also video on the topic:

    Rate article:

    Another example, in which it is also best to make an exe file is a photoprem. Photos high Quality In 2000x3000 format, pixels in size occupy up to 3.5 MB. Creating or slideshow using a set, the file sizes will be simply huge. In addition, the output characteristics of the slideshow must comply with the resolution of a particular monitor. In such a situation, it is better to create an exe file correctly, i.e. Set the Rendering parameter. It is active by default with an 800x600 pixel value. It needs to 1200x900 pixels.

    View on the screen with a resolution, for example, 1280x1024 pixels, photographic materials with dimensions of 2000x3000 pixels often leads to an increase in the load on the computer processor, which can cause jerking pictures when changing and movement. To reduce the load and size of the file better decision There will be an adjustment of the image inserted into the slide so that it is the same size, but without compression. When fitting the photo, it is additionally necessary to increase the sharpness of the images in the range of 20-25%.

    To create an EXE slideshow, you can use the menu in the presentation program. Select the "Create" function, go to "Create Exe Shows". On the "Output Options" tab, we specify the "output quality" - "high". Next, install or refuse the menu in creating slideshow. In the next section "Select the show" you need to withdraw the label "Enable the introductory show on the tab" and "Screensaver when starting the show". After that, activate the "Create" command. The resulting exe presentation file or slideshow can be recorded on a CD or DVD. For this, any CD recording programs are suitable.

    Video on the topic

    To date, many products have been created that allow you to create installation files, or simply compile all files to the "EXE" format. To carry out this operation, you need to adhere to certain rules. To do this, you will need a Smart Install Maker. it free program With closed source code. It presents users a simple and powerful tool to create highly efficient settings in 32-bit operating systems Microsoft Windows..

    You will need

    • Personal Computer. SMART INSTALL MAKER program.

    Instruction

    Run the program. You will see several windows, namely: file, project, service, help. Also, by default, the program opens the window in front of you in which you want to enter the necessary data and specify files to compile the installation file.

    First of all, specify the name of the project. It will be displayed when installing the "EXE" file. You must also specify parameters such as version, company name, inscription, compression type, location. Enter preferred values \u200b\u200bto the appropriate controls.

    Click on the Files tab. You need to select all the files that will be packed in the installation package. However, it should be borne in mind that the timing of the resulting file depends on the amount of data added to it.

    Go to the "Settings" tab. Here you are asked to set such parameters as the "program name", "name of the uninstaller", "header". All these parameters are also installed at the discretion of the user. There is also such an item as "open the Internet page when installing". That is, when installing the "EXE" file, you can automatically set the opening of any web page.

    Press the "Done" key. The process of compiling all files will pass. After you have created an installation package, it will be located in the C: / SETUP directory. To installation file. preserved in another place local disk, Or in general on the removable disk, when setting all the parameters in the "Save as" column, you need to specify the save path.

    Video on the topic

    Sources:

    • SMART INSTALL MAKER program

    Executable program modules designed to work running operating systems of Windows family systems are PE files, as a rule, extended exe. In order to create an EXE format program, it is necessary to compile the source code on any programming language by the compiler capable of generating executable PE modules. For example, you can use the Microsoft Visual C ++ 6.0 IDE and the compiler included to create EXE programs.

    You will need

    • - Microsoft Visual C ++ 6.0.

    Instruction

    Start creating a new project in Microsoft Visual C ++. Press Ctrl + N or select "File" in the main menu of the application, and then click on the "New ..." item.

    Select the type of project being created and the location of it. In the list of dialogue "NEW", specify the type of project corresponding to created application. Highlight the item "Win32 Console Application" if you need to create a program that will be displayed in the text console. Highlight the "Win32 Application" item to create an application project that has a graphical interface implemented on Win API (hereinafter this project can be adapted to use WTL). Select "MFC AppWizard (EXE)" in order to obtain a draft application with a graphical interface based on the MFC framework. In the "Project Name" field, enter the project name. In the Location field, select a directory in which all will be placed. created files. Click the "OK" button.

    Create a project. After clicking "OK" in the previous dialog, the master offering input will be opened additional options. The number and view of the page of the wizard depends on the type of project. Following the instructions of the wizard, specify the necessary options. However, you can immediately press the "FINISH" button in order to obtain a project with default options.

    Add the necessary resources to the project, develop an interface. Use the "Resources" tab of the project window to include the application raster images, icons, menus, toolbars, dialogs, etc. Use the dialog resource editor to create a significant part of the user interface.

    Write the program code. Complete the code generated by the project creation wizard, implementing a clothing, logic that serves interface, logic of working with external data, abstraction levels for the interaction of the application components, etc.

    Implement the application. Press the F7 key or select "Build" in the "Build" menu. Wait for the compilation and linking process. Make sure there are no errors.

    Find the created EXE module. Select "Project" and "Settings ..." in the menu, or press Alt + F7 keys. In the "Project Settings" dialog, switch to the "LINK" tab. Learn the location of the executable module from the contents of the "Output File Name" field.

    Test the created program. Go to the directory with the executable EXE module. Run it for execution. Make sure the program functions as necessary.

    Video on the topic

    As a rule, many novice users have questions that are associated with the creation of their own installation packages, which during unpacking will create separate directory and copy all the packaged information there.

    You will need

    • - the Internet;

    Instruction

    To do this, you need to install specialized software. The most optimal option for newbies is a software package called Smart Install Maker. Download this software from the official SMINSTALL.COM developer site and install on your computer. Such programs should always be installed in the system disk of the personal computer, that is, it is where the operating system is located.

    As soon as the program is installed, click on the shortcut, which will be located on the desktop of the computer. You need to start a new project that will create your own installation files. Click on the "Project" tab and click on the "Create New" button. Next you need to fill out all the fields that are provided by the program.

    First of all, fill in all text informationwhich will be displayed when unpacking the installation file. You need to specify fields such as the "program name", "header", "file name", "file log name" and much more. If you need users to get also additional information About the program you are interested in, you can specify the site to which the user will be redirected during installation. To do this, put a tick next to the "Open Internet Page" item.

    Specify the paths to the files that need to be purchased into the installation archive. If the volume is too big, it will go to the searcher a large number of time. Once everything is ready, in the top of the program, press the green button, and the process of the searches of all files will begin, as well as all the information that was filled with you in this program. In the future, you can use the program to create other installation files, for example, your program written in some programming language.

    Video on the topic

    Often, users are asked about how to create their own EXE applications. As a rule, for this you need to explore special programming languages. However, the installation application can be created using standard software.

    You will need

    • - SMART Install Maker.

    Instruction

    You will not need to know the basics of programming to create your own installed application. At the moment, a large number of diverse software has been developed, which allows you to create similar programs. One of these utilities is Smart Install Maker. This is a universal program that allows you to create a full-fledged installation file in a few minutes. You can pack in it various files, compile with programming languages \u200b\u200band much more.

    Download this software from the official site of the manufacturer RU.Sminstall.com. Install the program in the system local disk on personal Computer. Try to install in that directory where the installed operating system is located. As soon as the installation process is completed, a label will appear on the desktop, with which you can run the program. Two times press the left mouse button so that the program window opens.

    As a rule, this program is installed on. You can always change the language in the settings. Go to the "Information" tab. You need to fill out such lines as the "program name", the "Company name", "program version" and many others. Try to write in clear language, without abbreviations. Next, click on the Files tab. Specify all the files that need to be compiled using the program. These can be standard files with photos, or files that were created during the programming process.

    In a recent time, I ran into one problem. We were asked a course project, I did everything fine, but only the installation file remains, namely the file.exe.

    We gave us a very indispensable program, but one smart person advised another, which is called Smart. Movie Maker . He said that there was no easier for this task yet.

    You will have such a window:

    As you can see the left side of the window is broken into two parts: Installator and Uninstaller.

    As you already understood in the part that is called Installator There will be settings for your installation file and part Uninstaller According to the settings for the file that you will delete your program.

    What I will tell you about the main characteristics for the installation file.
    As you have already noticed from the file.exe, many parameters are pretty. Let's talk a little about each.

    Information:
    You could immediately see him when you launched the program. I think there and everything is clear what you need to enter Program name, Version etc. I will only talk about the main ones.

    All headlines and inscriptions also fill in, because it will be all seen when installing the program.

    Type of compression You can choose Maximum, After all, you will decrease the size of your installation file. As well as Type of breakdown You can choose one fileSo it will be easier for the user.

    Files:

    In the screenshot, I also noted the plus sign. By clicking on it, you must select the files that will be unpaved when you install the program, select only the basic program files, you do not need to shove anything too much.

    Requirements:


    This item must specify the requirements for your program. For example, OS type or additional software that must be installed on a computer.

    Dialogues:


    There are four tabs on this window: General, License / Information, Password and Completion. Dialogs are additional windows or items that will appear. For example, a window about the license agreement.

    Interface:


    Here you can arrange your installation window. Select the top of the menu or center, change the program icon and all connected with the graphical program interface.

    In principle, these are all the main items that will be required for the installation file.

    And now on completion, to finally create a file itself, just click Compile.

    As you see the program interface is very simple and understandable. So use, I hope she helps you, because I helped me.

    To date, many products have been created that allow you to create installation files, or simply compile all files to the "EXE" format. To carry out this operation, you need to adhere to certain rules. To do this, you will need a Smart Install Maker. This is a free program with a closed source code. It presents users a simple and powerful tool for creating highly efficient installations in 32-bit Microsoft Windows operating systems.

    You will need

    • Personal Computer. SMART INSTALL MAKER program.

    Instruction

  • Download the program from the official site ru.sminstall.com. Smart Install Maker has rich functionality To create beautiful and reliable installation packages for Microsoft Windows. This program It will help you in creating a full-fledged installation file.
  • Install sMART program Install Maker. Try to set the program to the "C" disk directory, since all subsequent compilations will be saved on the system disk.
  • Run the program. You will see several windows, namely: file, project, setup, service, help. Also, by default, the program opens the window in front of you in which you want to enter the necessary data and specify files to compile the installation file.
  • First of all, specify the name of the project. It will be displayed when installing the "EXE" file. You must also specify parameters such as version, company name, inscription, compression type, location. Enter preferred values \u200b\u200bto the appropriate controls.
  • Click on the Files tab. You need to select all the files that will be packed in the installation package. However, it should be borne in mind that the timing of the resulting file depends on the amount of data added to it.
  • Go to the "Settings" tab. Here you are asked to set such parameters as the "program name", "name of the uninstaller", "header". All these parameters are also installed at the discretion of the user. There is also such an item as "open the Internet page when installing". That is, when installing the "EXE" file, you can automatically set the opening of any web page.
  • Press the "Done" key. The process of compiling all files will pass. After you have created an installation package, it will be located in the C: / SETUP directory. In order for the installation file to be preserved in another location of the local disk, or at all on the removable disk, when setting all the parameters in the "Save As" column, you need to specify the save path.