I don't understand it either. But I believe I have proved it experimentally. If the profile folder in c:\users has a space in the path then the batch fails. Maybe its to do with the full path to tcmd.ini containing a space.
For my original user I renamed the folder in c:\users to remove the...
Created a new windows user just using my first name. Works ok there as well. So only fails if the windows user is named <first name><space><last name>.
Even a simpler version shows the same problem ( I am running tcmd elevated):
for /F "tokens=1,2*" %i in ('reg query HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7 /v 12.0') do echo %i
Same problem happens both on my host machine and a vmware virtual machine running the same os...
This type of line returns a syntax error from req query:
@echo off
for /F "tokens=1,2*" %%i in ('reg query "HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7" /v "12.0"') DO (
@if "%%i"=="12.0" (
echo found
@SET "VS120COMNTOOLS=%%k"
)
)
Duplicate cmd.exe bugs option...
I am running it as an administrator. Also Everyone user has full control to the install directory and subdirectories. Problem has now returned.
I think the problem is tcc. If I run tcc directly all I see is a blinking cursor. I don't see the registration lines.
Would install for me on a clean install of Win7 build 7100 x64. However on first run the program would hang not showing the dialog to enter registration details. However manually adding the registration details into the registry allows it to run.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.