Failed to install WixTool on Windows 10 Pro

M. Azeem 15 Reputation points
2023-06-15T07:24:32.3433333+00:00

I have installed Window 10 Pro build 19045 with the latest updates installed.

Visual studio 2022 with the latest updates installed.

  • The problem is that when I try to install WixTool with the Developer command prompt, I am faced with the following error of the earlier Windows version. (Perhaps it does not depends on the project architecture setting and Target framework setting)
  • Another problem (Additional info) is when I read OS info by Environment.OSVersion then OS Info is read Microsoft Windows NT 6.0.6002 Service Pack 2, which is definitely wrong.

Target framework=.Net6.0, Platform target=AnyCPU for Main WPF project while Platform target=x64 for other class library projects.

Following is the proof of my working

So, Help please me with the solution, what should I do for visual studio that detects my OS as Windows 10? I have tried repairing VS and resetting setting options but have had no success.

User's image

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,642 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,877 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,781 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,142 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
999 questions
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.