Hi @Fahim Ahmad ,
From looking at your logs, It seems that you uninstalled the VS2022 before. Your issue may be caused by an unclean uninstallation.
Please try the following steps and check if it works for you:
- Manually delete any leftover install and cache folder you previously installed to
C:\Program Files (x86)\Microsoft Visual Studio
%programdata%\Microsoft\visualstudio\packages
C:\Program Files\Microsoft Visual Studio
C:\Users\<UserName>\AppData\Local\Microsoft\VisualStudio - Delete the setup registry key, which was set when you first installed(Maybe there is only one key, please check one by one.):
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\VisualStudio\Setup
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\Setup
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\Setup - If you have anti-virus software and group policy, please temporarily disable them
- Download the new bootstrapper file from https://visualstudio.microsoft.com/downloads/ and run it as administrator.
Sincerely,
Anna
*
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Thanks for your update!
Please clear your %temp% folder. As the previous applications didn’t work in .NET Framework 4.7, maybe your .NET Framework or OS is corrupted. Please use the Microsoft .NET Framework Repair Tool to repair your .NET Framework. And run “sfc /scannow” to repair missing or corrupted system files.
Then, you can try to create an offline installation of VS and check if it work.
https://learn.microsoft.com/en-us/visualstudio/install/create-an-offline-installation-of-visual-studio?view=vs-2022