Incorrectly updated.Solved

Application wyUpdate in some cases incorrectly updates.

- file "client.wyc" is updated to the newer version, but the file "mainapp.exe" remains unchanged. - This is incorrect behavior:

Steps in the application:

2011-03-21 08:25:20,874 [4024] INFO wyUpdate.frmMain, Text: ------------------------------------------Start--------------------------------------------- 2011-03-21 08:25:21,100 [4024] INFO SetVisibleCore startStep Checking isAutoUpdateMode True uninstalling False2011-03-21 08:25:21,103 [4024] INFO PrepareStepOn Checking2011-03-21 08:25:22,853 [4024] INFO frmMain:InstallUpdates Extracting2011-03-21 08:25:23,980 [4024] INFO frmMain:InstallUpdates ClosingProcesses2011-03-21 08:25:24,029 [4024] INFO frmMain:InstallUpdates ClosingProcesses2011-03-21 08:25:24,224 [4024] INFO frmMain:InstallUpdates PreExecute2011-03-21 08:25:24,225 [4024] INFO frmMain:BlockLogOff() True2011-03-21 08:25:24,229 [4024] INFO frmMain:InstallUpdates BackUpInstalling2011-03-21 08:25:24,237 [4024] INFO frmMain:InstallUpdates ModifyReg2011-03-21 08:25:24,241 [4024] INFO frmMain:InstallUpdates OptimizeExecute2011-03-21 08:25:24,245 [5732] INFO InstallUpdate: totalFiles: 52011-03-21 08:25:24,246 [4024] INFO frmMain:InstallUpdates WriteClientFile

Updating a "client.wyc be made ??now, but this is not correct.

2011-03-21 08:25:24,247 [5732] INFO InstalUpdate: UpdateFiles tempDir C:\Users\spiller\wc\6\base2011-03-21 08:25:24,247 [5732] INFO Start copy: .update-5936-OK2011-03-21 08:25:24,247 [5732] INFO Start backup: .update-5936-OK2011-03-21 08:25:24,248 [5732] INFO End backup: .update-5936-OK2011-03-21 08:25:24,249 [5732] INFO Start replace: .update-5936-OK2011-03-21 08:25:24,249 [5732] INFO End replace: .update-5936-OK2011-03-21 08:25:24,249 [5732] INFO End copy: .update-5936-OK2011-03-21 08:25:24,249 [5732] INFO Start copy: Tis.exe2011-03-21 08:25:24,249 [5732] INFO Start backup: Tis.exe2011-03-21 08:25:24,332 [4024] INFO frmMain:InstallUpdates DeletingTemp2011-03-21 08:25:24,332 [4024] INFO wyUpdate.frmMain, Text: wyUpdate2011-03-21 08:25:24,371 [4024] INFO frmMain:BlockLogOff() False2011-03-21 08:25:24,386 [5732] INFO End backup: Tis.exe2011-03-21 08:25:24,386 [5732] INFO Start replace: Tis.exe2011-03-21 08:25:24,387 [5732] INFO Error: -2147024893Marshal.GetHRForException(IOEx)

Now do I upgrade my own application ", but the error is terminated. The whole installation step is forcibly terminated. Is executed or return to the original "client.wyc"status.

Error:System.IO.DirectoryNotFoundException: ?t cesty C:\Users\Hares\wc\65\base\Tis.exe nebyla nalezena. v System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) v System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite) v System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite) v wyUpdate.InstallUpdate.UpdateFiles(String tempDir, String progDir, String backupFolder, List`1 rollbackList, Int32& totalDone, Int32& totalFiles)

The application behaves as new but not new.

int HResult = Marshal.GetHRForException(IOEx);

// if sharing violation if ((HResult & 0xFFFF) == 32) {

}

throw; ❓ ❓ ❓ ❓ ❓

What version of wyUpdate are you using (Right click "wyUpdate.exe" and click properties)? Are you including the latest version of your app in your wyBuild project?

The SharingViolation error means the file is being used by another process (that is, either it's still running or another program has a lock on the file). If you're using wyUpdate in GUI mode (that is, you're not updating from a Windows Service) then a window will pop up to say the file needs to be closed before it can be updated. If you're using wyUpdate in a Windows Service, then you're in charge of closing the file -- wyUpdate will wait 20 seconds, then it will try again or rollback your update.

Lastly, the problem with the "client.wyc" file being updated despite the update being rolled back was fixed in wyUpdate 2.6.11.3. So, if you're not using the latest version of wyUpdate.exe, then get it now.

Rule of thumb: always update to the latest version. We're continually improving our products.