private void Button_Click(object sender, RoutedEventArgs e) { UEFIInstaller u = new UEFIInstaller(); DisableUI(); //if (!u.Install(Environment.CurrentDirectory + @"\android-x86-4.4-r2.img", "E", "1000")) if (!u.Install(txtISOPath.Text, cboDrives.Text.Substring(0, 1), cboSize.Text)) { MessageBox.Show("Install Failed!"); } else { MessageBox.Show("Install Bliss-x86!"); } EnableUI(); }
void InstallationTask_DoWork(object sender, DoWorkEventArgs e) { String[] InstallInfo = (String[])e.Argument; String Path = InstallInfo[0]; String Drive = InstallInfo[1]; String Size = InstallInfo[2]; UEFIInstaller u = new UEFIInstaller(); //if (!u.Install(Environment.CurrentDirectory + @"\android-x86-4.4-r2.img", "E", "1000")) if (!u.Install(Path, Drive, Size)) { MessageBox.Show("Install Failed" + Environment.NewLine + "Please check log at C:\\AndroidInstall_XXX.log"); } else { MessageBox.Show("Install Done"); } MessageBox.Show("Kindly report back the installation status to the developer"); }