В чем специфика подготовки исполняемых программных файлов в системе windows

What is an executable file? An executable file is a program file that can be run, with a set of instructions or options to make it do something on your PC. Executable files are found on almost all modern operating systems, but most people will associate them with the Windows EXE file format.

You’ll usually see an EXE file when you install new software or run a program on your PC, where the EXE extension is used. If you’re creating your own software, you can even create your own executable file to run, install, or distribute. If you’re interested in learning more about executable files and how to create an executable file, here’s what you need to do.

The Risks Of Executable (EXE) Files

When you run an executable file, you give it permission to run the instructions held within it. That’s how any software works, from basic few-line scripts to complex software with millions of lines of code.

Before you run or make an executable file, you should be aware of the potential risks. Executable files have the potential to include instructions within the source code that could damage your PC.

It could tell your PC to delete other files, or it could instruct your PC to send information to an outside source. This is the definition of malware, created to cause harm at your expense.

Before you run any executable file, especially if it asks for administrative permissions in a User Account Control pop-up, you should scan the file for malware using Windows Security or your own third-party anti-malware software like Malwarebytes. You should also only install or run software from sources you absolutely trust.

If you’re creating your own software to run, you should make sure that the code isn’t designed to access any important files. While Windows will typically prevent unauthorized access to system files using UAC, double-check your code before you run it to make sure the software can’t harm your PC.

Opening Executable (EXE) Files On Windows

If you want to open an executable file on Windows, you can do so in a few ways. Windows automatically recognizes the EXE file format as an executable file, so you can typically open it from your desktop, from Windows File Explorer, using the Windows Start menu (for installed software), or by using the Run command box.

  • To open EXE files on your desktop or in Windows File Explorer, double-click on the file. This will instruct Windows to open it.

  • The list of installed software in the Windows Start menu are shortcuts to the EXE files for those software (for instance, Chrome.exe for Google Chrome). Press the Start menu icon (or hit the Windows key on your keyboard), then press one of the entries to run your software.

  • To use the Run command box to run an EXE file, press the Windows key + R on your keyboard. Alternatively, right-click the Start menu icon and press the Run option.
  • In the Run command box, locate your executable file by pressing Browse, or type the file location directly. When you want to run the EXE file, press OK.

  • If the EXE file requests administrative access, you’ll need to allow it to run in the UAC pop-up. Press Yes to allow this.

  • If the executable file can’t run (it may be designed for an older version of Windows, for instance), then Windows will stop it from running. You may also see an error message. If this happens, press Close and look for an alternative version of the file to run instead.

If you want to create your own executable files on Windows, you can, but it isn’t as simple as renaming a file and adding .exe to the end of it.

You’ll need to code the software you want to run in your chosen programming language, then compile it as a file that can be executed. Most users will want to create more basic executable files, however, such as installer files for software installations.

You could use the built-in IExpress Wizard to do this on Windows, but this software is very old and hasn’t been updated in some time. The better option is to use the open-source Inno Setup or, for basic self-extracting EXE files, you could use 7-Zip.

An EXE file created using 7-Zip is actually an SFX archive file. This archive file, appearing with the EXE file format, will automatically extract any included files onto your PC, making it perfect for simple software deployments.

If you want to share files to multiple users without having to worry about them having the right software installed, creating a file like this would be a good option.

  • To create an EXE file using 7-ZIP, place your files in a folder in Windows File Explorer. Right-click the folder, then press 7Zip > Add to archive.

  • In the Options box, click the Enable SFX Archive checkbox. You’ll also want to set the Archive Format to 7z, the Compression Method to LZMA2, and the Compression Level to Normal. Press OK to create the file.

While this isn’t a true EXE file, it looks and acts like one, making it an easy way to create an executable file that can distribute software or files you’ve created with others.

Otherwise, if you want to create a “real” executable file, you’ll need to learn how to program.

Running Executable Files On Mac Or Linux

The way executable files work on Windows is entirely different to the way that programs run on other platforms, like Linux or macOS. These platforms do have executable files, but they aren’t in the EXE file format.

On Linux, for instance, any file can be executable, but it requires a special file permissions flag to run it as a program using chmod. The command chmod +x file would give a file named file the execute permission to run, for instance.

macOS has a slightly different method for running software. If the app hasn’t been installed from the App Store, and it isn’t from a developer it knows or trusts, then the app won’t be allowed to run. You’ll need to allow it in your System Preferences > Security & Privacy menu.

