File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -641,8 +641,12 @@ public static void DownloadAndInstall(string url, string version)
641641 if ( DownloadFile ( exeURL , tempFile ) == true )
642642 {
643643 // get base version, to use for install path
644- string outputVersionFolder = "\\ " + version . Split ( '.' ) [ 0 ] + "_" + version . Split ( '.' ) [ 1 ] ;
645- string targetPathArgs = " /D=" + Properties . Settings . Default . rootFolders [ Properties . Settings . Default . rootFolders . Count - 1 ] + outputVersionFolder ; ;
644+ // FIXME check if have any paths?
645+ string lastRootFolder = Properties . Settings . Default . rootFolders [ Properties . Settings . Default . rootFolders . Count - 1 ] ;
646+ // check if ends with / or \
647+ if ( lastRootFolder . EndsWith ( "/" ) == false && lastRootFolder . EndsWith ( "\\ " ) == false ) lastRootFolder += "/" ;
648+ string outputVersionFolder = version . Split ( '.' ) [ 0 ] + "_" + version . Split ( '.' ) [ 1 ] ;
649+ string targetPathArgs = " /D=" + lastRootFolder + outputVersionFolder ; ;
646650
647651 // if user clicks NO to UAC, this fails (so added try-catch)
648652 try
You can’t perform that action at this time.
0 commit comments