diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 2149669..d37f130 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -23,24 +23,22 @@ jobs: Start-Process '7z' -ArgumentList 'x C:\TDM-GCC-64\*.tar -oC:\TDM-GCC-64 -y' -Wait $env:PATH = 'C:\TDM-GCC-64\bin;' + $env:PATH [Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine) - tree /f C:\TDM-GCC-64 - name: Setup folder directories run: | mkdir build mkdir build\x86 mkdir build\x64 - tree /f D:\a\ - name: Build xpmgr (x86) run: | - windres icon.rc icon.res - C:\TDM-GCC-64\bin\g++.exe -m32 -o build\x86\xpmgr_x86 xpmgr.cpp icon.res -lole32 -luuid -loleaut32 + windres icon.rc -O coff -F pe-i386 -o build\x86\icon_x86.res -v + C:\TDM-GCC-64\bin\g++.exe -m32 -o build\x86\xpmgr_x86 xpmgr.cpp build\x86\icon_x86.res -lole32 -luuid -loleaut32 -v - name: Build xpmgr (x64) run: | - windres icon.rc icon.res - C:\TDM-GCC-64\bin\g++.exe -o build\x64\xpmgr_x64 xpmgr.cpp icon.res -lole32 -luuid -loleaut32 + windres icon.rc -O coff -o build\x64\icon_x64.res -v + C:\TDM-GCC-64\bin\g++.exe -o build\x64\xpmgr_x64 xpmgr.cpp build\x64\icon_x64.res -lole32 -luuid -loleaut32 -v - name: Upload build artifact (x86) uses: actions/upload-artifact@v3.1.2 diff --git a/README.md b/README.md index 7142e8f..803ac59 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,6 @@ If you have an Itanium version of Windows XP or Server 2003, Windows Product Act If you're trying to manage products other than Windows, you need `xpmgr_x86.exe`, regardless of your architecture. -Use `xpmgr_debug_[arch].exe` if you're encountering an error (or nothing's happening). It won't fix the error, but it will give better insight as to why the error's happening. - `--GetProductID`: Gets the product ID (ex: `76477-755-3803223-21229`). `--SetProductKey`: Sets the product key (tested to work with dashes). If already activated, this should give an error instead. @@ -34,4 +32,13 @@ Use `xpmgr_debug_[arch].exe` if you're encountering an error (or nothing's happe https://github.com/UMSKT/xpmgr/releases ## Building -Make sure Visual Studio 2017 or later is installed, with the v141_xp toolchain. Then, `git clone`, open in VS, build, done. +Make sure Visual Studio 2017 or later is installed. Then, install [TDM-GCC](https://jmeubank.github.io/tdm-gcc/about/). Then, run, at the source folder: +``` +mkdir build +mkdir build\x86 +mkdir build\x64 +windres icon.rc -F pe-i386 -O coff -o build\x86\icon_x86.res +g++ -m32 -o build\x86\xpmgr_x86 xpmgr.cpp build\x86\icon_x86.res -lole32 -luuid -loleaut32 +windres icon.rc -O coff -o build\x64\icon_x64.res +g++ -o build\x64\xpmgr_x64 xpmgr.cpp build\x64\icon_x64.res -lole32 -luuid -loleaut32 +``` diff --git a/resource.h b/resource.h deleted file mode 100644 index 788c1fe..0000000 --- a/resource.h +++ /dev/null @@ -1,16 +0,0 @@ -//{{NO_DEPENDENCIES}} -// Microsoft Visual C++ generated include file. -// Used by xpmgr.rc -// -#define IDI_ICON1 101 - -// Next default values for new objects -// -#ifdef APSTUDIO_INVOKED -#ifndef APSTUDIO_READONLY_SYMBOLS -#define _APS_NEXT_RESOURCE_VALUE 102 -#define _APS_NEXT_COMMAND_VALUE 40001 -#define _APS_NEXT_CONTROL_VALUE 1001 -#define _APS_NEXT_SYMED_VALUE 101 -#endif -#endif diff --git a/test.txt b/test.txt deleted file mode 100644 index 8786c78..0000000 --- a/test.txt +++ /dev/null @@ -1,3 +0,0 @@ -14037188531115461057117122732036502128316172554233 - -115654-870803-633253-538651-586936-689612-768696 \ No newline at end of file