We have developed a program which checks our web site to see whether or not a new version is available. When a new version is available, a download program starts and retrieves the files, then copies that whole folder on top of the source and restarts the program with the new version.
The problem is that when we run the program that second time, the software hasn't actually updated -- that is, the files just downloaded and copied have been reverted to their original versions.
Is there a way to prevent that? We usually use Setup and Deployment projects in .NET 2008 to build our application installers.