Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing DNVM in Windows 7 fails if username contains special characters #509

Closed
nordbergmikael opened this issue Apr 29, 2015 · 6 comments

Comments

@nordbergmikael
Copy link

On my home PC I use the user account "Yours & Mine". DNVM install fails with:

Downloading DNVM.cmd to
Installing DNVM
The string starting:
At line:1 char:139
+ [System.Threading.Thread]::CurrentThread.CurrentCulture = ''; [System.Threadi
ng.Thread]::CurrentThread.CurrentUICulture = '';$CmdPathFile= <<<< 'C:\Users\Yo
urs
is missing the terminator: '.
At line:1 char:153
+ [System.Threading.Thread]::CurrentThread.CurrentCulture = ''; [System.Threadi
ng.Thread]::CurrentThread.CurrentUICulture = '';$CmdPathFile='C:\Users\Yours <<<
<
    + CategoryInfo          : ParserError: (C:\Users\Yours:String) [], ParentCo
   ntainsErrorRecordException
    + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString
@muratg
Copy link
Contributor

muratg commented Apr 30, 2015

/cc: @glennc

@flykoh
Copy link

flykoh commented Sep 14, 2015

i have the same issue

@muratg
Copy link
Contributor

muratg commented Sep 14, 2015

@flykoh What's the version of dnvm?

@glennc
Copy link
Contributor

glennc commented Sep 23, 2015

Closing this one, without more information about what version of dnvm and what the username is it is hard to diagnose. We have had problems with spaces in usernames, and we did some work to fix that. So it is possible if you have an older DNVM that you haven't got that fix. Otherwise if it is still happening on the latest DNVM then you should post back and tell us what the username that is breaking is, see if it is a special character or something that causes the Powershell script to break.

@glennc glennc closed this as completed Sep 23, 2015
@glennc
Copy link
Contributor

glennc commented Sep 23, 2015

We will re-open if we get more info :)

@darrelo
Copy link

darrelo commented Jan 27, 2016

I am experiencing the same issue. My username contains an apostrophe.

@PowerShell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}"

Using temporary directory: C:\Users\DARREL1.O'N\AppData\Local\Temp\dnvminstall
Downloading DNVM.ps1 to C:\Users\DARREL
1.O'N\AppData\Local\Temp\dnvminstall\dnvm.ps1
Downloading DNVM.cmd to C:\Users\DARREL1.O'N\AppData\Local\Temp\dnvminstall\dnvm.cmd
Installing DNVM
Unexpected token 'neil\AppData\Local\Temp\tmp1023.tmp.cmd';& 'C:\Users\DARREL
1
.O'N\AppData\Local\Temp\dnvminstall\dnvm.ps1'' in expression or statement.
At line:1 char:264

  • [System.Threading.Thread]::CurrentThread.CurrentCulture = ''; [System.Threadi
    ng.Thread]::CurrentThread.CurrentUICulture = '';$CmdPathFile='C:\Users\Darrel.o
    'neil\AppData\Local\Temp\tmp1023.tmp.cmd';& 'C:\Users\DARREL~1.O'N\AppData\Loca
    l\Temp\dnvminstall\dnvm.ps1' <<<< setup
    • CategoryInfo : ParserError: (neil\AppData\Lo...stall\dnvm.ps1':
      String) [], ParentContainsErrorRecordException
    • FullyQualifiedErrorId : UnexpectedToken

jkotalik added a commit that referenced this issue Nov 1, 2018
natemcmaster added a commit that referenced this issue Nov 15, 2018
…master

[automated] Merge branch 'release/2.2' => 'master'
@ghost ghost locked as resolved and limited conversation to collaborators Dec 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants