Skip to content

Bashouse/2EXE

Repository files navigation

2EXE (SmartPS2EXE)

Convert your PowerShell scripts (.ps1) into professional, portable Windows Executables (.exe).

All features are built-in. No complex setup or external tools required.

What It Does

  • GUI or Console: Creates properly windowless GUI apps (no black flashing window) or standard console tools.
  • Signed: Auto-generates and applies a self-signed certificate so your tool is trusted.
  • Icon Ready: Embeds your custom .ico file directly into the executable.
  • Portable: The resulting EXE runs anywhere, automatically finding the best available PowerShell version (7 or 5.1).

How To Use

Just run the script.

.\SmartPS2EXE.ps1

The interactive wizard will guide you through:

  1. Selecting your source script.
  2. Choosing GUI (Windowless) or Console mode.
  3. Selecting an Icon.
  4. Signing the final result.

Automation (Advanced)

For CI/CD or batch processing, use the command line:

.\SmartPS2EXE.ps1 -InputFile "MyScript.ps1" -Gui -IconFile "app.ico" -Sign

License

MIT License.

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors