holodok
Posts: 2
Joined: Thu Aug 17, 2006 5:17 pm

Windows service auto update

Is it possible to build in auto update in Windows service coded on VB .NET and how the process of update will look?
Thanx
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

I think you can do this and the update process should look normal.

Regards,
Gigi
________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
holodok
Posts: 2
Joined: Thu Aug 17, 2006 5:17 pm

Should I start updator.exe in my service. Whould updator stop service to install update and start it after intsallation?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Yes you can, but you should stop the service after you launch the updater.exe. If you don't stop the service then the "FileInUse" dialog will appear saying you that the service is running (because the service is installed with your package).

Regards,
Gigi
________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
cpinstall
Posts: 19
Joined: Thu Jun 08, 2006 4:00 pm

What's the easiest way to turn the updater.exe into a service?
Mihai
Posts: 38
Joined: Wed Mar 23, 2005 12:19 pm

Hi,

You can't turn the Updater into a service.

Why will you whant to do that?

Regars,

Mihai
Mihai Udrea
Advenced Installer Team
cpinstall
Posts: 19
Joined: Thu Jun 08, 2006 4:00 pm

Mihai wrote:Hi,

You can't turn the Updater into a service.

Why will you whant to do that?

Regars,

Mihai
You can. I've done it (although in a round-a-bout way). So has holodok as he mentioned above using VB.NET.

I want to run the updater as a service so that non-administrative users can run the updater. If not via running it as a service, what's the best way to accomplish this?
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,
If not via running it as a service, what's the best way to accomplish this?
There are several alternatives available:
1. The Updater can be added as a scheduled task.
2. You can create a service that invokes the Updater.
3. You can invoke the Updater from your application from time to time.
4. You can add the Updater under the "Run" registry key.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”