Working Folder when re-starting with AutomaticUpdater

When I run an automatic update of my application with the AutomaticUpdater control and select for the application to automatically re-start once the update is applied, it seems that the Working Folder is set differently than when I normally launch my app.

My app looks for some files to be relative to the working folder, and it fails when automatically re-started by the AutomaticUpdater, indicating that it's looking for the files relative to C:\windows\system32.

Is there an easy fix to this?

When wyUpdate starts your app after an update, it uses the location of the wyUpdate.exe as the working folder.

We could add the ability to save the working folder location before the automatic update is installed. But this seems unnecessary.

Are you loading application resources or DLLs using the working folder? If so, that's not advisable. If you want to load resources relative to your exe use:

Path.GetDirectoryName(Application.ExecutablePath)

Tell me if this helps.