I have a windows service project that has a Build ready and now needs to be installed at the target machine and run. There is no task in TFS Releases that allows that to happen. What are my options other than writing a custom PowerShell script?
Release Windows Service from TFS 2015 Build
1.3k Views Asked by Ali Kareem Raja At
2
There are 2 best solutions below
0
PatrickLu-MSFT
On
For the current approach, you need to install the build and deployment agents on a set of proxy servers in an agent pool and drive deployments to remote target servers.
The simplest way is using remote powershell task to achieve the installation. Details about the task please take a look at Deploy: PowerShell on Target Machines
In the near future, you could also use Agent-based deployment in Release Management. For this, you can install the agent on each of your target servers directly, and then drive rolling deployment to those servers. More details please refer this blog: Agent-based deployment in Release Management
Related Questions in TFS
- Missing Header (Feature Title and Toolbar) on some Feature Work Items in TFS Web Access
- Upgrading separate Project Collection Database to new TFS Version
- OpsHub Visual Studio Online Migration Utility Hangs on Creating Configuration
- The merge tool is not showing when call Workspace.ResolveConflict method in TFS 2012
- HowTo: change a project's status from `Invalid` to `Valid`?
- TFS 2013 Object reference not set to an instance of an object in Team Explorer
- Release Management for Visual Studio 2013 - Release Exception
- Visual studio 2013 team project has been deleted
- TFS version control does not show conflicts
- include typescript file in output result build with TFS
- Team Foundation 2012 not recognising changes in vb6 app
- WebDeploy from TFS using Build Definitions to IIS site containing files changed by users
- Team Foundation plugin for Android Studio
- TFS 2013 with Octopus Deploy, Email Template - Resolved Bugs/User Stories
- What is the best branching strategy in TFS to share code between multiple team projects?
Related Questions in WINDOWS-SERVICES
- Quartz.net as service can't configure the quartz_job.xml
- Service is reporting "service has reported an invalid current state 0."
- Instrumenting windows service with Application Insights
- Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL)) on ChartObject.CopyPicture
- Is there a list of usual meanings to ServiceBase.ExitCode value?
- How do I use the windows service and WCF to update some record in database?
- Specify directory for Serilog rolling file path
- Architecture - Task Scheduling (Data File Processing) - Windows Service
- AppFabric hosting/management replacement
- Issue with installing service from code (access denied?)
- Windows Service "Service could not be started" from EventLog call
- Problems with Tomcat 8 running as a service on Windows Server 2008
- How to Start Windows Service As Administrator Privileges
- Set interval for Automatic (Delayed Start) Windows Services
- Using a FileSystemWatcher with Windows Service
Related Questions in RELEASE
- SVN - folder checkout and merges
- Gradle Build Failure
- Cordova debug.apk works fine, but signed version crashes
- OpenGL program works only in Debug mode in Visual Studio 2013
- Access location 0xFFFFFFFFF crash between x64 and Win32 configuration
- Error while build boost release
- Lock screen notification automatically releases lock when it is tapped
- Programmatically triggered Bamboo plans
- Google Play App Store icon rules
- How to change SHA1 fingerprint in an android app
- Undo git push mirror
- Monolith git repo vs micro repos
- Throwing: 'Could not load file or assembly error' when I run my application release .exe
- Occasionally crash with _nano_malloc_check_clear
- How do I create an installer for a new release?
Related Questions in TFS-2015
- TFS 2015 RC Build.Preview Execute xUnit Tests
- Configuring a TFS2015 build agent fails because agent pool not found. Why?
- How to Migrate Multiple TFS Collections from TFS 2010 into a Single Collection on TFS 2015
- TFS 2015 Upgrade Questions
- How to authenticate build.vnext agent to on-premise TFS
- TFS 2015 RC Build vNext - Hangs on Code Coverage
- How to create a custom widget using TFS data?
- Data Driven Selenium with TFS
- Can't add new project to collection in TFS2015
- Visual Studio ASP.NET Web API Precompiled files placed in a different folder with TFS 2015
- Partially stage files with Visual Studio
- Retrieve work items in recycle bin in TFS 2015 update 3(on premise)
- TFS 2015 API remove agent from pool with PowerShell
- TFS Git - creating branch and tag directly on remote repository
- Count of builds run per day usable as revision number substitute?
Related Questions in RELEASE-MANAGEMENT
- Release Management for Visual Studio 2013 - Release Exception
- What is the best branching strategy in TFS to share code between multiple team projects?
- How to deploy with Release Management to remote datacenter
- Apache tomcat deployment with load balancer
- Release Management for Visual Studio - Remove Web.Config Key
- Unable to deploy the solution using Release Management
- Android private release
- TFS 2013 Team Explorer Extension : Release notes data
- Deploy different files based on the environment
- Release Windows Service from TFS 2015 Build
- Configure Visual Studio Team Services to deploy WebJobs
- development branch with multiple parallel releases
- Set-AzureWebsite: No default subscription has been designated.
- How to remove a group from Xcode project programmatically?
- Enforce merge branch approval for TFS
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can do this easily with Team Build.
You use the "Copy" task on the Release tab to send the files to the machine that you want, and then run a remote PowerShell to do the installation.
You can even deploy the same Windows service to 10 machines using "Machine Groups".