2

How do I install Windows Service (msi package) on a remote windows server and configure its Logon options.

3
  • -1 It is not clear what is being called a Windows Service here
    – Julius A
    Commented Aug 12, 2009 at 11:27
  • Question reworded, please have a look.
    – Selwyn
    Commented Aug 12, 2009 at 12:13
  • I answered it from the programming point of view, but to me the way you ask the question this is not even programming-related. Commented May 20, 2011 at 18:30

2 Answers 2

1

To install an MSI, or anything else of that nature remotely, something needs to run on the remote box. If you're talking a service hosted in IIS, MsDeploy (now Web Publish) might work. If its something outisde of that scope, using psexec from sysinternals might work. If its part of a build process, Team Deploy layers on top of psexec. If you have System Center or similar system management infrastructure, you can push it out via that channel.

Bottom line is you havent given enough details as to how many things you want to install, on how many boxes and how often, for people to be able to give you a more precise answer than this.

EDIT: Running msiexec on the target box, probably via PowerShell Remoting would do the trick

0

The installation of a service is absolutely possible with the on-board instruments. PSEXEC from Sysinternals is proof of the concept.

What you do is basically to copy the (service) file over to the remote machine via the ADMIN$ share of the remote machine (and of course you have to be able to authenticate to the remote machine in order to access that in the first place). Then you use the OpenSCManager and CreateService functions as usual to install that file as a service. NB: this is a brief description of the steps that PSEXEC itself takes.

In Active Directory environments and given you are talking about an MSI, it may be easiest to use the existing facilities in the Active Directory to deploy the MSI to clients.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .