Cómo hacer un archivo de instalación "EXE"
What do you do when you’ve created some new Windows software—anything from a simple diagnostic tool to a complex PC video game—and you want to share it with the world? Well, you could compress the files into a single ZIP file and distribute that.
Or, you can be fancy and create an installer EXE instead.
We’ll be covering three different ways to make an EXE in this post: a self-extracting package, a simple installer using the built-in IExpress, and an advanced installer using the customizable Inno Setup.
You probably already use 7-Zip to extract all kinds of archive files and know that 7-Zip can create archive files, but did you know that you can also use it to create an EXE file that acts as an installer?
It’s called an SFX archive (self-extracting) and works by compressing all of your end files together, then embedding a special EXE file inside the archive that knows how to extract everything.
In other words, the recipient can extract the SFX archive (which appears as an EXE file itself), even if they don’t have the right software, which can happen with formats like 7Z, RAR, TAR, and ZIP.
Here’s how to create an SFX archive with 7-Zip:
Note that SFX archives aren’t true installer files. They don’t place the extracted files into a designated target directory. They don’t modify Windows Registry. Furthermore, they don’t create install logs, and they don’t show up as installed software in the Uninstall app. They are literally archive files dressed up as EXE files.
Download: 7-Zip for Windows (Free)
IExpress is a utility that comes bundled with versions of Windows starting with Windows XP and beyond. The utility comes with a front-end graphical interface (called IExpress Wizard), but you can also create installer files using hand-scripted Self Extraction Directive (SED) files. We recommend the Wizard.
Like 7-Zip above, this method creates a self-extracting archive, but with two major differences: one, the end-user will proceed through a multi-page Installation Wizard, and two, the end-user can specify the target directory to where the tool will extract the files.
And this how you create your installer EXE using IExpress:
Your package will be created in a few minutes. Note that IExpress has some quirks and issues:
Because of these oddities, we recommend using the method below instead.
Inno Setup is an open-source utility that’s been in active development since 1997. It was created partly in response to the at-the-time subpar InstallShield Express. Since then, it has become the installer creator of choice for those who don’t care to explore proprietary options.
Its biggest draw is its flexibility. Inno Setup uses script files with an ISS extension (“Inno Setup Script”) to customize various aspects of the installer: which files are incorporated, where the installation happens, whether to create shortcuts, etc. ISS files use similar formatting to INI files and can be generated using the Inno Setup Wizard.
To create your installer using Inno Setup, launch the Inno Setup Compiler app. In the welcome prompt, select Create a new script file using the Script Wizard. From there, enter your Application Name and Application Version. Optionally, you can also include Application Publisher and Application Website details. Click Next.
Now, follow these steps from below:
On the Compiler Settings page, you can customize the installer EXE file:
After configuring your settings, select Finish. When prompted to compile the new script, click Yes. When prompted to save the script, select No if this is a one-time installer file. Select Yes if you plan to modify or update it later.
Wait for the process to get completed, and voilà, you’ll have an executable file with you.
Download: Inno Setup for Windows (Free)
If your software is basic, or if you’re only going to distribute to a limited number of people, go with the 7-Zip method. It’s easy, fast, and requires almost no technical expertise.
If your software is somewhat simple, and you want to present a real installation wizard for your end-users, go with the IExpress method. Finally, opt for the Inno app if you have complex software and you know what you are doing.
Read Next
About The Author
¿Ves errores relacionados con la RAM de video dedicada en tu PC con Windows? ¿Tiene…
Todo el mundo te dice lo que puedes usar para limpiar tu ordenador, pero nadie…
Con el tiempo, toda instalación de Windows acumula basura que ocupa espacio y malgasta recursos.…
You hopefully aren't wondering how to destroy a laptop so that you can actively ruin…
Los Mac son ordenadores bien construidos y suelen ser silenciosos. Pero ciertas ocasiones pueden hacer…
El código de parada Bad System Config Info es un error común de Windows que…