microsoft / react-native-windows

A framework for building native Windows apps with React.
https://microsoft.github.io/react-native-windows/
Other
16.24k stars 1.14k forks source link

Error Installing Visual Studio Via RNW Dependencies Script (choco thinks VS is installed when it isn't) #7709

Closed NickGerleman closed 3 years ago

NickGerleman commented 3 years ago

After uninstalling visual studio install script gives this error image

Originally posted by @rendomnet in https://github.com/microsoft/react-native-windows/issues/7436#issuecomment-830511790

asklar commented 3 years ago

if you uninstalled from the Windows add/remove programs UI in the Settings app then the script might be getting confused. open an elevated cmd prompt, and run choco list -l. If VS is still there you can remove the registration by running choco uninstall visualstudio2019community

chrisglein commented 3 years ago

Belief is that using choco asymmetrically (to install but not to uninstall) may cause choco to be confused. @rendomnet are you personally unblocked using the workaround above?

The script will fall back to checking whether VS is installed but it is trusting the choco registry if choco says it's installed. Ideally the script would handle that case.

rendomnet commented 3 years ago

@asklar guys its getting ridiculous. Under Mac all went without problems. But under Windows so many problems. Yes visualstudio2019community there I reinstalled it to run react-native-windows project. What should I do? Do you have uninstall script? image

rendomnet commented 3 years ago

After uninstalling and reinstalling with choco

image

rendomnet commented 3 years ago

okay I found the issue. signintool was not in ENV PATH. after adding 'C:\Program Files (x86)\Microsoft SDKs\ClickOnce\SignTool' to enviroment PATH app started.