I am trying to create a program that when a button is pressed, it goes into my FTP server and auto installs another program into the client's computer.
The program is deleting the old file on the client's computer. And installing in the new one.
if (!new WebClient().DownloadString("ftp://username:password@asdf.bplaced.net/version.txt").Contains("1.0.0.0"))
{
}
else
{
if (MessageBox.Show("New Update! Would you like to update?", "Yay!",
MessageBoxButtons.YesNo, MessageBoxIcon.Information) ==
System.Windows.Forms.DialogResult.Yes)
{
Process.Start("ftp://username:password@asdf.bplaced.net/place/thing.exe");
Application.Exit();
ProcessStartInfo Info = new ProcessStartInfo();
Info.Arguments = "/C choice /C Y /N /D Y /T 3 & Del " +
Application.ExecutablePath;
Info.WindowStyle = ProcessWindowStyle.Hidden;
Info.CreateNoWindow = true;
Info.FileName = "cmd.exe";
Process.Start(Info);
Process.Start("ftp://username:password@asdf.bplaced.net/place/thing.exe");
This is the new file that I want installed into the client's computer. So far it leads the client to a web browser which opens a browser at a download link. I want it to auto install into their computer.