Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
thepwrtank18 committed Dec 21, 2023
2 parents 823e44e + 7ca1113 commit b64e3d0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 28 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand Down
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
```
16 changes: 0 additions & 16 deletions resource.h

This file was deleted.

3 changes: 0 additions & 3 deletions test.txt

This file was deleted.

0 comments on commit b64e3d0

Please sign in to comment.