⬆️ dnvm.ps1, dnvm.cmd, dnvm.sh

Source: aspnet/dnvm@74cbefa79c
This commit is contained in:
ASP.NET Push Bot 2015-11-02 09:59:52 -08:00 committed by unknown
parent a4314d1b30
commit 98355aa2af
2 changed files with 17 additions and 9 deletions

View File

@ -67,7 +67,7 @@ function _WriteOut {
### Constants
$ProductVersion="1.0.0"
$BuildVersion="rc2-15538"
$BuildVersion="rc2-15539"
$Authors="Microsoft Open Technologies, Inc."
# If the Version hasn't been replaced...
@ -1466,13 +1466,21 @@ function dnvm-install {
else {
_WriteOut "Installing to $RuntimeFolder"
_WriteDebug "Moving package contents to $RuntimeFolder"
try {
Move-Item $UnpackFolder $RuntimeFolder
} catch {
if(Test-Path $RuntimeFolder) {
#Attempt to cleanup the runtime folder if it is there after a fail.
Remove-Item $RuntimeFolder -Recurse -Force
throw
$retry=0
while($retry -ne 2) {
try {
Move-Item $UnpackFolder $RuntimeFolder -Force
break
} catch {
$retry=$retry+1
if($retry -eq 2) {
if(Test-Path $RuntimeFolder) {
#Attempt to cleanup the runtime folder if it is there after a fail.
_WriteDebug "Deleting $RuntimeFolder"
Remove-Item $RuntimeFolder -Recurse -Force
throw
}
}
}
}
#If there is nothing left in the temp folder remove it. There could be other installs happening at the same time as this.

View File

@ -2,7 +2,7 @@
# Source this file from your .bash-profile or script to use
# "Constants"
_DNVM_BUILDNUMBER="rc2-15538"
_DNVM_BUILDNUMBER="rc2-15539"
_DNVM_AUTHORS="Microsoft Open Technologies, Inc."
_DNVM_RUNTIME_PACKAGE_NAME="dnx"
_DNVM_RUNTIME_FRIENDLY_NAME=".NET Execution Environment"