// In background per partire subito senza blocchi void bw_DoWork(object sender, DoWorkEventArgs e) { AssemblyName l1 = Assembly.GetExecutingAssembly().GetName(); string share = Parameter.GetString("Share"); try { // Get the file version for the pilesw. FileVersionInfo myFileVersionInfo = FileVersionInfo.GetVersionInfo(Path.Combine(share, @"PileSW.exe")); Int64 localeVer = GetSerial(l1); Int64 remoteVer = Util.VerToSerial(myFileVersionInfo.FileMajorPart, myFileVersionInfo.FileMinorPart, myFileVersionInfo.FileBuildPart, myFileVersionInfo.FilePrivatePart); if (localeVer < remoteVer) { MessageBox.Show(@"Nuova versione disponinile in " + share, "Info", MessageBoxButtons.OK, MessageBoxIcon.Information); } if (localeVer > remoteVer) { MessageBox.Show(@"Nuova versione da caricare in remoto", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information); } } catch (Exception ex) { log.Error(ex); e.Result = false; } e.Result = true; }