Created
October 29, 2023 00:06
-
-
Save berkayfeci/649ba3c250a3bc95804d5566477c0408 to your computer and use it in GitHub Desktop.
Install Microsoft XNA 4.0 refresh without VS2010 for VS2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#fnr.exe is from https://github.com/zzzprojects/findandreplace | |
#It should be put in same directory as this batch file. | |
#Original batch file is from https://www.naresh.se/2014/01/02/install-microsoft-xna-4-0-refresh-without-vs2010-for-vs2013/ | |
%~dp0XNAGS40_Setup.exe /extract:%~dp0XNA | |
%~dp0XNA\redists.msi /passive | |
"%ProgramFiles(x86)%\Microsoft XNA\XNA Game Studio\v4.0\Setup\XLiveRedist.msi" /passive | |
"%ProgramFiles(x86)%\Microsoft XNA\XNA Game Studio\v4.0\Redist\XNA FX Redist\xnafx40_redist.msi" /passive | |
"%ProgramFiles(x86)%\Microsoft XNA\XNA Game Studio\v4.0\Setup\xnaliveproxy.msi" /passive | |
"%ProgramFiles(x86)%\Microsoft XNA\XNA Game Studio\v4.0\Setup\xnags_platform_tools.msi" /passive | |
"%ProgramFiles(x86)%\Microsoft XNA\XNA Game Studio\v4.0\Setup\xnags_shared.msi" /passive | |
msiexec /a "%ProgramFiles(x86)%\Microsoft XNA\XNA Game Studio\v4.0\Setup\xnags_visualstudio.msi" /qb TARGETDIR="%~dp0XNA\VS Tools" | |
xcopy "%~dp0XNA\VS Tools\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\XNA Game Studio 4.0" "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\Common7\IDE\Extensions\Microsoft\XNA Game Studio 4.0" /e | |
%~dp0XNA\arpentry.msi /passive | |
%~dp0fnr.exe --cl --dir "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\Common7\IDE\Extensions\Microsoft\XNA Game Studio 4.0" --fileMask "extension.vsixmanifest" --find "10.0" --replace "16.0" | |
"%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv.exe" /setup | |
rmdir %~dp0XNA /s /q |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment