Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question

migrated from stackoverflow.com May 21 '11 at 21:34

This question came from our site for professional and enthusiast programmers.

    
-1 It is not clear what is being called a Windows Service here –  Julius A Aug 12 '09 at 11:27
    
Question reworded, please have a look. –  Selwyn Aug 12 '09 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. –  0xC0000022L May 20 '11 at 18:30

2 Answers 2

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

share|improve this answer

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.