How do you update the exe? I have it already download the updated exe from a webserver but how do you replace it?
Printable View
How do you update the exe? I have it already download the updated exe from a webserver but how do you replace it?
Which exe? Did you write it yourself? Do you have its source code? Are you looking to get your own exe to perform auto-updates on itself?
We don't read minds, so you'll need to elaborate. :)
Well what i want to do is have my exe check my website for any updates. If it finds any then download it and replace itself with the update.Quote:
Originally Posted by mendhak
Examples abound... ?
http://geekswithblogs.net/arosenfeld...les/43620.aspx
Problem is replacing the running exe.Quote:
Originally Posted by mendhak
Then create a small updater exe that does the actual updating.
This app should be as simple a possible:
1. Main exe launches updater exe
2. Updater exe check for updates
3. If updates are found, then updater exe closes/kills main app and applies updates
4. Updater launches main exe and exits
CT
click once does this for you automatically..have you considered making your app a click once app?
I tried that but the main app doesn't close fast enough, even when I use waitforexit().Quote:
Originally Posted by Cavar
How long is it taking to close? How is your updater exe closing your main app?Quote:
Originally Posted by high6
In the past, I have used a method like this to send a windows message to the main app to close it and have never had an issue with the main app not closing fast enough.
CT