Merge pull request #10 from UMSKT/master

merge master changes into change-icon
This commit is contained in:
TheTank20 2025-07-18 23:18:14 -05:00 committed by GitHub
commit 9e97beb5b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 7 deletions

View File

@ -14,11 +14,11 @@ If you're trying to manage products other than Windows, you need `xpmgr_x86.exe`
`--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` or `/ipk`: Sets the product key (tested to work with dashes). If already activated, this should give an error instead.
`--GetInstallationID`: Gets an Installation ID with **no dashes** (ex: `253286028742154311079061239762245184619981623171292574`). If already activated, this should give an error instead.
`--GetInstallationID` or `/dti`: Gets an Installation ID with **no dashes** (ex: `253286028742154311079061239762245184619981623171292574`). If already activated, this should give an error instead.
`--SetConfirmationID`: Sets a Confirmation ID (tested to work with dashes). If already activated, this should give an error instead. If successful, this also removes the "Activate Windows" shortcuts and kills the WPA notifier process (`wpabaln.exe`) if it's running.
`--SetConfirmationID` or `/atp`: Sets a Confirmation ID (tested to work with dashes). If already activated, this should give an error instead. If successful, this also removes the "Activate Windows" shortcuts and kills the WPA notifier process (`wpabaln.exe`) if it's running.
`--GetWPALeft`: Gets the number of days before activation is required, in days. If already activated, this should give an error instead.

View File

@ -897,7 +897,7 @@ int main(int argc, char* argv[])
}
}
if (cmdOptionExists(argv, argv + argc, "--GetInstallationID")) {
if (cmdOptionExists(argv, argv + argc, "--GetInstallationID") || cmdOptionExists(argv, argv + argc, "/dti")) {
if (std::strcmp(specifiedProduct, "Office2003") == 0) {
std::cout << ConvertToStdString(O2003_GetInstallationID());
return 0;
@ -905,7 +905,7 @@ int main(int argc, char* argv[])
std::cout << ConvertToStdString(XP_GetInstallationID());
return 0;
}
else if (cmdOptionExists(argv, argv + argc, "--SetConfirmationID")) {
else if (cmdOptionExists(argv, argv + argc, "--SetConfirmationID") || cmdOptionExists(argv, argv + argc, "/atp")) {
if (std::strcmp(specifiedProduct, "Office2003") == 0) {
std::cout << ConvertToStdString(O2003_SetConfirmationID(ConvertCharToBSTR(getCmdOption(argv, argv + argc, "--SetConfirmationID"))));
return 0;
@ -930,7 +930,7 @@ int main(int argc, char* argv[])
return 0;
}
else if (cmdOptionExists(argv, argv + argc, "--SetProductKey")) {
else if (cmdOptionExists(argv, argv + argc, "--SetProductKey") || cmdOptionExists(argv, argv + argc, "/ipk")) {
if (std::strcmp(specifiedProduct, "WindowsNT5x") != 0) {
std::cout << "An error occurred at specifiedProduct: This command is for Windows management only.";
return 6;
@ -952,4 +952,4 @@ int main(int argc, char* argv[])
return 7;
}
}
#pragma clang diagnostic pop
#pragma clang diagnostic pop