This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task PrepareClickOnce { | |
write-host 'Add mage to our path' | |
$env:path += ";C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools" | |
write-host "Preparing install directory" | |
$installersRoot = '..\installers\app' | |
if (test-path $installersRoot) { | |
Write-Host "Cleaning installers root" | |
rm -r -force $installersRoot > $null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires -version 2.0 | |
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory=$true)] | |
[string] | |
$ComputerName, | |
[Parameter(Mandatory=$true)] | |
[string] |