mirror of https://github.com/UMSKT/xpmgr.git
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
b64e3d0cb2
|
@ -23,24 +23,22 @@ jobs:
|
||||||
Start-Process '7z' -ArgumentList 'x C:\TDM-GCC-64\*.tar -oC:\TDM-GCC-64 -y' -Wait
|
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
|
$env:PATH = 'C:\TDM-GCC-64\bin;' + $env:PATH
|
||||||
[Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine)
|
[Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine)
|
||||||
tree /f C:\TDM-GCC-64
|
|
||||||
|
|
||||||
- name: Setup folder directories
|
- name: Setup folder directories
|
||||||
run: |
|
run: |
|
||||||
mkdir build
|
mkdir build
|
||||||
mkdir build\x86
|
mkdir build\x86
|
||||||
mkdir build\x64
|
mkdir build\x64
|
||||||
tree /f D:\a\
|
|
||||||
|
|
||||||
- name: Build xpmgr (x86)
|
- name: Build xpmgr (x86)
|
||||||
run: |
|
run: |
|
||||||
windres icon.rc icon.res
|
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 icon.res -lole32 -luuid -loleaut32
|
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)
|
- name: Build xpmgr (x64)
|
||||||
run: |
|
run: |
|
||||||
windres icon.rc icon.res
|
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 icon.res -lole32 -luuid -loleaut32
|
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)
|
- name: Upload build artifact (x86)
|
||||||
uses: actions/upload-artifact@v3.1.2
|
uses: actions/upload-artifact@v3.1.2
|
||||||
|
|
13
README.md
13
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.
|
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`).
|
`--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.
|
`--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
|
https://github.com/UMSKT/xpmgr/releases
|
||||||
|
|
||||||
## Building
|
## 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
resource.h
16
resource.h
|
@ -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
|
|
Loading…
Reference in New Issue