WARNING: Please review the scripts prior to executing them. They are working well on my machine, but I accept no responsibility for the changes that are made on your machine.
./Install-TFPT.ps1 -InstallDirectory <path>
./Uninstall-TFPT.ps1 -InstallDirectory <path>
Add-PSSnapin Microsoft.TeamFoundation.PowerShell
We are still using TFVC at work for the time being, and we have a number of PowerShell scripts that utilize the PowerShell cmdlets that are installed with Team Foundation Power Tools 2015. Unfortunately, the power tools installer requires Visual Studio 2015 to be installed. Now that I have repaved my machine moved completely over to Visual Studio 2017, I didn't want Visual Studio 2015 to be installed on my machine.
The install script will download the installer msi, extract it and register the PowerShell Snapin on the system.
The uninstall script will unregister the PowerShell Snapin, delete the passed in install directory and remove the working folder created when the install script was originally run.
WARNING: Please review the scripts prior to executing them. They are working well on my machine, but I accept no responsibility for the changes that are made on our machin
- Chocolatey - Must be present on the machine.
- lessmsi - Install script will install it via Chocolatey if it is not already installed.