This project has moved and is read-only. For the latest updates, please go here.

Exception after hitting update

Feb 19, 2014 at 4:07 PM
Edited Feb 19, 2014 at 4:16 PM
Since my wpf app does not have installer I used 7zip to create self extracting archive update.exe

I get exception as soon as I press update:

Unhandled exception:See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ComponentModel.Win32Exception (0x80004005): The specified executable is not a valid application for this OS platform.
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at AutoUpdaterDotNET.DownloadUpdateDialog.OnDownloadComplete(Object sender, AsyncCompletedEventArgs e)
at System.Net.WebClient.OnDownloadFileCompleted(AsyncCompletedEventArgs e)
at System.Net.WebClient.DownloadFileOperationCompleted(Object arg)


************** Loaded Assemblies **************

...

AutoUpdater.NET
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0

CodeBase : file:///D:/IZB/Release/AutoUpdater.NET.DLL

I just want it to extract and replace files
Feb 20, 2014 at 6:19 AM
Looks like Process.Start doesn't know how to open the self extracting archive. You should use NSIS it doesn't fail for me.
Feb 20, 2014 at 4:28 PM
Thanks but even when I created exe with NSIS I get the same error. Do you have other ideas?