VSCode - Shell extensions are not added during DSC
dxlusby opened this issue · 0 comments
dxlusby commented
Using the DSC snippet as below, VS code doesn't seem to install the shell extensions.. I checked HKEY_Classes_Root/*/shell and HKEY_Classes_Root/Directory/shell and the VSCode keys were not there. After manually running the VSCode installer and selecting the shell extensions as install options, the keys appeared.
if ($VSCode) {
xRemoteFile VSCodeInstaller {
Uri = "https://go.microsoft.com/fwlink/?LinkID=623230"
DestinationPath = "C:\VSCodeSetup.exe"
MatchSource = $false
}
VSCodeSetup VSCode {
IsSingleInstance = "yes"
Path = "C:\VSCodeSetup.exe"
DependsOn = "[xRemoteFile]VSCodeInstaller"
}
}