skizdigidy
Posts: 10
Joined: Fri Mar 12, 2010 6:58 pm

VB.NET Code to run updater at application startup

Hi, I am new to Advanced Installer. I am trying to implement the advanced installer updater into my VB.NET application code so it checks for updates each time the program is launched. I have the updater working and I can call the updater.exe and get my updates when my .net application is NOT running, but I want to implement the update process into my program start up functionality. I tried using the C# code that was posted on the tutorials, but had little success. While I think that a portion of it might work, I'm wondering how do I 1.) Start the updater from within my application 2.) Shutdown my application to wait for the updater to finish 3.) Restart my application once the updater has completed. And I only want the application to shut down, obviously, if it finds an update to install.

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

Re: VB.NET Code to run updater at application startup

Scott

Pm'd you on this

Dom
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: VB.NET Code to run updater at application startup

Hi Scott and welcome to Advanced Installer forums,

You can check out our tutorial on integrating the Advanced Updater with your application to make sure it is done properly.

From the updates project, you can also specify that your application should be closed during the update and restarted afterwards.

Do let me know if there is anything else I can assist you with.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”