Hangs on registry change

I have found that my app sometime hangs when I add a registry change as an option to wybuild.

The app uses the automaticupdater control. It appears to download the update fine and it gets through most of the installation, but appears to hang when it gets to the registry change.

What's odd is that it actually changes the registry values - it's just the dialog and progress bar that don't appear to make any progress. Attempting to cancel freezes wyupdate.

Any ideas as to why this happens?

What version of wyUpdate are you using?Is it a custom built wyUpdate?Can you pinpoint the hang -- that is, what registry change causes the hang?

No, I'm not sure which registry change causes the hang.

I am running a custom wyupdate. I am on 2.6.18.6 (custom version) and 2.6.18.4 (original wyupdate version).

This is how I've reproduced the steps:Wybuild versions -1.2.8.2:Make registry keys:HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\[Product Name][WoW64]DisplayVersion: %version%

HKLM\SOFTWARE\[Company]\[Product][WoW64]Version:%version%

1.2.8.20: - This version's client.wyc file points to a different server directory. This is also the version that causes the hang.HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\[Product Name][WoW64]DisplayVersion: %version%

HKLM\SOFTWARE\[Company]\[Product][WoW64]Version:%version%

1.2.9.2: Getting to this version (hosted on the new server directory) seems to be fine.HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\[Product Name][WoW64]DisplayVersion: %version%

HKLM\SOFTWARE\[Company]\[Product][WoW64]Version:%version%

To cause the issue:Get 1.2.8.2.Run the app (which uses the automaticupdater control).Instead of calling the 'InstallNow' method, close the app. Then restart it manually. After wyupdate.exe updates itself, and most of the app installation finishes, it gets to the registry portion and freezes. It also seems to restart the app prematurely. I see a dialog appear asking to close multiple processes, but even after hitting "Close," the app's start window still appears. This is when I know that wyupdate has frozen.

The registry values do change, though. A restart of the allows it to act fine and update to 1.2.9.2 without trouble.