Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This version of %1 is not compatible with the version of Windows you're running. #2018

Closed
elibenporat opened this issue Jun 20, 2021 · 6 comments

Comments

@elibenporat
Copy link

elibenporat commented Jun 20, 2021

Describe the bug
I get the following cryptic error message: This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher. (os error 216)

I assume it's webview2, but I can't be sure? I didn't know how to fill out the other parts, however, I am quite stuck at this stage. I reinstalled webview2, both the x86 and the x64 versions, rebooted, but get the same error message.

Platform and Versions (please complete the following information):
Operating System - Windows, version 6.1.7601 X64
Webview2 - 91.0.864.54

Node.js environment
Node.js - 12.19.0
@tauri-apps/cli - 1.0.0-beta.1 (outdated, latest: 1.0.0-beta.2)
@tauri-apps/api - 1.0.0-beta.1

Global packages
npm - 6.14.8
yarn - Not installed

Rust environment
rustc - 1.52.1
cargo - 1.52.0

App directory structure
/dist
/node_modules
/src-tauri

App
tauri.rs - 1.0.0-beta.1
build-type - bundle
CSP - default-src blob: data: filesystem: ws: http: https: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'
distDir - ../dist
devPath - ../dist

@FabianLars
Copy link
Member

You need to have Microsoft Build Tools 2019 installed. You most likely also have to remove old versions (2015/2017) too (no side-by-side installs).

@nothingismagick
Copy link
Member

Thanks Fabian, you're right.

@amrbashir
Copy link
Member

This is a common question and should be added to the F.A.Q

@jacobq
Copy link

jacobq commented May 25, 2022

According to the getting started guide it's OK to use MSVC++ Build Tools 2022. Is that right? So I assume I should uninstall 2019? Is running tauri info the way to check what is being used? (In my case "Environment > MSVC" appears blank, which I assume is indicative of the problem).

image

image

See also:

@FabianLars
Copy link
Member

@jacobq Yes, 2019 and 2022 work fine. 2015 (the one you apparently have (version 14)) and 2017 don't work! You don't need to uninstall old versions tho as you can somehow change the default (no idea how) or use the corresponding command prompt which should use the correct version (for example "x64 Native Tools Command Prompt for VS 2022")

@alexprabhatbara

This comment was marked as outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants