Code Monkey home page Code Monkey logo

Comments (7)

zn123 avatar zn123 commented on August 15, 2024

PS E:\temp_qt\OBS\obs-deps> Get-CimInstance MSFT_VSInstance

Caption : Visual Studio Community 2019
Description : 功能强大的 IDE,供学生、开放源代码参与者和个人免费使用
ElementName : Visual Studio Community 2019
InstanceID : Microsoft:VisualStudio:3423fc0c
IdentifyingNumber : 3423fc0c
Name : Visual Studio Community 2019
SKUNumber :
Vendor : Microsoft Corporation
Version : 16.11.32602.291
WarrantyDuration :
WarrantyStartDate :
ChannelId : VisualStudio.16.Release
ChannelUri : https://aka.ms/vs/16/release/channel
InstallDate : 2022/1/5 15:00:48
InstallLocation : d:\Program Files\Microsoft Visual Studio\2019\Community
IsComplete : True
IsLaunchable : True
IsPrerelease : False
LayoutPath :
ProductId : Microsoft.VisualStudio.Product.Community
ProductLocation : d:\Program Files\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv.exe
State : 4294967295
PSComputerName :

Caption : Visual Studio Community 2017
Description : 适用于学生、开放源代码和个体开发人员的免费、全功能型 IDE
ElementName : Visual Studio Community 2017
InstanceID : Microsoft:VisualStudio:83b80a1e
IdentifyingNumber : 83b80a1e
Name : Visual Studio Community 2017
SKUNumber :
Vendor : Microsoft Corporation
Version : 15.9.28307.2019
WarrantyDuration :
WarrantyStartDate :
ChannelId : VisualStudio.15.Release
ChannelUri : https://aka.ms/vs/15/release/channel
InstallDate : 2021/1/12 16:47:32
InstallLocation : D:\Program Files\Microsoft Visual Studio\2017\Community
IsComplete : True
IsLaunchable : True
IsPrerelease : False
LayoutPath :
ProductId : Microsoft.VisualStudio.Product.Community
ProductLocation : D:\Program Files\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe
State : 4294967295
PSComputerName :

from obs-deps.

Fenrirthviti avatar Fenrirthviti commented on August 15, 2024

This sounds more likely to be a support request rather than a bug report, and we are not currently accepting support requests on GitHub Issues. Please use our forums or Discord for assistance.

Thank you!

from obs-deps.

zn123 avatar zn123 commented on August 15, 2024

i want build obs-deps

from obs-deps.

RytoEX avatar RytoEX commented on August 15, 2024

i want build obs-deps

The obs-deps Windows build scripts were designed to support systems with only VS2019 installed. That said, PR #108 is already in progress to better address systems that have multiple Visual Studio installations.

from obs-deps.

zn123 avatar zn123 commented on August 15, 2024

function Find-VisualStudio {
<#
.SYNOPSIS
Finds available Visual Studio instance.
.DESCRIPTION
Uses WMI (Windows Management Instrumentation) to find an installed
Visual Studio instance on the host system.
.EXAMPLE
Find-VisualStudio
#>

$VisualStudioData = Get-CimInstance MSFT_VSInstance
Log-Status $VisualStudioData.Version

if ( ! ( $VisualStudioData ) -or ( $VisualStudioData.Version -lt 16 ) ) {
    $ErrorMessage = @(
        "A Visual Studio installation (2019 or newer) is required for this build script.",
        "The Visual Studio Community edition is available for free at https://visualstudio.microsoft.com/vs/community/.",
        "",
        "If Visual Studio is indeed installed, locate the directory ",
        " 'C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualStudio.Setup.WMIProvider,Version=xxxx'",
        " right-click the file 'Microsoft.Visualstudio.Setup.WMIProvider.msi' and choose 'repair'."
    )

    throw $ErrorMessage
}

return $VisualStudioData

}

from obs-deps.

zn123 avatar zn123 commented on August 15, 2024
$VisualStudioData = Get-CimInstance MSFT_VSInstance
Log-Status $VisualStudioData.Version

 >   16.11.32602.291
 >   15.9.28307.2019

from obs-deps.

Fenrirthviti avatar Fenrirthviti commented on August 15, 2024

Please stop just spamming console output. If you need help with repairing your environment, use the forums or Discord.

from obs-deps.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.