private void button7_Click(object sender, EventArgs e) { WorkStatus.UnityUninstall(); Task.Run(() => { WaitForCompletetion(); }); Task.Run(() => { ClickOnce.UnitySimpleUninstall(); }); }
private void button2_Click(object sender, EventArgs e) { WorkStatus.RepairStarted(); Task.Run(() => { WaitForCompletetion(); }); Task.Run(() => { ClickOnce.UnitySimpleUninstall(true); FolderHelper foldz = new FolderHelper(); foldz.Remove2_0Folder(); ClickOnce.UnityInstall(); }); }
private void button1_Click(object sender, EventArgs e) { WorkStatus.UnityStarted(); Task.Run(() => { WaitForCompletetion(); }); Task.Run(() => { ClickOnce.UnitySimpleUninstall(true); ClickOnce.UnityInstall(); // Status completion happens in this function since threaded }); }