@@ -116,7 +116,7 @@ static void Install(bool installInPlace)
116116 if ( Directory . Exists ( newDir ) )
117117 Directory . Delete ( newDir , true ) ;
118118 Directory . CreateDirectory ( newDir ) ;
119- newPath = Path . Combine ( newDir , runtimeDir , filename ) ;
119+ newPath = Path . Combine ( newDir , runtimeDir , "bin" , filename ) ;
120120
121121 foreach ( var dir in Directory . EnumerateDirectories ( oldDir ) )
122122 {
@@ -140,9 +140,9 @@ static void Install(bool installInPlace)
140140 var envPath = ( Environment . GetEnvironmentVariable ( "Path" , EnvironmentVariableTarget . User )
141141 ? . Split ( new [ ] { ';' } , StringSplitOptions . RemoveEmptyEntries )
142142 . Where ( x => ! x . Contains ( nameof ( CSharpScriptRunner ) ) ) ?? Array . Empty < string > ( ) )
143- . Append ( Path . GetDirectoryName ( newPath ) ) ;
143+ . Append ( Path . GetDirectoryName ( Path . GetDirectoryName ( newPath ) ) ) ;
144144 Environment . SetEnvironmentVariable ( "Path" , string . Join ( ';' , envPath ) , EnvironmentVariableTarget . User ) ;
145- Environment . SetEnvironmentVariable ( nameof ( CSharpScriptRunner ) + "RuntimesDir" , Path . GetDirectoryName ( Path . GetDirectoryName ( newPath ) ) , EnvironmentVariableTarget . User ) ;
145+ Environment . SetEnvironmentVariable ( nameof ( CSharpScriptRunner ) + "RuntimesDir" , Path . GetDirectoryName ( Path . GetDirectoryName ( Path . GetDirectoryName ( newPath ) ) ) , EnvironmentVariableTarget . User ) ;
146146
147147 var filetype = ".csx" ;
148148
0 commit comments