Visual Studio 2008 Portable -
C:\Program Files\Microsoft SDKs\Windows\v6.0A to your USB: E:\PortableApps\VS2008\SDK\v6.0A Then modify INCLUDE and LIB in your script to point there. VS2008 writes registry keys to HKCU\Software\Microsoft\VisualStudio\9.0 . Export them from the reference PC (after install) and run .reg on the target PC. Example export:
Also copy mspdb80.dll from Common7\IDE to VC\bin .
: Use Visual Studio Code Portable + MinGW or Clang for modern portable C++ development instead of VS2008. Only follow this guide for legacy project maintenance. visual studio 2008 portable
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include To E:\VS2008\VC\
@echo off set VS2008_ROOT=%~dp0 set PATH=%VS2008_ROOT%\Common7\IDE;%VS2008_ROOT%\VC\bin;%VS2008_ROOT%\Common7\Tools;%PATH% set INCLUDE=%VS2008_ROOT%\VC\include;%VS2008_ROOT%\VC\atlmfc\include set LIB=%VS2008_ROOT%\VC\lib;%VS2008_ROOT%\VC\atlmfc\lib set LIBPATH=%LIB% set DevEnvDir=%VS2008_ROOT%\Common7\IDE\ start "" "%VS2008_ROOT%\Common7\IDE\devenv.exe" From a system with VS2008, copy: C:\Program Files\Microsoft SDKs\Windows\v6
C:\Program Files\Common Files\Microsoft Shared\MSEnv C:\Program Files\Common Files\Microsoft Shared\VC On the target PC, VS2008 expects files in %ProgramFiles%\Common Files . Workaround: Use a launcher script that sets up paths.
While is outdated and not officially supported as a portable app, you can create a semi-portable version that runs from a USB drive on Windows XP/Vista/7 (and partially on Windows 10/11 with compatibility settings). Example export: Also copy mspdb80
reg export "HKCU\Software\Microsoft\VisualStudio\9.0" vs2008.reg On target PC (non-admin allowed):
Then use a batch build script:
Create StartVS2008.bat in your portable folder:
E:\PortableApps\VS2008 Also copy these folders (if they exist):