As a Unix-based system, however, macOS does support the chmod command, allowing you to execute more basic scripts using the Terminal app. If you developed a Python script, for instance, you could use the chmod +x command to run it.

You can also use the WINE emulator for Linux and macOS to run and install Windows EXE files on those platforms. Designed to emulate certain Windows instructions and libraries, using WINE to run an EXE file will have varying levels of success.

You can confirm how well popular software will run using WINE by checking the WineHQ database.

Running Executable Files On Windows 10

There’s nothing stopping you creating your own software, especially if you combine it with Windows installer packages to make it easy to install. For most Windows 10 users, however, EXE files are there to be run, not made. As long as you only run software from sources you trust, executable files should be relatively safe.

Make sure that you run malware scans regularly and, if you’re really unsure about whether an executable file is safe to run, you can use the Windows 10 sandbox mode to run software in an isolated container to test it out. If the EXE is dangerous, it won’t damage your main Windows installation.

Related Posts

  • How to Install the Latest Large Language Models (LLMs) Locally on Your Mac
  • How to Find Circular References in Microsoft Excel
  • How to Remove Headers and Footers in Word Documents
  • How to Report Phishing Emails in Outlook
  • How to Fix a “This file does not have an app associated with it” Error on Windows

Загрузить PDF

Загрузить PDF

