C# VS2003 Windows Service: Deploying on Server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mr Gray
    New Member
    • Apr 2008
    • 47

    #1

    C# VS2003 Windows Service: Deploying on Server

    Hello,

    My service is written in C# and works wonderfully but i cannot remember how to install onto the server which is Windows 2003. I can install locally using InstallUtil but cannot remember how to install on the server. Is there a way of doing this in a bat file by setting a path then doing gacutil -i windowService.e xe without SN'ing?

    Thanks.
    Last edited by Mr Gray; Apr 10 '08, 11:33 AM. Reason: Spelling Mistake
  • Mr Gray
    New Member
    • Apr 2008
    • 47

    #2
    Originally posted by Mr Gray
    Hello,

    My service is written in C# and works wonderfully but i cannot remember how to install onto the server which is Windows 2003. I can install locally using InstallUtil but cannot remember how to install on the server. Is there a way of doing this in a bat file by setting a path then doing gacutil -i windowService.e xe without SN'ing?

    Thanks.

    DOH! I solved this myself by using the following code in a batch file:

    Code:
    set path=C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
    cd \ServiceDirectory
    installutil -i "ServiceName.exe"
    pause
    So basically just forgot the location of the InstallUtil.exe program after i found it i could install as desired.

    Comment

    Working...