-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Advanced activation window
- Loading branch information
Showing
7 changed files
with
543 additions
and
10,868 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Data; | ||
using System.Diagnostics; | ||
using System.Drawing; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows.Forms; | ||
|
||
namespace activator | ||
{ | ||
public partial class Advanced : Form | ||
{ | ||
public Advanced() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
private void checkBox1_CheckedChanged(object sender, EventArgs e) | ||
{ | ||
customKMS_value.Enabled = customKMS.Checked; | ||
} | ||
|
||
private void startActivation_Click(object sender, EventArgs e) | ||
{ | ||
var productKey = kms_KEY_VALUE.Text; | ||
|
||
string strCmdLine = | ||
"/c slmgr /skms kms8.msguides.com" + | ||
"slmgr /ipk " + productKey + | ||
"slmgr /ato"; | ||
|
||
if (fullActivation.Checked) | ||
{ | ||
|
||
Process SetServer = new Process(); | ||
SetServer.StartInfo.FileName = "CMD.exe"; | ||
SetServer.StartInfo.Arguments = "/c slmgr /skms kms8.msguides.com"; | ||
SetServer.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; | ||
SetServer.Start(); | ||
SetServer.WaitForExit(); | ||
|
||
Process SetKey = new Process(); | ||
SetKey.StartInfo.FileName = "CMD.exe"; | ||
SetKey.StartInfo.Arguments = "/c slmgr /ipk " + productKey; | ||
SetKey.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; | ||
SetKey.Start(); | ||
SetKey.WaitForExit(); | ||
|
||
Process Activate = new Process(); | ||
Activate.StartInfo.FileName = "CMD.exe"; | ||
Activate.StartInfo.Arguments = "/c slmgr /ato"; | ||
Activate.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; | ||
Activate.Start(); | ||
Activate.WaitForExit(); | ||
} | ||
|
||
if (limitedActivation.Checked) | ||
{ | ||
|
||
Process SetServer = new Process(); | ||
SetServer.StartInfo.FileName = "CMD.exe"; | ||
SetServer.StartInfo.Arguments = "/c slmgr /skms kms8.msguides.com"; | ||
SetServer.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; | ||
SetServer.Start(); | ||
SetServer.WaitForExit(); | ||
|
||
Process SetKey = new Process(); | ||
SetKey.StartInfo.FileName = "CMD.exe"; | ||
SetKey.StartInfo.Arguments = "/c slmgr /ipk " + productKey; | ||
SetKey.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; | ||
SetKey.Start(); | ||
SetKey.WaitForExit(); | ||
} | ||
|
||
MessageBox.Show( | ||
"Activation has completed and you now need to restart your computer. If there was an error, you may have selected the incorrect edition.", | ||
"Activation Finished", | ||
MessageBoxButtons.OK, | ||
MessageBoxIcon.Information | ||
); | ||
|
||
Application.Exit(); | ||
} | ||
|
||
private void cancel_Click(object sender, EventArgs e) | ||
{ | ||
this.Close(); | ||
} | ||
|
||
private void homeBtn_Click(object sender, EventArgs e) | ||
{ | ||
kms_KEY_VALUE.Text = "TX9XD-98N7V-6WMQ6-BX7FG-H8Q99"; | ||
} | ||
|
||
private void ProBtn_Click(object sender, EventArgs e) | ||
{ | ||
kms_KEY_VALUE.Text = "W269N-WFGWX-YVC9B-4J6C9-T83GX"; | ||
} | ||
|
||
private void EnterpriseBtn_Click(object sender, EventArgs e) | ||
{ | ||
kms_KEY_VALUE.Text = "NPPR9-FWDCX-D2C8J-H872K-2YT43"; | ||
} | ||
|
||
private void fullActivation_CheckedChanged(object sender, EventArgs e) | ||
{ | ||
|
||
} | ||
} | ||
} |
Oops, something went wrong.