Coder Social home page Coder Social logo

winpefix's Introduction

WinPEFix

Since Windows XP is no longer supported, Microsoft has updated its default linking settings. Unless one is able to relink executable file, there is no simple way to run application compiled by new MSVC on old Windows versions. The reason why such programs should not be run on old OS versions is very simple - there is no maintenance support any more (it is not 100% true). Nonetheless, if one desires to run newly build application on an old box, then basically there are three options:

  • get executable for your OS version
  • recompile from source using proper linking options
  • modify PE header using hex editor

If the first two are not possible (they are recommended, though), then one can use this tool - WinPEFix.

It will do the dirty job of overwriting the PE file's header, in order to allow to run any application on Windows XP (bare metal version 5.01). I mean "to allow", not "to run" - there might be incompatibilities beyond targeting issue.

Compilation

In order to compile this tool, one has to have access to a box with a CMake and compiler with C++11 support. On Windows system, there are no external dependencies required, so once the program is compiled, it should run from anywhere. On other platforms Qt is used for user interface.

Usage

  1. Run WinPEFix tool
  2. Select EXE file along with all required DDLs
  3. Process...
  4. ????
  5. Profit!!!

Further reading

  1. Windows XP Targeting with C++ in Visual Studio 2012
  2. Deploying Qt on XP and getting "not a valid Win32 application"

winpefix's People

Contributors

arkq avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.