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

Bootstrap : get path to TD executable not working #67

Open
Scelibre opened this issue Feb 9, 2024 · 0 comments
Open

Bootstrap : get path to TD executable not working #67

Scelibre opened this issue Feb 9, 2024 · 0 comments

Comments

@Scelibre
Copy link

Scelibre commented Feb 9, 2024

``Describe the bug
I had a problem, the bootstrap could never find TouchDesigner even though it was installed, it reinstalled it each time which was very annoying. I fixed this problem on my PC but I don't know if it will work for everyone.

Desktop:

  • Device: Asus Computer
  • OS: Windows 10 Pro - 22H2 (19045.3930)

These changes resolved the issue:

...
:: IF registry entry exists, get path to TD executable and set to variable td_executable_path
:: Next, trim off the last 5 characters to get the pure path. !! characters are used for DelayedExpansion
reg query %registry_query_str% >nul
if not %errorlevel% equ 0 goto InstallTD

FOR /F "usebackq tokens=3,* skip=2" %%L IN (
    `reg query %registry_query_str%`
) DO SET td_executable_path=%%M
SET td_executable_path=!td_executable_path:~0,-5!

if exist !td_executable_path! goto ReadyToLaunch

:InstallTD
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant