Then use a batch build script:
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. visual studio 2008 portable
Create StartVS2008.bat in your portable folder: Then use a batch build script: C:\Program Files\Common
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: visual studio 2008 portable
Also copy mspdb80.dll from Common7\IDE to VC\bin .