Example #1
0
        private void Form2_Load(object sender, EventArgs e)
        {
            string pathStatus = appInter.SetEnvironmentalVariable();

            if (pathStatus != "OK")
            {
                if (pathStatus == "addingError")
                {
                    MessageBox.Show("There was a problem in adding the Environmental variables... Please check if following are installed in proper directories.. \n 1). Microsoft Build (MSBuild.exe) : \n\t C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319 \n\n\n 2). MS Web Deploy (msdeploy.exe) : \n\t C:\\Program Files (x86)\\IIS\\Microsoft Web Deploy V3");
                    this.Close();
                }
                else
                {
                    MessageBox.Show(pathStatus);
                    MessageBox.Show("Please Run as Administrator!!!");
                    this.Close();
                }
            }
        }