Install Microsoft XNA 4.0 refresh without VS2010 for VS2015

My previous article http://t.co/XamFah9e8V shows how to install Microsoft XNA 4.0 refresh without VS 2010 for VS2013. In the meantime, Microsoft is kind enough to release a Community Preview version of VS 2015. And boy it looks amazing. It is fast, has a lot of functionality, and I basically am in love with it! Also Microsoft has released VS 2013 Community Edition which again is amazing. In short, Microsoft is going a very long way to please individual developers/hobbyists like me to lure them back to developing Windows (Store/Phone/Game) Apps. And I am happy that they are doing it. But back to the topic, installing XNA 4.0 refresh is a breeze for VS2015 as well. Of course we need to change the script a little bit. So here it is.

 

%~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 14.0\Common7\IDE\Extensions\Microsoft\XNA Game Studio 4.0" /e
%~dp0XNA\arpentry.msi /passive
%~dp0FindAndReplace.exe "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\XNA Game Studio 4.0\extension.vsixmanifest" "10.0" "14.0"
"%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe" /setup
rmdir %~dp0XNA /s /q

 

Enjoy your VS 2015 Experience!