If we develop certain software and make exe file. Then I find some bug in it and I fix it. Then how to give updates to users? can I send whole exe file again or I make dll files and send dll files which have bugs in it? What to do in case of Java?
Asked
Active
Viewed 212 times
0
-
Do you want to auto update the application? – FrediWeber Mar 05 '12 at 06:12
-
Yes. but How to give updates if application has bugs means how to change exe file? – Abhijit Shelar Mar 05 '12 at 06:14
-
You need a temporary application that updates the main application and then start the main app again. You could it update partially or complete. – FrediWeber Mar 05 '12 at 06:18
2 Answers
1
For .net, You can use ClickOnce Deployment but it has a lot of limitations, e.g. you can not change installation location: application goes to appdata folder etc.
What I currently do is have a autoUpdate.exe
- main app start, start autoUpdate.exe, main app exit
- autoUpdate.exe check whether have new versions(by compare main app's assembly version or extra version file that only store version like 2.0.0.1123).
- If new version found, download and replace main app, pass a no_check argument to main app,start main app.
- If no new versin, also pass a no_check argument to main app,start main app.

prime23
- 3,362
- 2
- 36
- 52
0
For answers to the Java aspect of this question, refer to this SO Question.
Alternatively, JNLP removes the problem entirely by download the application (and updates) on the user's workstation. The downloaded artefacts are then cached to reduce start-up times and network costs.