diff options
author | Bevan Weiss <bevan.weiss@gmail.com> | 2024-06-22 03:37:22 +1000 |
---|---|---|
committer | Bob Arnson <github@bobs.org> | 2024-07-04 19:25:49 -0400 |
commit | d2582c7bdbb09513849b36a49b5f992c2bc58e78 (patch) | |
tree | 186542b02a1e1c431a708a42416097318accba3d /src/test/sandbox/setup_sandbox.bat | |
parent | a4f09c89c7c044f606ddf6bcff587ccb693560bf (diff) | |
download | wix-d2582c7bdbb09513849b36a49b5f992c2bc58e78.tar.gz wix-d2582c7bdbb09513849b36a49b5f992c2bc58e78.tar.bz2 wix-d2582c7bdbb09513849b36a49b5f992c2bc58e78.zip |
Added some more modifications to the Sandbox.
It will now prompt for configuring the Remote Debugger if it can find it
on the host when doing the setup.
And will prompt within the Sandbox to run the Debugger at startup if found
It will also show the host-local IP address to connect to the debugger.
In addition, it will display a small menu to allow for simple selection of
a particular runtests.cmd version to execute.
I still haven't found a good way to get a debugger attached into the msiexec
environment without already having a coded breakpoint in, however.
Also added this sandbox folder to .gitignore, so that artifacts from here
aren't committed into the repo
Signed-off-by: Bevan Weiss <bevan.weiss@gmail.com>
Diffstat (limited to 'src/test/sandbox/setup_sandbox.bat')
-rw-r--r-- | src/test/sandbox/setup_sandbox.bat | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/src/test/sandbox/setup_sandbox.bat b/src/test/sandbox/setup_sandbox.bat index f74e7535..235f6724 100644 --- a/src/test/sandbox/setup_sandbox.bat +++ b/src/test/sandbox/setup_sandbox.bat | |||
@@ -1,16 +1,36 @@ | |||
1 | @setlocal | 1 | @setlocal |
2 | @SET DOTNET_VERSION=8.0 | 2 | @echo off |
3 | SET DOTNET_VERSION=8.0 | ||
3 | 4 | ||
4 | @if not exist AMD64 (mkdir AMD64) | 5 | if not exist AMD64 (mkdir AMD64) |
5 | @if not exist ARM64 (mkdir ARM64) | 6 | if not exist ARM64 (mkdir ARM64) |
6 | @REM if not exist VSTest (mkdir VSTest) | 7 | REM if not exist VSTest (mkdir VSTest) |
7 | 8 | ||
9 | @echo on | ||
8 | curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-runtime-win-x64.zip --output ".\AMD64\dotnet-runtime.zip" | 10 | curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-runtime-win-x64.zip --output ".\AMD64\dotnet-runtime.zip" |
9 | curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-sdk-win-x64.zip --output ".\AMD64\dotnet-sdk.zip" | 11 | curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-sdk-win-x64.zip --output ".\AMD64\dotnet-sdk.zip" |
10 | curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-runtime-win-arm64.zip --output ".\ARM64\dotnet-runtime.zip" | 12 | curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-runtime-win-arm64.zip --output ".\ARM64\dotnet-runtime.zip" |
11 | curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-sdk-win-arm64.zip --output ".\ARM64\dotnet-sdk.zip" | 13 | curl -L0 https://aka.ms/dotnet/%DOTNET_VERSION%/dotnet-sdk-win-arm64.zip --output ".\ARM64\dotnet-sdk.zip" |
14 | @echo off | ||
12 | 15 | ||
13 | REM "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -prerelease | 16 | REM curl -L0 https://aka.ms/vs/17/release/RemoteTools.amd64ret.enu.exe --output ".\AMD64\RemoteTools.exe" |
17 | REM curl -L0 https://aka.ms/vs/17/release/RemoteTools.arm64ret.enu.exe --output ".\ARM64\RemoteTools.exe" | ||
14 | 18 | ||
19 | for /f "usebackq tokens=*" %%i in (`"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -requires Microsoft.VisualStudio.Debugger.Remote -property installationPath`) do ( | ||
20 | set VsInstallDir=%%i | ||
21 | ) | ||
22 | if "!VsInstallDir!"=="" ( | ||
23 | for /f "usebackq tokens=*" %%i in (`"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -prerelease -latest -requires Microsoft.VisualStudio.Debugger.Remote -property installationPath`) do ( | ||
24 | set VsInstallDir=%%i | ||
25 | ) | ||
26 | ) | ||
27 | if "!VsInstallDir!"=="" ( | ||
28 | set /P "Confirm=Have found VisualStudio Debugger at '%VsInstallDir%', Do you wish to copy it for use by the Sandbox? (Y / N):" | ||
29 | if "%Confirm%"=="Y" ( | ||
30 | XCOPY "%VsInstallDir%\Common7\IDE\Remote Debugger\*" ".\Debugger\" /E | ||
31 | ) | ||
32 | ) | ||
15 | 33 | ||
34 | |||
35 | pause | ||
16 | @endlocal | 36 | @endlocal |