private void OpenForm_Load(object sender, EventArgs e)
{
string portingKitRegistryValue = Helper.GetPortingKitRegistryValue("", "InstallRoot");
if (string.IsNullOrEmpty(portingKitRegistryValue) || !Directory.Exists(portingKitRegistryValue))
{
portingKitRegistryValue = Environment.GetEnvironmentVariable("SPOCLIENT");
}
if (!string.IsNullOrEmpty(portingKitRegistryValue) && Directory.Exists(portingKitRegistryValue))
{
this.textBoxSpoClientPath.Text = portingKitRegistryValue;
}
this.pidLabel.Text = "Product ID: " + Helper.GetProductId();
}