Из данной статьи вы узнаете, как создать простейший EXE-файл на компьютере с Windows, а также как создать exe-контейнер, с помощью которого исполняемый файл можно запустить на другом компьютере. EXE-файлы используются для того, чтобы устанавливать программы или добавлять файлы на компьютере под управлением Windows. Чтобы создать EXE-файл, необходимо воспользоваться системной утилитой IExpress.

  1. Step 1 Откройте меню «Пуск» icon.

    Для этого щелкните по логотипу Windows в нижнем левом углу экрана.

  2. Step 2 В строке поиска меню «Пуск» введите блокнот.

    Так вы найдете программу «Блокнот».

  3. Step 3 Щелкните по значку программы Блокнот.

    Он выглядит как голубой блокнот и находится в верхней части меню «Пуск».

  4. Step 4 Введите программный код файла.

    Введите код построчно или скопируйте и вставьте его в Блокнот (если у вас уже есть готовый код).

    • Если вы не знаете, как писать компьютерные программы, попросите об этом другого человека.
    • Также программные коды простейших EXE-файлов можно найти в интернете.
  5. Step 5 Щелкните по Файл.

    Это меню находится в верхнем левом углу окна Блокнота. Откроется выпадающее меню.

  6. Step 6 Нажмите Сохранить как.

    Эта опция находится в выпадающем меню «Файл».

  7. Step 7 Откройте выпадающее меню «Тип файла».

    Вы найдете его в нижней части окна.

    • Текущей опцией меню «Тип файла» должна быть опция «Текстовые документы (*.txt)».
  8. Step 8 Щелкните по Все файлы.

    Эта опция находится в выпадающем меню.

  9. Step 9 Введите имя EXE-файла.

    В строке «Имя файла» введите имя, а затем введите расширение .exe. Так файл будет сохранен в качестве EXE-файла.

    • Например, если файл будет называться «bananas» (бананы), введите bananas.exe.
  10. Step 10 Выберите папку, в которой будет храниться EXE-файл.

    Для этого щелкните по соответствующей папке в левой части окна.

  11. Step 11 Нажмите Сохранить.

    Эта кнопка находится в правом нижнем углу экрана. Так EXE-файл будет сохранен в выбранной папке.

    Реклама

  1. Step 1 Откройте меню «Пуск» icon.

    Для этого щелкните по логотипу Windows в нижнем левом углу экрана.

  2. Step 2 В строке поиска меню «Пуск» введите iexpress.

    Так вы найдете эту утилиту.

    • Слово iexpress введите полностью.
  3. Step 3 Щелкните по значку утилиты iexpress.

    Он выглядит как серый шкаф и находится в верхней части меню «Пуск».

  4. Step 4 Поставьте флажок у...

    Поставьте флажок у опции «Create new Self Extraction Directive file» (Создать новый самораспаковывающийся файл). Она находится посередине страницы. Эта опция должна быть отмечена по умолчанию; в противном случае выделите ее.

  5. Step 5 Щелкните по Далее.

    Эта кнопка находится в нижнем правом углу окна.

  6. Step 6 Поставьте флажок у опции «Extract files only» (Извлечь только файлы).

    Она находится посередине страницы.

  7. Step 7 Нажмите Далее.

  8. Step 8 Введите имя своего EXE-файла.

    Сделайте это в текстовом поле посередине окна, а затем нажмите «Далее».

  9. Step 9 Подумайте об окне с запросом.

    Если вы хотите, чтобы пользователь подтвердил желание запустить EXE-файл, поставьте флажок у опции «Prompt user with» (Запрос у пользователя) и введите текст запроса о подтверждении. В противном случае нажмите «Далее».

    • Когда пользователь запустит ЕХЕ-файл, откроется окно с введенным вами текстом (если вы выбрали опцию с запросом).
  10. Step 10 Подумайте об окне с лицензионным соглашением.

    Если вы хотите, чтобы на экране отобразился текст лицензионного соглашения, поставьте флажок у опции «Display a license» (Показать лицензию), затем нажмите «Browse» (Обзор), чтобы выбрать документ с текстом лицензионного соглашения, а затем нажмите «Открыть». В противном случае нажмите «Далее».

  11. Step 11 Нажмите Add  (Добавить).

    Эта кнопка находится в нижней средней части окна. Откроется новое окно Проводника, в котором можно выбрать файлы, которые будут включены в установочный EXE-файл.

    • Файлы, включенные в установочный EXE-файл, будут установлены, когда пользователь запустит EXE-файл.
  12. Step 12 Выберите файлы, которые будут включены в EXE-файл.

    Щелкните по папке с файлами в левой части окна Проводника, а затем выделите нужные файлы; для этого зажмите левую клавишу мыши и перетащите курсор над нужными файлами.

    • Также файлы можно выделить по одному; для этого зажмите Ctrl и щелкните по каждому нужному файлу.
  13. Step 13 Нажмите Открыть.

    Эта кнопка находится в нижнем правом углу окна. Так файлы будут добавлены в установочный EXE-файл.

    • Если нужно добавить больше файлов, еще раз нажмите «Add» (Добавить) и повторите описанный процесс.
  14. Step 14 Нажмите Далее.

  15. Step 15 Поставьте флажок у опции «Default» (По умолчанию), а затем нажмите Далее.

    Она находится в верхней части окна.

  16. Step 16 Подумайте об окне с заключительным сообщением.

    Такое сообщение появляется на экране по завершении процесса установки ЕХЕ-файла. Поставьте флажок у опции «Display message» (Показать сообщение), затем введите текст сообщения, а затем нажмите «Далее».

    • Если вы не хотите, чтобы на экране отображалось заключительное сообщение, просто нажмите «Далее».
  17. Step 17 Добавьте программу, которую нужно установить.

    Это программа в EXE-файле, который был создан ранее. Нажмите «Browse» (Обзор), откройте папку с файлом, щелкните по нему и нажмите «Сохранить».

    • Если хотите, поставьте флажок у опции «Hide File Extracting Process Animation from User» (Скрыть отображение процесса извлечения файлов), чтобы установочный файл работал без лишних визуальных эффектов.
  18. Step 18 Нажмите Далее три раза.

    Будет создан установочный EXE-файл. Время этого процесса зависит от количества файлов, которые вы включили в установочный EXE-файл.

  19. Step 19 Нажмите Готово.

    Эта кнопка находится в нижней части окна. Установочный ЕХЕ-файл будет сохранен и готов к работе.

    Реклама

Советы

  • Чтобы запустить EXE-файл, установочный EXE-файл не нужен, но установочный EXE-файл установит EXE-файл и любые вспомогательные элементы (например, файл «ReadMe», папки и так далее).

Реклама

Предупреждения

  • Если вы не знаете, как написать программный код EXE-файла, попросите об этом человека, который умеет программировать.

Реклама

Об этой статье

Эту страницу просматривали 186 028 раз.

Была ли эта статья полезной?

Last Updated :
29 Jan, 2024

The Windows operating system has a crucial element known as the Exe file format, which is one of the most commonly used computer program file formats in the world today. Executable files are important in running software applications from the simplest text editor to sophisticated video games. In this article, we will discuss the EXE file format, how to run it, its features and drawbacks, its benefits in running various applications, and the possible malware associated.

An executable file, or EXE, is a file format commonly used in Microsoft Windows. Machine code instructions are meant to be executed by the computer’s CPU directly. These files run applications and execute the necessary tasks.

Table of Content

  • Uses of EXE Files
  • How to Run EXE Files
  • Benefits of the EXE File Format
  • Limitations of the EXE File Format
  • Applications That Use the EXE File Format
  • Malware Concerns Associated with EXE Files
  • Conclusion

Uses of EXE Files

EXE files serve a wide range of purposes, including:

  • Running Applications: EXE files are used frequently to run software applications. For example, if a person is starting his/her computer and he/she launches a web browser, word processor, or graphics editing program, the EXE file starts executing those applications.
  • System Processes: Additionally, most key system processes for Windows exist in EXE format. These systems regulate the operating system and provide system integrity.
  • Installation Wizards: In most scenarios, you have encountered the EXE files which initiate installation wizards and guide you during set-up process as you install a new program.
  • Command-Line Utilities: Certain EXE files are created as custom command-line utilities that are aimed at particular functions such as system maintenance, file alterations, or network diagnosis.

How to Run EXE Files

It is easy to run an EXE file. In Windows, you can double-click on the file, use the command line, scripting, or automation. Once loaded in memory by the operating system, the CPU executes the machine code instructions in the EXE file.

To Run .exe file download any software form internet then go to download file location then double click on the file or right click on file where you just «Open» or «Run as administrator»

exe-Program-Format

Benefits of the EXE File Format

The EXE file format offers several advantages:

  • Portability: EXE files are very portable and may be easily distributed and run on different Windows based machines without source code or any supporting items.
  • User-Friendly: This makes it easy for the GUI of many applications to rely on the EXE file thus facilitating access to a wide number of users.
  • Efficient Execution: A compiled code that runs directly on a Central Processing Unit (CPU) is what the EXE files are optimized for efficient execution.
  • Isolation: EXE files each run in a closed environment, minimizing conflicts with other software and protecting system stability.

Limitations of the EXE File Format

Despite its widespread use, the EXE file format has some limitations:

  • Platform Dependency: EXE files depend on their platform and most of the times they are designed for windows. Such software cannot be run natively on other operating systems like macOS or Linux.
  • Security Risks: Code in EXE format has full system privileges and is therefore the target of malware and security flaws.[ Such malicious EXE files may threaten the overall security of the system.
  • Lack of Source Code: Unlike in open-source software where the source code is made available, EXE does not allow the user to customize or troubleshoot.

Applications That Use the EXE File Format

A vast array of applications relies on the EXE file format. Some examples include:

  • Microsoft Office Suite: Microsoft word and Excel use EXE files to run them.
  • Web Browsers: For example, Google Chrome, Mozilla Firefox, and Microsoft Edge are run by means of EXE files.
  • Games: Most PC games operate through the EXE files and this makes the interactive gaming quite realistic.
  • System Utilities: Windows includes numerous system utilities and tools that rely on the EXE format.

Malware Concerns Associated with EXE Files

The EXE file format has also raised a concern due to the possibility of malware. In a typical scenario, malicious persons may come up with fake EXE files that can penetrate a system and cause damage. Users should take precautions during downloading and executing EXE files that originate from unverified websites. These risks can be reduced by using reputable antivirus software and updating the operating system and applications regularly.

Conclusion

The EXE file format is an essential part of windows operating systems enabling executable processes to be run on diverse applications such as programs. Despite their numerous advantages such as portability and efficiency, EXE files are not without their limitation, especially in the aspect of security. Comprehending what an EXE file is and staying alert when dealing with them is crucial in ensuring a safe and efficient computing setting.

1084

Карма

263.5

Рейтинг

Анатолий Ализар @alizar

автор, фрилансер

Отправить сообщение

Хабр КарьераTelegram

Комментарии Комментарии 40

Публикации

    Понравилась статья? Поделить с друзьями:
    0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии
  • Canon lbp 6000 драйвер windows 10 x64 не устанавливается
  • Как убрать пароль администратора на windows 10 без прав администратора
  • Мобильный хот спот windows 10 автоматический запуск
  • Как остановить центр обновлений windows 10
  • Windows не удается связаться с устройством или ресурсом dns сервис что делать