# X.py: %1 is not a valid Win32 application

**URL:** <https://internals.rust-lang.org/t/x-py-1-is-not-a-valid-win32-application/11371>\
**Category:** Uncategorized\
**Created:** [November 25, 2019, 8:02pm UTC](https://internals.rust-lang.org/t/x-py-1-is-not-a-valid-win32-application/11371 "2019-11-25T20:02:34Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![CAD97](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/cad97/32/3460_2.png) [@CAD97](https://internals.rust-lang.org/u/CAD97)\
**Post date:** [November 25, 2019, 9:51pm UTC](https://internals.rust-lang.org/t/x-py-1-is-not-a-valid-win32-application/11371/3 "2019-11-25T21:51:17Z")

</div>

My VSConfig (gotten from VSInstaller):

```json
{
  "version": "1.0",
  "components": [
    "Microsoft.VisualStudio.Component.CoreEditor",
    "Microsoft.VisualStudio.Workload.CoreEditor",
    "Microsoft.VisualStudio.Component.NuGet",
    "Microsoft.VisualStudio.Component.Roslyn.Compiler",
    "Microsoft.Component.MSBuild",
    "Microsoft.VisualStudio.Component.TextTemplating",
    "Microsoft.VisualStudio.Component.IntelliCode",
    "Component.Microsoft.VisualStudio.LiveShare",
    "Microsoft.VisualStudio.Component.VC.CoreIde",
    "Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
    "Microsoft.VisualStudio.Component.Graphics.Tools",
    "Microsoft.VisualStudio.Component.VC.DiagnosticTools",
    "Microsoft.VisualStudio.Component.Windows10SDK.18362",
    "Microsoft.VisualStudio.Component.Debugger.JustInTime",
    "Microsoft.VisualStudio.Component.VC.Redist.14.Latest",
    "Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core",
    "Microsoft.VisualStudio.ComponentGroup.WebToolsExtensions.CMake",
    "Microsoft.VisualStudio.Component.VC.CMake.Project",
    "Microsoft.VisualStudio.Component.VC.ATL",
    "Microsoft.VisualStudio.Component.VC.TestAdapterForBoostTest",
    "Microsoft.VisualStudio.Component.VC.TestAdapterForGoogleTest",
    "Microsoft.VisualStudio.Workload.NativeDesktop"
  ]
}

```

I get the same results running from the native tools command prompt as previously in both powershell and cmd.

Though launching the native tools command prompt gives the following error message before the first prompt, so maybe my VS install is more messed up than I ever realized:

```rust
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

```

---

_[View the full topic](https://internals.rust-lang.org/t/x-py-1-is-not-a-valid-win32-application/11371)._
