Welcome › Forums › General PowerShell Q&A › Code to query Visual Studio installation
- This topic has 2 replies, 2 voices, and was last updated 2 weeks ago by
Participant.
-
AuthorPosts
-
-
December 25, 2020 at 5:47 am #282328
There is a C# module for PowerShell to get VS installation path here:
microsoft/vssetup.powershell: PowerShell module to interact with Visual Studio Setup (github.com)
My question is, do you know of any similar code that is pure PowerShell not C# for the same or similar purpose?
-
December 28, 2020 at 10:05 am #282691
The tools are outlined here indicating an API that can be queried:
As far as ‘pure powershell’, what is the issue with this:
PowerShell123Install-Module -Name VSSetupImport-Module -Name VSSetupGet-VSSetupInstance -
January 4, 2021 at 8:02 am #283957
Hello and sorry for late reply,
Thank you for sharing this link, I didn’t know it exists so added to my bookmarks.
There is nothing wrong with VSSetup module, I’m already using it, the reason why I seek PowerShell version of code is to include it into my repository and be able to modify it without introducing new languages.
It looks like I would have to write my function to drill registry, right now I’m not sure if I want this, so I think I’ll just stick with the module.
Thanks again.
-
-
AuthorPosts
- You must be logged in to reply to this topic.