canton7 / SyncTrayzor

Windows tray utility / filesystem watcher / launcher for Syncthing
MIT License
5.95k stars 411 forks source link

Updating impossible #233

Closed K13b3r closed 8 years ago

K13b3r commented 8 years ago

Hello, and thanks for this great soft. I can't update my version, when i click on the download link in about i see this error message

Version: 1.1.2.247; Variant: Installed; Arch: X86
Path: C:\Program Files (x86)\SyncTrayzor\SyncTrayzor.exe
System.ComponentModel.Win32Exception (0x80004005): Le fichier spécifié est introuvable
   à System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   à System.Diagnostics.Process.Start()
   à System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   à SyncTrayzor.Services.ProcessStartProvider.StartDetached(String filename, String arguments, String launchAfterFinished) dans C:\projects\synctrayzor\src\SyncTrayzor\Services\ProcessStartProvider.cs:ligne 63
   à SyncTrayzor.Services.ProcessStartProvider.StartDetached(String filename) dans C:\projects\synctrayzor\src\SyncTrayzor\Services\ProcessStartProvider.cs:ligne 43
   à SyncTrayzor.Pages.AboutViewModel.DownloadNewerVersion() dans C:\projects\synctrayzor\src\SyncTrayzor\Pages\AboutViewModel.cs:ligne 89
--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
   à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   à Stylet.Xaml.ActionBase.InvokeTargetMethod(Object[] parameters) dans c:\projects\stylet\Stylet\Xaml\ActionBase.cs:ligne 199
   à Stylet.Xaml.CommandAction.Execute(Object parameter) dans c:\projects\stylet\Stylet\Xaml\CommandAction.cs:ligne 163
   à MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
   à System.Windows.Documents.Hyperlink.OnClick()
   à System.Windows.Documents.Hyperlink.DispatchNavigation(Object sender)
   à System.Windows.Documents.Hyperlink.DoUserInitiatedNavigation(Object sender)
   à System.Windows.Documents.Hyperlink.OnMouseLeftButtonUp(Object sender, MouseButtonEventArgs e)
   à System.Windows.Documents.Hyperlink.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   à System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
   à System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   à System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   à System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   à System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   à System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   à System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   à System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   à System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   à System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   à System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   à System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   à System.Windows.ContentElement.RaiseTrustedEvent(RoutedEventArgs args)
   à System.Windows.Input.InputManager.ProcessStagingArea()
   à System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   à System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   à System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   à System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   à System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   à MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   à MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   à System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   à System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

I did the last upgrade manually, thinking that it was something else but it still don't work so tell me what i need to do,i have not updated it yet, waiting for your advice. Thanks,

canton7 commented 8 years ago

Can you check that C:\Program Files (x64)\SyncTrayzor\ProcessRunner.exe exists, and hasn't been removed by anti-virus?

The other thing to check is C:\Users\<You>\AppData\Roaming\SyncTrayzor\logs\SyncTrayzor.log: I'm interested in the 20 or so lines which appear above the exception message you pasted (one of them should contain "ProcessStartProvider: Starting"

shajdu commented 8 years ago

I assume this can be closed. Restoring ProcessRunner.exe solved the issue for me. Avast Free Antivirus removed the file(FileRepMalware).

canton7 commented 8 years ago

Thanks for reporting back.

Yeah, I've had a couple of reports of AV removing that file - which is odd, as it doesn't do very much at all, and SyncTrayzor.exe does far more...

K13b3r commented 8 years ago

Sorry for the delay but i was sickand had many other things to do. Yes that was the problem, don't know why this file was ProcessRunner.exe.old on my drive... Thanks,

canton7 commented 8 years ago

ProcessRunner.exe.old is created as part of the upgrade process: that's normal.

Your AV simply deleted ProcessRunner.exe.

K13b3r commented 8 years ago

Ah ok thanks :)

K13b3r commented 8 years ago

I need to keep the .old or can i delete it?

canton7 commented 8 years ago

You can delete it, or it will be automatically deleted (and then replaced) next time you upgrade.