How to create an exe file

Anonim

how to create an exe file

EXE is a format without which no software is received. They are running all the processes of launch or installing programs. It can be as a full-fledged application, so be part of it.

Ways to create

There are two options for creating an exe file. The first is the use of media for programming, and the second is the use of special installers, with which different "repacks" and packages, installed in one click. Further on the examples, consider both options.

Method 1: Visual Studio Community

Consider the process of creating a simple program based on the programming language "Visual C ++" and compilation in Visual Studio Community.

Download free Visual Studio Community from the official site

  1. Run the application, go to the "File" menu, after which we click on the "Create" item, and then in the list that opens to the project.
  2. Menu Create a project in Visual Studio Community

  3. The project "Creating a Project" opens, in which you need to click first on the inscription "Templates", and then "Visual C ++". Next, select the "Console application Win32", set the name and location of the project. By default, it is saved in the working directory visually the community studio, in the system folder "My Documents", but optionally it is possible to choose another directory. When the settings are completed, click "OK".
  4. Definition of project parameters in Visual Studio Community

  5. The "Win32 Application Wizard" is launched, which simply click "Next".
  6. Login to Wizard Settings in Visual Studio Community

  7. In the next window, define the application parameters. In particular, select the "console application", and in the "Advanced Parameters" field, "Empty Project", while removing a tick with a "pre-compiled header".
  8. Application Settings in Visual Studio Community

  9. A project is launched in which you need to add an area for recording code. To do this, in the "Solution Overview" tab by right-clicking on the inscription "Resource Files". A context menu appears, in which we click on "Add" and "Create an item".
  10. Log in to the resource file menu in Visual Studio Community

  11. In the "Add New Element" window that opens, select the "C ++ file" item. Next, we specify the name of the file of the future application code and its extension ".s". To change the storage folder, click on the "Overview".
  12. Add new item in Visual Studio Community

  13. A browser opens, in which we specify the location and click on the "folder".
  14. Select the location of the project folder in Visual Studio Community

  15. As a result, a tab with the "Source.c" title appears, in which the code set and editing code text occurs.
  16. Open element in Microsoft Visual Studio

  17. Next, you need to copy the code of the code and insert the area to the image shown in the image. As an example, take the following:
  18. #Include.

    #Include.

    Int Main (int argc, char * argv []) {

    PrintF ("Hello, World!");

    _Getch ();

    Return 0;

    }

    Enter code in Visual Studio Community

    Note: The code of code is higher is just an example. Instead, it is necessary to use your own code for creating a program in the language "Visual C ++".

  19. To assemble the project, click on "Start debugging" on the debugging menu. You can simply press the "F5" key.
  20. Running a project debugging in Visual Studio Community

  21. After that, a notification is pushing, warning that the current project is outdated. Here you need to click on "yes."
  22. Compilation Confirmation in Microsoft Visual Studio

  23. Upon completion of the compilation, the application displays the console window in which "Hello, World!" Will be written.
  24. Competition Result in Visual Studio Community

  25. The created file in EXE format can be viewed using Windows Explorer in the project folder.

EXE application in Visual Studio Community

Method 2: Installator

To automate the installation process, so-called installers are conquered in more and more widely popular. With their help, a software is created, the main task of which is to simplify the deployment process on the computer. Consider the process of creating an EXE file using the example of Smart Install Maker.

Download Smart Install Maker from the Official Site

  1. Run the program and in the Information tab, edit the name of the future application. In the "Save As" field, click on the folder icon to determine the location where the output file will be saved.
  2. Editing titles and locations in Smart Install Maker

  3. A conductor opens, in which you choose the desired location and click "Save".
  4. Selecting Conservation Folder in Smart Install Maker

  5. Go to the "Files" tab, where you need to add files from which the package will be then assembled. This is done by pressing the "+" icon at the bottom of the interface. It is also possible to add a whole directory for which you need to click on the icon, which shows the folder with a plus.
  6. Adding a file to Smart Install Maker

  7. Next opens the file selection window, where you need to click on the folder icon.
  8. File selection in Smart Install Maker

  9. In the observer opened, we indicate the necessary application (in our case, this is "torrent", you can have any other) and click on "open".
  10. Opening a file in Smart Install Maker

  11. As a result, the "Add Record" window displays a file with an indication of its location path. The remaining options are left by default and click "OK".
  12. Adding an entry in Smart Install Maker

  13. The procedure for adding an initial object to the application and in a special scope of the software appears the corresponding entry.
  14. Added installation file in Smart Install Maker

  15. Next, click "Requirements" and the tab opens where you need to mark a list of supported operating systems. Leave the checkmarks on the Windows XP fields and everything that is lower below it. On all other fields, we leave the recommended values.
  16. Selection of operating systems in Smart Install Maker

  17. Then open the "Dialogues" tab by clicking on the appropriate inscription in the left part of the interface. We leave everything here by default. In order for the installation to take place in the background, you can set a tick in the "Hidden Installation" field.

    Select dialogues during installation in Smart Install Maker

  18. At the end of all settings, we start the compilation by clicking on the down arrow icon.
  19. Run compilation in Smart Install Maker

  20. This process occurs and its current status is displayed in the window. Upon completion of the compilation, you can test the created package or close the window at all by clicking the appropriate buttons.
  21. Compilation window in Smart Install Maker

  22. Compiled software can be found using Windows Explorer in the folder that was specified when setting up.

EXE application in Windows Explorer

Thus, in this article, we found out that the EXE file can be created both using specialized programs for program development, such as Visual Studio Community and special installers, for example, Smart Install Maker.

Read more