mirror of
https://github.com/electron/node-gyp.git
synced 2025-08-15 12:58:19 +02:00

Detect visual studio installation using the VSSetup module and Get-VSSetupInstance method. It works even in systems with the Constrained language mode of PowerShell.
369 lines
18 KiB
Text
369 lines
18 KiB
Text
[
|
|
{
|
|
"InstanceId": "621862c0",
|
|
"InstallationName": "VisualStudio/17.8.3+34330.188",
|
|
"InstallationPath": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise",
|
|
"InstallationVersion": {
|
|
"Major": 17,
|
|
"Minor": 8,
|
|
"Build": 34330,
|
|
"Revision": 188,
|
|
"MajorRevision": 0,
|
|
"MinorRevision": 188
|
|
},
|
|
"InstallDate": "\/Date(1703254955000)\/",
|
|
"State": 4294967295,
|
|
"DisplayName": "Visual Studio Enterprise 2022",
|
|
"Description": "Scalable, end-to-end solution for teams of any size",
|
|
"ProductPath": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\Common7\\IDE\\devenv.exe",
|
|
"Product": {
|
|
"Id": "Microsoft.VisualStudio.Product.Enterprise",
|
|
"Version": {
|
|
"Major": 17,
|
|
"Minor": 8,
|
|
"Build": 34330,
|
|
"Revision": 188,
|
|
"MajorRevision": 0,
|
|
"MinorRevision": 188
|
|
},
|
|
"Chip": "x64",
|
|
"Branch": null,
|
|
"Type": "Product",
|
|
"IsExtension": false,
|
|
"UniqueId": "Microsoft.VisualStudio.Product.Enterprise,version=17.8.34330.188,chip=x64"
|
|
},
|
|
"Packages": [
|
|
{
|
|
"Id": "Microsoft.VisualStudio.Product.Enterprise",
|
|
"Version": "17.8.34330.188",
|
|
"Chip": "x64",
|
|
"Branch": null,
|
|
"Type": "Product",
|
|
"IsExtension": false,
|
|
"UniqueId": "Microsoft.VisualStudio.Product.Enterprise,version=17.8.34330.188,chip=x64"
|
|
},
|
|
{
|
|
"Id": "Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
|
|
"Version": "17.8.34129.139",
|
|
"Chip": null,
|
|
"Branch": null,
|
|
"Type": "Component",
|
|
"IsExtension": false,
|
|
"UniqueId": "Microsoft.VisualStudio.Component.VC.Tools.x86.x64,version=17.8.34129.139"
|
|
},
|
|
{
|
|
"Id": "Microsoft.VisualStudio.Component.Windows11SDK.22000",
|
|
"Version": "17.8.34129.139",
|
|
"Chip": null,
|
|
"Branch": null,
|
|
"Type": "Component",
|
|
"IsExtension": false,
|
|
"UniqueId": "Microsoft.VisualStudio.Component.Windows11SDK.22000,version=17.8.34129.139"
|
|
},
|
|
{
|
|
"Id": "Win11SDK_10.0.22000",
|
|
"Version": "10.0.22000.4",
|
|
"Chip": null,
|
|
"Branch": null,
|
|
"Type": "Exe",
|
|
"IsExtension": false,
|
|
"UniqueId": "Win11SDK_10.0.22000,version=10.0.22000.4"
|
|
},
|
|
{
|
|
"Id": "Microsoft.VisualStudio.Component.Windows10SDK.20348",
|
|
"Version": "17.8.34129.139",
|
|
"Chip": null,
|
|
"Branch": null,
|
|
"Type": "Component",
|
|
"IsExtension": false,
|
|
"UniqueId": "Microsoft.VisualStudio.Component.Windows10SDK.20348,version=17.8.34129.139"
|
|
},
|
|
{
|
|
"Id": "Win10SDK_10.0.20348",
|
|
"Version": "10.0.20348.3",
|
|
"Chip": null,
|
|
"Branch": null,
|
|
"Type": "Exe",
|
|
"IsExtension": false,
|
|
"UniqueId": "Win10SDK_10.0.20348,version=10.0.20348.3"
|
|
}
|
|
],
|
|
"Properties": [
|
|
{
|
|
"Key": "CampaignId",
|
|
"Value": ""
|
|
},
|
|
{
|
|
"Key": "SetupEngineFilePath",
|
|
"Value": "C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\setup.exe"
|
|
},
|
|
{
|
|
"Key": "Nickname",
|
|
"Value": ""
|
|
},
|
|
{
|
|
"Key": "ChannelManifestId",
|
|
"Value": "VisualStudio.17.Release/17.8.3+34330.188"
|
|
}
|
|
],
|
|
"Errors": null,
|
|
"EnginePath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\resources\\app\\ServiceHub\\Services\\Microsoft.VisualStudio.Setup.Service",
|
|
"IsComplete": true,
|
|
"IsLaunchable": true,
|
|
"CatalogInfo": [
|
|
{
|
|
"Key": "Id",
|
|
"Value": "VisualStudio/17.8.3+34330.188"
|
|
},
|
|
{
|
|
"Key": "BuildBranch",
|
|
"Value": "d17.8"
|
|
},
|
|
{
|
|
"Key": "BuildVersion",
|
|
"Value": "17.8.34330.188"
|
|
},
|
|
{
|
|
"Key": "LocalBuild",
|
|
"Value": "build-lab"
|
|
},
|
|
{
|
|
"Key": "ManifestName",
|
|
"Value": "VisualStudio"
|
|
},
|
|
{
|
|
"Key": "ManifestType",
|
|
"Value": "installer"
|
|
},
|
|
{
|
|
"Key": "ProductDisplayVersion",
|
|
"Value": "17.8.3"
|
|
},
|
|
{
|
|
"Key": "ProductLine",
|
|
"Value": "Dev17"
|
|
},
|
|
{
|
|
"Key": "ProductLineVersion",
|
|
"Value": "2022"
|
|
},
|
|
{
|
|
"Key": "ProductMilestone",
|
|
"Value": "RTW"
|
|
},
|
|
{
|
|
"Key": "ProductMilestoneIsPreRelease",
|
|
"Value": "False"
|
|
},
|
|
{
|
|
"Key": "ProductName",
|
|
"Value": "Visual Studio"
|
|
},
|
|
{
|
|
"Key": "ProductPatchVersion",
|
|
"Value": "3"
|
|
},
|
|
{
|
|
"Key": "ProductPreReleaseMilestoneSuffix",
|
|
"Value": "1.0"
|
|
},
|
|
{
|
|
"Key": "ProductSemanticVersion",
|
|
"Value": "17.8.3+34330.188"
|
|
},
|
|
{
|
|
"Key": "RequiredEngineVersion",
|
|
"Value": "3.8.2112.61926"
|
|
}
|
|
],
|
|
"IsPrerelease": false,
|
|
"PSPath": "Microsoft.PowerShell.Core\\FileSystem::C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise",
|
|
"UpdateDate": "2023-12-22T14:22:35.1818213Z",
|
|
"ResolvedInstallationPath": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise",
|
|
"ChannelId": "VisualStudio.17.Release",
|
|
"InstalledChannelId": "VisualStudio.17.Release",
|
|
"ChannelUri": "https://aka.ms/vs/17/release/channel",
|
|
"InstalledChannelUri": "https://aka.ms/vs/17/release/channel",
|
|
"ReleaseNotes": "https://docs.microsoft.com/en-us/visualstudio/releases/2022/release-notes-v17.8#17.8.3",
|
|
"ThirdPartyNotices": "https://go.microsoft.com/fwlink/?LinkId=661288"
|
|
},
|
|
{
|
|
"InstanceId": "dd50c6cc",
|
|
"InstallationName": "VisualStudio/17.8.3+34330.188",
|
|
"InstallationPath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools",
|
|
"InstallationVersion": {
|
|
"Major": 17,
|
|
"Minor": 8,
|
|
"Build": 34330,
|
|
"Revision": 188,
|
|
"MajorRevision": 0,
|
|
"MinorRevision": 188
|
|
},
|
|
"InstallDate": "\/Date(1703262914503)\/",
|
|
"State": 4294967295,
|
|
"DisplayName": "Visual Studio Build Tools 2022",
|
|
"Description": "The Visual Studio Build Tools allows you to build native and managed MSBuild-based applications without requiring the Visual Studio IDE. There are options to install the Visual C++ compilers and libraries, MFC, ATL, and C++/CLI support.",
|
|
"ProductPath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\Tools\\LaunchDevCmd.bat",
|
|
"Product": {
|
|
"Id": "Microsoft.VisualStudio.Product.BuildTools",
|
|
"Version": {
|
|
"Major": 17,
|
|
"Minor": 8,
|
|
"Build": 34330,
|
|
"Revision": 188,
|
|
"MajorRevision": 0,
|
|
"MinorRevision": 188
|
|
},
|
|
"Chip": null,
|
|
"Branch": null,
|
|
"Type": "Product",
|
|
"IsExtension": false,
|
|
"UniqueId": "Microsoft.VisualStudio.Product.BuildTools,version=17.8.34330.188"
|
|
},
|
|
"Packages": [
|
|
{
|
|
"Id": "Microsoft.VisualStudio.Product.BuildTools",
|
|
"Version": "17.8.34330.188",
|
|
"Chip": null,
|
|
"Branch": null,
|
|
"Type": "Product",
|
|
"IsExtension": false,
|
|
"UniqueId": "Microsoft.VisualStudio.Product.BuildTools,version=17.8.34330.188"
|
|
},
|
|
{
|
|
"Id": "Microsoft.VisualStudio.Workload.MSBuildTools",
|
|
"Version": "17.8.34129.139",
|
|
"Chip": null,
|
|
"Branch": null,
|
|
"Type": "Workload",
|
|
"IsExtension": false,
|
|
"UniqueId": "Microsoft.VisualStudio.Workload.MSBuildTools,version=17.8.34129.139"
|
|
},
|
|
{
|
|
"Id": "Microsoft.VisualStudio.NuGet.BuildTools",
|
|
"Version": "17.0.60800.131",
|
|
"Chip": null,
|
|
"Branch": null,
|
|
"Type": "Vsix",
|
|
"IsExtension": false,
|
|
"UniqueId": "Microsoft.VisualStudio.NuGet.BuildTools,version=17.0.60800.131"
|
|
},
|
|
{
|
|
"Id": "Microsoft.Build.UnGAC",
|
|
"Version": "17.8.3.2351904",
|
|
"Chip": "neutral",
|
|
"Branch": null,
|
|
"Type": "Exe",
|
|
"IsExtension": false,
|
|
"UniqueId": "Microsoft.Build.UnGAC,version=17.8.3.2351904,chip=neutral,language=neutral"
|
|
},
|
|
{
|
|
"Id": "Microsoft.VisualStudio.VC.Icons",
|
|
"Version": "17.8.34129.139",
|
|
"Chip": null,
|
|
"Branch": null,
|
|
"Type": "Vsix",
|
|
"IsExtension": false,
|
|
"UniqueId": "Microsoft.VisualStudio.VC.Icons,version=17.8.34129.139"
|
|
}
|
|
],
|
|
"Properties": [
|
|
{
|
|
"Key": "CampaignId",
|
|
"Value": "09"
|
|
},
|
|
{
|
|
"Key": "SetupEngineFilePath",
|
|
"Value": "C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\setup.exe"
|
|
},
|
|
{
|
|
"Key": "Nickname",
|
|
"Value": "2"
|
|
},
|
|
{
|
|
"Key": "ChannelManifestId",
|
|
"Value": "VisualStudio.17.Release/17.8.3+34330.188"
|
|
}
|
|
],
|
|
"Errors": null,
|
|
"EnginePath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\resources\\app\\ServiceHub\\Services\\Microsoft.VisualStudio.Setup.Service",
|
|
"IsComplete": true,
|
|
"IsLaunchable": true,
|
|
"CatalogInfo": [
|
|
{
|
|
"Key": "Id",
|
|
"Value": "VisualStudio/17.8.3+34330.188"
|
|
},
|
|
{
|
|
"Key": "BuildBranch",
|
|
"Value": "d17.8"
|
|
},
|
|
{
|
|
"Key": "BuildVersion",
|
|
"Value": "17.8.34330.188"
|
|
},
|
|
{
|
|
"Key": "LocalBuild",
|
|
"Value": "build-lab"
|
|
},
|
|
{
|
|
"Key": "ManifestName",
|
|
"Value": "VisualStudio"
|
|
},
|
|
{
|
|
"Key": "ManifestType",
|
|
"Value": "installer"
|
|
},
|
|
{
|
|
"Key": "ProductDisplayVersion",
|
|
"Value": "17.8.3"
|
|
},
|
|
{
|
|
"Key": "ProductLine",
|
|
"Value": "Dev17"
|
|
},
|
|
{
|
|
"Key": "ProductLineVersion",
|
|
"Value": "2022"
|
|
},
|
|
{
|
|
"Key": "ProductMilestone",
|
|
"Value": "RTW"
|
|
},
|
|
{
|
|
"Key": "ProductMilestoneIsPreRelease",
|
|
"Value": "False"
|
|
},
|
|
{
|
|
"Key": "ProductName",
|
|
"Value": "Visual Studio"
|
|
},
|
|
{
|
|
"Key": "ProductPatchVersion",
|
|
"Value": "3"
|
|
},
|
|
{
|
|
"Key": "ProductPreReleaseMilestoneSuffix",
|
|
"Value": "1.0"
|
|
},
|
|
{
|
|
"Key": "ProductSemanticVersion",
|
|
"Value": "17.8.3+34330.188"
|
|
},
|
|
{
|
|
"Key": "RequiredEngineVersion",
|
|
"Value": "3.8.2112.61926"
|
|
}
|
|
],
|
|
"IsPrerelease": false,
|
|
"PSPath": "Microsoft.PowerShell.Core\\FileSystem::C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise",
|
|
"UpdateDate": "2023-12-22T14:22:35.1818213Z",
|
|
"ResolvedInstallationPath": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise",
|
|
"ChannelId": "VisualStudio.17.Release",
|
|
"InstalledChannelId": "VisualStudio.17.Release",
|
|
"ChannelUri": "https://aka.ms/vs/17/release/channel",
|
|
"InstalledChannelUri": "https://aka.ms/vs/17/release/channel",
|
|
"ReleaseNotes": "https://docs.microsoft.com/en-us/visualstudio/releases/2022/release-notes-v17.8#17.8.3",
|
|
"ThirdPartyNotices": "https://go.microsoft.com/fwlink/?LinkId=661288"
|
|
}
|
|
]
|