vssetup 0.1.0

Tools for interacting with the Visual Studio installer
docs.rs failed to build vssetup-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: vssetup-0.3.0

Query Visual Studio setup for information on installed instances of Visual Studio.

This is a thin wrapper around the COM interface. Consult the Microsoft.VisualStudio.Setup.Configuration documentation for more information on the API.

Example

use vssetup::{com, HRESULT, SetupConfiguration};

fn main() -> Result<(), HRESULT> {
    com::initialize();
    let setup = vsinstance::SetupConfiguration::new()?;
    let instances = setup.EnumAllInstances()?;
    for instance in instances {
        let name = instance.GetDisplayName(0x400)?.to_string();
        println!("{name}");
    }
    Ok(())
}