Creating a updater that will download and update installation files
-
Hello, VS 2008 SP1 I have created a application that I have installed on the user computer. However, I want the application to be self-updating. But I am not sure if this would really update the application. The application will download all the files from the web server, and replace the files in the directory where the program as been installed to. The user will restart the application. I am just want to be sure, because I can't replace the installed files with the updated ones. As the application will be running. So really the application cannot delete/replace itself. So, I was thinking that I could download into another directory, if the program is installed in this directory 'program files/application/1.0.0' then I could download the files to 'program files/application/1.0.1'. However, when the program restarts, how can it know that it has to execute from the 1.0.1 directory? I can't use clickonce or the updater block for this. Many thanks for any advice,
-
Hello, VS 2008 SP1 I have created a application that I have installed on the user computer. However, I want the application to be self-updating. But I am not sure if this would really update the application. The application will download all the files from the web server, and replace the files in the directory where the program as been installed to. The user will restart the application. I am just want to be sure, because I can't replace the installed files with the updated ones. As the application will be running. So really the application cannot delete/replace itself. So, I was thinking that I could download into another directory, if the program is installed in this directory 'program files/application/1.0.0' then I could download the files to 'program files/application/1.0.1'. However, when the program restarts, how can it know that it has to execute from the 1.0.1 directory? I can't use clickonce or the updater block for this. Many thanks for any advice,
The first thing to spring to mind is the terrible practice of downloading the new files to a temp folder, then creating a run once on startup shortcut to a small app that copies the new files over the old ones and if necessary deleting the temp folder. Then prompting the user to reboot and doing it for them if they say OK. But as I said it is a terrible practice, so I hope someone else has a better solution for you.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”
-
Hello, VS 2008 SP1 I have created a application that I have installed on the user computer. However, I want the application to be self-updating. But I am not sure if this would really update the application. The application will download all the files from the web server, and replace the files in the directory where the program as been installed to. The user will restart the application. I am just want to be sure, because I can't replace the installed files with the updated ones. As the application will be running. So really the application cannot delete/replace itself. So, I was thinking that I could download into another directory, if the program is installed in this directory 'program files/application/1.0.0' then I could download the files to 'program files/application/1.0.1'. However, when the program restarts, how can it know that it has to execute from the 1.0.1 directory? I can't use clickonce or the updater block for this. Many thanks for any advice,
Here you are: .NET Client Applications: .NET Application Updater Component[^]
Giorgi Dalakishvili #region signature My Articles Asynchronous Registry Notification Using Strongly-typed WMI Classes in .NET [^] My blog #endregion