The Kinetic Jump site navigation header requires JavaScript to be enabled and the latest version of the Macromedia Flash Player. If you are you using a browser with JavaScript disabled please enable it now. Otherwise, please update your version of the free Flash Player by downloading here.

Welcome Guest Search | Active Topics | Log In | Register

Install AppLife Update Windows Service with AppLife? Options
Edhy
#1 Posted : Monday, August 09, 2010 7:24:38 AM
Rank: Newbie
Groups: Member

Joined: 10/11/2009
Posts: 18

Hi Brian,

I have an application using AppLife Update without the Windows Service, now I would like to incorporate the AppLife Update Windows Service in this application, can I install the Windows Service using another update with the Update Controller, or should I build a new Setup with my setup program to use the Windows Service merge module?



Edhy Rijo
brianh
#2 Posted : Wednesday, August 11, 2010 8:09:30 AM
Rank: Administration
Groups: Member, Administration

Joined: 5/24/2007
Posts: 362
Location: Minnesota

Hello Edhy,

 

Currently the best method to use to deploy the Update Service during an update is to create a simple MSI that installs the service using the merge module that ships with AppLife Update. Using the merge module will ensure proper reference counting on the installed service.

 

This MSI can be executed during an update using the Execute MSI action. Then, use the Registry update actions to add the necessary registery entries for your application to use the update service. You will need to register the full path of your host executable. You can access the physical path to your exe on the deployed client by using the Set Shared Property action.  With this action, you can select the ApplicationDirectory and assign that to a shared property which you can use in the registry actions.

 

It is important to recognize that your users must have adminstrative privileges when this update is applied, or the update will fail. Only after the service is present and your application registered, will limited users be able to apply updates that require privileges.

Brian Haas
Kinetic Jump Software
Edhy
#3 Posted : Wednesday, August 11, 2010 8:28:55 AM
Rank: Newbie
Groups: Member

Joined: 10/11/2009
Posts: 18

Hi Brian,

Thanks for the idea, will work on it, even though since I am using InstallAware (IA) and there is no way from IA to update the poperties needed by the MSM module, so I created my own IA script to install the service which is working just fine (later this week I will send you my IA scripts so you can post it here for anybody using IA).

So now, after the service is installed and the application registered in the registry, is there something else I need to do to my current application to use the service?

Also I have a custom form to show the user to look and process an update, will this continue to work, or there will be no notifications showing up to the user while the service is installing an update?



Edhy Rijo
brianh
#4 Posted : Wednesday, August 11, 2010 8:43:59 AM
Rank: Administration
Groups: Member, Administration

Joined: 5/24/2007
Posts: 362
Location: Minnesota

Hello Edhy,

 

On the update controller, set the ElevationType property to AppLifeWindowsService.

 

After that, your updates will launch using the service.  When using the service, your update actions cannot interact with the user.  If you are launching any other processes using the Command Line action, MSI action, Dynamic Code Action, or custom actions, they must operate silently.

 

Other than that, the update process will be identical to a non-serviced update.

Brian Haas
Kinetic Jump Software
Edhy
#5 Posted : Wednesday, August 11, 2010 8:51:51 AM
Rank: Newbie
Groups: Member

Joined: 10/11/2009
Posts: 18

Great! thanks.



Edhy Rijo
dsmith
#6 Posted : Thursday, September 02, 2010 3:08:02 PM
Rank: Member
Groups: Member

Joined: 9/2/2010
Posts: 1

Has anyone done this with Visual Studio? 'Currently the best method to use to deploy the Update Service during an update is to create a simple MSI that installs the service using the merge module that ships with AppLife Update.'

brianh wrote:

Hello Edhy,

 

Currently the best method to use to deploy the Update Service during an update is to create a simple MSI that installs the service using the merge module that ships with AppLife Update. Using the merge module will ensure proper reference counting on the installed service.

 

This MSI can be executed during an update using the Execute MSI action. Then, use the Registry update actions to add the necessary registery entries for your application to use the update service. You will need to register the full path of your host executable. You can access the physical path to your exe on the deployed client by using the Set Shared Property action.  With this action, you can select the ApplicationDirectory and assign that to a shared property which you can use in the registry actions.

 

It is important to recognize that your users must have adminstrative privileges when this update is applied, or the update will fail. Only after the service is present and your application registered, will limited users be able to apply updates that require privileges.

Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.