Testing the Autoupdater - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

vulgrin
Posts: 40
Joined: Fri Jan 11, 2008 9:49 pm

Testing the Autoupdater

Hi there, I'm happy to report that my client has reinstated my project that would use advanced installer, so I'm back to trying to figure out the autoupdate mechanism.

I've set up a test EXE which is labeled v1.0.0.0 and created an installer, which worked fine. With that installer I told it to check for autoupdates on my website and filled in the requisite fields.

I then created my v1.1.0.0 EXE, created an installer for it, then created a MSP.

Finally, I created an updates configuration project and filled all that in - pointing to the MSP file. I placed this all up on my server at the specified location, opened the v1.0.0.0 that I had installed and: nothing happened.

I went back through and checked all my paths to make sure they were correctly set up and so far everything checks out. I can hit my updates.txt file here: http://www.steelsphere.com/updates/updates.txt and it is served up properly. I ran the app a couple times, but don't see any requests to my updates.txt file on my web server - so it doesn't look like its checking it at all.

Then I got to thinking that maybe the app won't check again because it had already checked once in the past 24 hours... so maybe it won't check again for another day? Is there a way to force the installer to check for an update? I tried running the updater exe on its own, but it complains about an invalid command line.

Also is there a way to set the autoupdater to check every time the app is launched, instead of only once a day? I can envision a scenario where there is a bug in an update and that even if we released an immediate patch to correct the problem, people wouldn't get it until the next day.

Thanks for your help.
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Re: Testing the Autoupdater

Hi

I'm busy going through exactly what you are at the moment, but finally I have at last started to make progress. You don't mention what your application is built with, but if you look at the example code for integrating the updater into your application you will see that there are example hanlers for both an automatic check, one that can be run from a button on your main menu (ie check for updates) and finally one that gives you access to the configurations screen of the auto updater.

I'm assuming that you at least have the automatic check installed in your application, in which case you just need to add a handler to do a check on request. IF you have nothing installed in your application it's not going to trigger the updater.exe to do it's stuff.

If you are working in VB.net and need some code to help integrate the updater into your application then just ask and I'll post up an example for you.

Dom
vulgrin
Posts: 40
Joined: Fri Jan 11, 2008 9:49 pm

Re: Testing the Autoupdater

Ah, I see, I didn't realize that for basic installer updates that I needed to add to my code. I figured it was doing something to my app's EXE already to call its updater. I will go look at the samples you mentioned.

I'm in C#, but can read VB.net. If you want to post anything, I'm sure it would be helpful to have a good working example.

Thanks!
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Re: Testing the Autoupdater

There is a good c# example which I actually used as a base to translte into VB.net, so you should find yourself at home. Take a look in the help files under the 'How To's ' section on integrating the updater into your application.

Dom

Return to “Common Problems”