Skip to content

Commit f35025b

Browse files
[windows] ignore error on copying user profile warmup (#8493)
1 parent a50d7b4 commit f35025b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

images/win/scripts/Installers/Warmup-User.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ $devEnvPath = "$vsInstallRoot\Common7\IDE\devenv.exe"
1515

1616
cmd.exe /c "`"$devEnvPath`" /updateconfiguration"
1717

18-
Copy-Item ${env:USERPROFILE}\AppData\Local\Microsoft\VisualStudio -Destination c:\users\default\AppData\Local\Microsoft\VisualStudio -Recurse
18+
# we are fine if some file is locked and cannot be copied
19+
Copy-Item ${env:USERPROFILE}\AppData\Local\Microsoft\VisualStudio -Destination c:\users\default\AppData\Local\Microsoft\VisualStudio -Recurse -ErrorAction SilentlyContinue
1920

2021
reg.exe load HKLM\DEFAULT c:\users\default\ntuser.dat
2122
reg.exe copy HKCU\Software\Microsoft\VisualStudio HKLM\DEFAULT\Software\Microsoft\VisualStudio /s

0 commit comments

Comments
 (0)