It sounds like you're modifying files or removing files while the update is being built.
Yes, you shouldn't get an exception, but you should get an error.
Language: Vb.netSDK: Visual Studio 2019 EnterpriseDotNet Framework Used for the App: 4.5.2Type: WinForms
Need Help with:
Whenever I made changes to the UI of the app and then try to send an update it shows warning that the file names are same! and even though I can upload the update on my ftp , the user doesn't receive the new UI upon updating!
Exact Error Message: Update Built Successfully (with warnings)
View Details: "launcher.exe" won't be updated because the old file location is equal to the new file location on the disk. You must store your versions in separate folders on the harddrive. wyBuild only references files from the disk.
Troubleshooting: I stored the files in a different folder and tried to build the update again.
Result: Update builds and also the app gets updated but the user do not get the new UI! I tried again this time putting the update in a complete different folder and I get this error from wyUpdate:
Unhandled exception has occurred in your application. If you click continue, the application will ignore this error and attempt to continue.
Couldn't find the file 'C:\users\admin\source\repos\testapp\testapp\bin\Debug\update\launcher.exe'
Clicking continue freezes the app!
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************System.IO.FileNotFoundException: Could not find file 'C:\users\admin\source\repos\testapp\testapp\bin\Debug\update\launcher.exe'.File name: 'C:\users\admin\source\repos\testapp\testapp\bin\Debug\update\launcher.exe' at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileInfo.get_Length() at wyBuild.Project.DiffRevisions(Revision oldRev, Revision newRev, Object[] oldRevDir, TreeNode newRevDir, String baseString, UpdateDetails updDetails, Boolean allowExBefore, SortedList[] deleteForCatchAll) at wyBuild.Project.BuildUpdate(Int32 revisionFromIndex, Int32 revisionToIndex, UpdateBuilder updateBuilder, Boolean createCatchAll) at wyBuild.frmMain.BuildUpdate() at wyBuild.frmMain.btnBuildUpdate_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************mscorlib Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.9145 (WinRelRS6.050727-9100) CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll----------------------------------------wybuild
If I click on Continue wyUpdate freezes. So I closed and tried again:
Result: This time it worked and even the update got delivered.
Now here's my questions:
Related: Did I just encountered a bug or was it something that I might have done incorrectly.
Non-Related: I can make my app check and download an update on startup however if the user closes and reopens the app the update doesn't automatically start the installation. For the installation to start user have to manually click on the tooltip (blue-white exclamation mark) and then click on update.
I hope you understood my questions. Thank you in advance.
It sounds like you're modifying files or removing files while the update is being built.
Yes, you shouldn't get an exception, but you should get an error.