Skip to content

SelF eXtract Maker for windows. (WinSFXMaker is a very super simple install-sheild GUI tool for creating self-extracting (SFX) executables on Windows.)

Notifications You must be signed in to change notification settings

ahnshy/WinSFXMaker

Repository files navigation

📦 WinSFXMaker

SelF eXtract Maker for Windows.
✅ Tested on Windows 10 / Visual Studio 2013 (Minimum build WindowsXP)

📖 Overview

WinSFXMaker is a very super simple install-sheild GUI tool for creating self-extracting (SFX) executables on Windows. It allows users to bundle ZIP archives into standalone .exe files that automatically extract and optionally run an installer or other program.

🔑 Key Features

  • ✅ Easy-to-use SFX archive generator
  • ✅ Custom post-extraction command support
  • ✅ Lightweight and dependency-free portable exe binary.
  • ✅ Intuitive GUI with file pickers
  • ✅ ZIP file bundling into a Windows EXE
  • ✅ Custom post-extraction execution (e.g., launch installer.exe)
  • ✅ Logging support via log4cpp
  • ✅ Resource management using SFXTemplate and res/

🛠️ Stacks

C++14 log4cpp minizip MFC

⚙️ Dev Environment

  • Platform: Windows (32-bit / 64-bit)
  • Language: C+ +ISO 14 with MFC and GDI+

📁 Source Tree

/
├── Dialog/                # Dialog UI logic
├── Helper/                # Utility functions
├── SFXTemplate/           # Template EXE and metadata
├── UI/                    # Icons and GUI resources
├── ZipArchive/            # ZIP compression/decompression (minizip-based)
├── log4cpp/               # Integrated log4cpp source
├── res/                   # Resource files (icons, templates, etc.)
├── WinSFXMaker.*          # Core application logic
└── README.md              # Project documentation

📤 How to build (Visual Studio 2013 on Windows 10)

  1. Clone the repository:

    git clone https://github.com/ahnshy/WinSFXMaker.git
    cd WinSFXMaker
  2. Open the solution:

    • Launch WinSFXMaker.sln in Visual Studio 2013 or later
  3. Choose build config:

    • Select Release or Debug mode
    • Choose x64 or Win32 platform
  4. Build:

    • Build ALL_BUILD or the WinSFXMaker target

🚀 How to Use

  1. Launch WinSFXMaker.exe
  2. Select the input ZIP file (e.g., setup.zip)
  3. Specify output EXE file name (e.g., installer.exe)
  4. Enter post-extraction command (e.g., setup.exe)
  5. Click "Create SFX" to generate a standalone installer

📌 Notes

  • Ensure your post-extraction executable exists inside the ZIP archive
  • Some commands may require elevated privileges (UAC prompt)
  • You can customize the icon and stub using the res/ folder

💻 [Preview]

image image

🔍 Acknowledgements

  • Product Design and Developed by ahnshy

  • Built with:

    • Microsoft Win32 / MFC & GDI+
    • log4cpp for logging
    • minizip for archive management
  • Inspired by traditional SFX packaging workflows

📝 License

This project includes components like log4cpp and minizip, which are licensed under their respective open-source licenses.
Please verify usage rights before redistribution.

log4cpp LGPL 2.1 (Lesser General Public License v2.1)
minizip zlib/libpng License

About

SelF eXtract Maker for windows. (WinSFXMaker is a very super simple install-sheild GUI tool for creating self-extracting (SFX) executables on Windows.)

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published