Download ArticleDownload Article

This How.com.vn will teach you how to create a basic EXE file on a Windows computer, as well as how to create a container for that file that will install it on another computer. EXE files are used to install programs or add files to a Windows computer. To create an EXE installer, you'll use a built-in Windows feature called IExpress.

Part 1
Part 1 of 2:

Creating an EXE File

Download Article
  1. How.com.vn English: Step 1 Open Start icon.
    Click the Windows logo in the bottom-left corner of the screen.[1]
  2. How.com.vn English: Step 2 Type notepad into Start.
    This will search your computer for the Notepad app.[2]
    Advertisement
  3. How.com.vn English: Step 3 Click Notepad.
    It's a blue-and-white, notebook-shaped icon at the top of the Start window.
  4. How.com.vn English: Step 4 Enter your EXE's program code.
    Type in the code one line at a time, or copy and paste it into the Notepad document if you already have it typed out somewhere else on your computer.
    • If you don't know how to code, you may want to have someone else perform this step for you.
    • You can also find EXE file code for basic programs online.
  5. How.com.vn English: Step 5 Click File.
    This option is in the top-left corner of the Notepad window. Doing so prompts a drop-down menu.
  6. How.com.vn English: Step 6 Click Save As….
    It's in the File drop-down menu.
  7. Step 7 Click the "Save as type" drop-down box.
    You'll find this near the bottom of the window.
    • The current "Save as type" drop-down box should read Text Documents (*.txt).
  8. How.com.vn English: Step 8 Click All files.
    It's in the drop-down box.
  9. How.com.vn English: Step 9 Enter a name for your EXE file.
    In the "File name" text box, type in a name followed by .exe. This will save your file as an EXE.
    • For example, to name the EXE file "bananas", you would type in bananas.exe.
  10. How.com.vn English: Step 10 Select a save location.
    Click a folder on the left side of the window to select it as the place where your file will be saved.
  11. How.com.vn English: Step 11 Click Save.
    It's in the bottom-right corner of the screen. This will save your EXE file in your selected location under the specified name.
  12. Advertisement
Part 2
Part 2 of 2:

Creating an EXE Installer

Download Article
  1. How.com.vn English: Step 1 Open Start icon.
    Click the Windows logo in the bottom-left corner of the screen.
  2. How.com.vn English: Step 2 Type iexpress into Start.
    This will search for the iexpress command.[3]
    • You have to fully type out iexpress in order for iexpress to appear.
  3. How.com.vn English: Step 3 Click iexpress.
    It resembles a grey filing cabinet. You'll find this at the top of the Start window.[4]
  4. Step 4 Check the "Create new Self Extraction Directive file" box.
    It's in the middle of the page. This option should be checked by default, but if it isn't, check it.
  5. How.com.vn English: Step 5 Click Next.
    This is in the bottom-right corner of the window.
  6. Step 6 Check the "Extract files only" box.
    It's in the middle of the page.
  7. How.com.vn English: Step 7 Click Next.
  8. How.com.vn English: Step 8 Enter a name for your EXE file.
    Type the file's name into the text field in the middle of the window, then click Next.
  9. How.com.vn English: Step 9 Decide whether or not you want to use a text prompt.
    Click Next to skip using a text prompt, or check "Prompt user with" and then type a word or phrase into the text box before clicking Next.
    • Using a prompt will cause a window with your typed text to appear to the user of the EXE file.
  10. How.com.vn English: Step 10 Decide whether or not to use a license.
    If you don't want to show the EXE user a license agreement that they have to read and agree to, just click Next. If you want to use a license agreement, check the "Display a license" box, then click Browse, select a text document that contains the license agreement, and click Open. You'll have to click Next to proceed.
  11. How.com.vn English: Step 11 Click Add.
    It's below the box in the middle of the window. Doing so will open a new File Explorer window in which you can select files to add to your EXE installer.
    • Files that you add to the EXE installer will be installed for whoever opens the EXE installer.
  12. How.com.vn English: Step 12 Select files to add.
    Click a file location on the left side of the File Explorer window, then select files by clicking and dragging the mouse across a group of files you want to use.[5]
    • You can also select files independently by holding Ctrl while clicking individual files.
  13. How.com.vn English: Step 13 Click Open.
    It's in the bottom-right corner of the window. Doing so adds your files to your EXE installer.
    • You can also add more files after this point by clicking Add again and then selecting more files to add.
  14. How.com.vn English: Step 14 Click Next.
  15. Step 15 Check the "Default" box, then click Next.
    This box is at the top of the window.
  16. How.com.vn English: Step 16 Decide whether or not to include a final message.
    Once your EXE installer finishes running, you can choose to display a message for the user. To do so, check the "Display message" box, type in the message you want to use, and click Next.
    • If you want to skip the final message, just click Next.
  17. How.com.vn English: Step 17 Add the program that you want to install.
    This is the EXE program that you created earlier. Click Browse, navigate to the file's location, click the file, and click Save.
    • You can also check the "Hide File Extracting Process Animation from User" box to ensure that the EXE installs without much visual input.
  18. How.com.vn English: Step 18 Click Next three times.
    This will create the EXE installer. Depending on how many files you're adding to the EXE installer, this process can take anywhere from a few seconds to a few minutes.
  19. How.com.vn English: Step 19 Click Finish.
    It's at the bottom of the window. Doing so will save the file. Your EXE installer is now ready for use.
  20. Advertisement

Community Q&A

Search
Add New Question
  • Question
    How do I add a task to a download a definition package and run it?
    How.com.vn English: Community Answer
    Community Answer
    In the first step (with the three options), choose the one that lets you run a command (top one). Then, use the proper "schtask" command to do this.
  • Question
    Can I add WinRAR files to the Exe file?
    How.com.vn English: Community Answer
    Community Answer
    Yes, any file extension will work. However, the user would still need to install a program to open that file.
  • Question
    When I test out IExpress, where will I be able to access my package from?
    How.com.vn English: Community Answer
    Community Answer
    Search your .exe program in the Windows search, and click on it, or drag it to the desktop.
See more answers
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Tips

      • You don't need an EXE installer to run an EXE, but an EXE installer will install the EXE file and any supporting documents (e.g., the ReadMe file, necessary folders, etc.).
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      Warnings

      • If you don't know how to program your EXE file, consider having someone who knows how to program take care of the programming portion of this process.



      Advertisement

      About This Article

      How.com.vn English: Jack Lloyd
      Written by:
      How.com.vn Technology Writer
      This article was co-authored by How.com.vn staff writer, Jack Lloyd. Jack Lloyd is a Technology Writer and Editor for How.com.vn. He has over two years of experience writing and editing technology-related articles. He is technology enthusiast and an English teacher. This article has been viewed 1,118,789 times.
      How helpful is this?
      Co-authors: 41
      Updated: October 5, 2023
      Views: 1,118,789
      Categories: Software | Programming
      Article SummaryX

      1.Type your code in Notepad.
      2.Go to File > Save As.
      3.Select All Files from the "Save as type" menu.
      4.Name the file "filename.exe" and click Save.
      5.Open iexpress.6.Select "Create a new Self Extraction Directive file" and click Next.
      7.Select Extract files only and click Next.
      8.Name and configure the file.
      9.Add the .exe file you created.
      10.Follow the on-screen instructions to create the package.

      Did this summary help you?

      Thanks to all authors for creating a page that has been read 1,118,789 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement