Page 1 of 1

Application checks for Update at every startup

Posted: Mon Jun 23, 2008 6:52 pm
by robert.wenzlick
I have a application that needs to check to see if there are any new updates every time the software starts.

Start program MyApp.Exe
MyApp.exe check update server
If Update available update, download and install
else
Open Program

Is it best to use the Patch option or Updates.

Posted: Fri Aug 15, 2008 5:19 am
by wileywilly
Am not sure about your IA version but in Version 7, there is a Web Update feature where you can use the Update Packs to set the url for your updates

After running your setup, then you will have the option of setting the time when the updates will occur - daily,weekly,monthly....but i doubt you can set it to check for updates every time you launch your application

You may have a reason for the need to frequently update but it may not be practical.

Posted: Fri Aug 15, 2008 5:29 am
by CandiceJones
We actually have a blog post which shows you how to do this, its certainly possible!

Posted: Thu Oct 16, 2008 9:11 am
by phunqe
Candice, can you please provide a link to the blog post you are refering to.

Thank you.

Posted: Thu Dec 18, 2008 9:40 am
by Chris Miller
CandiceJones wrote:We actually have a blog post which shows you how to do this, its certainly possible!


Hi Candice,

Can you post the URL to the blog post that you are referring to? I've looked at all of the posts on http://www.installaware.com/blog/ and none of them cover this topic.

Were you referring to the white paper listed as "Using InstallAware to Deliver Web Updates"? That describes how to do an update from the installed application in general terms, but it would be helpful to see sample code that implements that functionality. I've been asked to bid on a project that has this requirement and it would be very helpful for me to know if this can be done with InstallAware.

Posted: Thu Dec 18, 2008 10:07 am
by CandiceJones

Re: Application checks for Update at every startup

Posted: Tue Nov 16, 2010 3:30 am
by midnightSun
I keep reading that the source is avaliable for the updater. Where is it?
Adding " Run Program $TARGETDIR$\myprogram.exe , startup in folder $TARGETDIR$ "
BEFORE every "Terminate Installation" isn't launching our program. We get an elevation prompt to run the updater then nothing after that. This is on a Win7 x86 machine. I will test other os when i get a chance but how can we call the updater code or better yet include it in our program?

Re: Application checks for Update at every startup

Posted: Tue Nov 16, 2010 2:17 pm
by mills
When you check off the option for updates, a script will be included in your setup called "updates", visible with Designer edition or better. You may edit this script to suit your needs.

To test, you can add a messagebox to your setup that displays $EXEDIR$ or $ROOTDIR$. You can set the updates to manual and when you call for an update manually, you will be able to see where the "update setup" is located.

Re: Application checks for Update at every startup

Posted: Fri Nov 19, 2010 8:01 am
by midnightSun
I've found another issue with using this way to update.
On XP PRO installing our program using the right click "RUN AS" administrator credentials, causes issues when clients click our programs desktop/startmenu shortcut. When this happens our program cant access the internet, and has other "permission" related problems.