Create an exe file

Author: Tamara Smith
Date Of Creation: 26 January 2021
Update Date: 1 July 2024
Anonim
Make .exe Files From Scripts in Windows
Video: Make .exe Files From Scripts in Windows

Content

This wikiHow teaches you how to create a simple EXE file on a Windows computer, as well as how to create a container file that you can use to install it on another computer. EXE files are used on Windows computers to install programs or add files. To create an EXE installer, use a built-in Windows program, IExpress.

To step

Part 1 of 2: Creating an EXE file

  1. Open Start Type notepad in Start. This will make your computer search for the Notepad app.
  2. Click Notepad. This is a blue and white notepad icon at the top of the Start screen.
  3. Enter the program code for your EXE. Enter the code line by line, or copy and paste it into the Notepad document if you've already entered it elsewhere on your computer.
    • If you don't know how to write code, you may need to ask someone else to do it for you.
    • You can also find simple code for an EXE file online.
  4. Click File. This option is located at the top left of the Notepad window. Doing this opens a drop-down menu.
  5. Click Save As .... This is in the drop-down menu File.
  6. Click the "Save as type" drop-down box. You can find this at the bottom of the screen.
    • In the "Save as kind" drop-down box would already be Text Documents ( *. Txt) must stand.
  7. Click All files. This is in the drop-down box.
  8. Enter a name for your EXE file. In the text field "File name" enter a name followed by .exe. This will save your file as an EXE.
    • For example, to name the EXE file "bananas" type bananen.exe.
  9. Select a save location. Click a folder on the left side of the window to select it as the location where your file will be saved.
  10. Click Save. This is on the bottom right of the screen. This will save your EXE file in your chosen location under your chosen name.

Part 2 of 2: Creating an EXE installer

  1. Open Start Type Aliexpress in Start. This will send to the Aliexpress job sought.
    • You should Aliexpress completely unsubscribe before it appears.
  2. Click Aliexpress. This looks like a gray filing cabinet. You can find this at the top of the Start screen.
  3. Look at the text field "Create new Self Extraction Directive file". This is in the middle of the page. This option is already checked by default, but if it is not, you must still check it.
  4. Click Next. This is the button in the lower right corner of the window.
  5. Check "Extract files only". This is in the middle of the page.
  6. Click Next.
  7. Enter a name for your EXE file. Enter the file name in the text field at the center of the page, then click Next.
  8. Decide if you want to use a text prompt. Click Next to use a text prompt, or check "Prompt user with" and then enter a word or phrase in the text field before clicking Next clicks.
    • When you use a prompt, a window appears to the user of the EXE file with the text you entered.
  9. Decide if you want to use a license. If the user of the EXE does not want to show a license agreement, just click Next. If you do want to use a license agreement, check "Display a license" and then click Browse, choose a text document containing the license agreement and click Open. You still have to get up now Next click to continue.
  10. Click Add. It's below the field in the center of the window. This will open a new File Explorer window where you can select files to add to your EXE installer.
    • Files you add to the EXE installer will be installed before whoever opens the EXE installer.
  11. Select files to attach. Click on a file location on the left side of the File Explorer screen and select files by clicking and dragging the ones you want to use.
    • You can also select the files individually by pressing Ctrl while clicking them.
  12. Click Open. This is at the bottom right of the screen. This will add your files to the EXE installer.
    • You can also add more files after this by pressing again Add and click more files to add.
  13. Click Next.
  14. Check "Default" and click Next. This is at the top of the screen.
  15. Decide whether to add a final announcement. You can choose to display a message to the user when your EXE installer has finished running. To do this, check "Display message", enter the message you want to use and click Next.
    • If you want to skip the closing announcement, just click on Next.
  16. Add the program you want to install. This is the EXE program you created earlier. Click Browse, navigate to the file location, click the file and click Save.
    • You can also check "Hide File Extracting Process Animation from User" to make sure the EXE installs without much visual input.
  17. Click three times Next. This will create the EXE installer. Depending on how many files you add to the EXE installer, this process can take anywhere from a few seconds to a few minutes.
  18. Click Finish. This is at the bottom of the screen. This will save the file. Your EXE installer is now ready to use.

Tips

  • You don't need an EXE installer to run an EXE, but an EXE installer installs the EXE file and all files associated with it (e.g., the Readme file, the necessary directories, etc.).

Warnings

  • If you don't know how to program an EXE file, you may find it helpful to ask someone else who is familiar with this to do the programming part of the process.