|
-
Dec 21st, 2007, 11:40 AM
#1
Thread Starter
Frenzied Member
[2.0] Update?
How do you update the exe? I have it already download the updated exe from a webserver but how do you replace it?
-
Dec 21st, 2007, 11:58 AM
#2
Re: [2.0] Update?
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.
-
Dec 21st, 2007, 12:04 PM
#3
Thread Starter
Frenzied Member
Re: [2.0] Update?
 Originally Posted by mendhak
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.
-
Dec 21st, 2007, 12:26 PM
#4
-
Dec 21st, 2007, 12:41 PM
#5
Thread Starter
Frenzied Member
Re: [2.0] Update?
 Originally Posted by mendhak
Problem is replacing the running exe.
-
Dec 21st, 2007, 01:42 PM
#6
Addicted Member
Re: [2.0] Update?
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
-
Dec 21st, 2007, 01:46 PM
#7
Frenzied Member
Re: [2.0] Update?
click once does this for you automatically..have you considered making your app a click once app?
-
Dec 21st, 2007, 02:01 PM
#8
Thread Starter
Frenzied Member
Re: [2.0] Update?
 Originally Posted by Cavar
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
I tried that but the main app doesn't close fast enough, even when I use waitforexit().
-
Dec 21st, 2007, 02:10 PM
#9
Addicted Member
Re: [2.0] Update?
 Originally Posted by high6
I tried that but the main app doesn't close fast enough, even when I use waitforexit().
How long is it taking to close? How is your updater exe closing your main app?
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|