Check for Updates from within program to be updated
Posted: Thu Sep 20, 2012 8:58 pm
Hi, I'm looking for a way to determine from within my application whether any updates are available, then respond accordingly.
Specifically, I want to:
1) check for updates using a menu command from within my application (e.g., setup /isupdateavailable)
2) Have the setup program return a code indicating whether a new update exists
3) Inform the user of the results (ie. No Updates Available or Updates Available! Install?)
4) if the user elects to install the updates
a) relaunch the setup with a "/updates" parameter
b) close my application so setup can install the update properly.
Does anybody know if this can be done by adding code to the updates script?
-John
Specifically, I want to:
1) check for updates using a menu command from within my application (e.g., setup /isupdateavailable)
2) Have the setup program return a code indicating whether a new update exists
3) Inform the user of the results (ie. No Updates Available or Updates Available! Install?)
4) if the user elects to install the updates
a) relaunch the setup with a "/updates" parameter
b) close my application so setup can install the update properly.
Does anybody know if this can be done by adding code to the updates script?
-John