Skip to content

Commit ac6af09

Browse files
authored
Disable the first launch dialog in integration tests (#11699)
Recommended not to look at this commit-at-a-time because it's just too embarrassing. No idea if this works, but I don't think it will make it worse.
2 parents 6f15edc + b295a0a commit ac6af09

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

eng/SetupVSHive.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ $vsRegEdit = Join-Path (Join-Path (Join-Path $vsDir 'Common7') 'IDE') 'VSRegEdit
1212
$hive = "RoslynDev"
1313
&$vsRegEdit set "$vsDir" $hive HKCU "Roslyn\Internal\OnOff\Features" OOP64Bit dword 0
1414

15+
&$vsRegEdit set "$vsDir" $hive HKLM "Profile" DisableFirstLaunchDialog dword 1
16+
1517
Write-Host "-- VS Info --"
1618
$isolationIni = Join-Path (Join-Path (Join-Path $vsDir 'Common7') 'IDE') 'devenv.isolation.ini'
1719
Get-Content $isolationIni | Write-Host

eng/scripts/CreateVSHive.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,13 @@ if($success -eq $false){
3131
throw "Failed to create hive"
3232
}
3333

34-
Write-Host "-- VS Info --"
3534
$vsDir = Split-Path -Parent $devenvExePath
35+
36+
$vsRegEdit = Join-Path $vsDir 'VsRegEdit.exe'
37+
38+
&$vsRegEdit set "$vsDir" RoslynDev HKLM "Profile" DisableFirstLaunchDialog dword 1
39+
40+
Write-Host "-- VS Info --"
3641
$isolationIni = Join-Path $vsDir 'devenv.isolation.ini'
3742
Get-Content $isolationIni | Write-Host
3843
Write-Host "-- /VS Info --"

0 commit comments

Comments
 (0)