Remove Odin portable MSVC workaround
This commit is contained in:
parent
2d867179cd
commit
da890c911c
27
install.py
27
install.py
@ -231,33 +231,6 @@ if "%~1" neq "" (
|
||||
|
||||
start "" /MAX "%~dp0{installed_dev_apps["WezTerm"][0]["exe_path"].relative_to(install_dir)}" !working_dir!
|
||||
""")
|
||||
|
||||
# Create Odin work-around scripts
|
||||
# --------------------------------------------------------------------------
|
||||
# Odin uses J. Blow's Microsoft craziness SDK locator which relies on the
|
||||
# registry. Here we inject the registry entry that the SDK locator checks for
|
||||
# finding our portable MSVC installation.
|
||||
win10_sdk_find_test_dir_reg_path = str(win10_sdk_find_test_dir).replace("\\", "\\\\")
|
||||
|
||||
odin_msvc_install_script_path = install_dir / "odin_msvc_install_workaround.reg"
|
||||
odin_msvc_uninstall_script_path = install_dir / "odin_msvc_uninstall_workaround.reg"
|
||||
|
||||
devenver.lprint(f"Installing Odin MSVC workaround scripts", level=0)
|
||||
devenver.lprint(f" - {odin_msvc_install_script_path}", level=1)
|
||||
devenver.lprint(f" - {odin_msvc_uninstall_script_path}", level=1)
|
||||
|
||||
odin_msvc_install_script_path.write_text(f"""Windows Registry Editor Version 5.00
|
||||
|
||||
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows Kits\Installed Roots]
|
||||
"KitsRoot10"="{win10_sdk_find_test_dir_reg_path}"
|
||||
""")
|
||||
|
||||
odin_msvc_uninstall_script_path.write_text(f"""Windows Registry Editor Version 5.00
|
||||
|
||||
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows Kits\Installed Roots]
|
||||
"KitsRoot10"=-
|
||||
""")
|
||||
|
||||
# Python
|
||||
# --------------------------------------------------------------------------
|
||||
# TODO: If I'm using the terminal that this script generates it will lock the
|
||||
|
Loading…
Reference in New Issue
Block a user