Developing Windows Applications by Mykola Dudar

Helping Developers Build Applications for Windows using Visual Studio.

Using tools without installing Visual Studio

Using tools without installing Visual Studio

  • Comments 3

Recently another issue has come up another FAQ. Folks try using tools without installing Visual Studio and some additional work has to be done for Beta 1 or CTP of Visual Studio 2005. Just FYI, this is unsupported way to use VC++ tools and my recommendations are as-is with no guarantees. However if a workaround I list below does not work for you, please let me know, I would try to figure what I missed.

So let’s say you have a desktop A with VS2005 installed. You have another desktop B without VS2005 installed. You want to copy the content of "C:\Program Files\Microsoft Visual Studio 8\VC\bin\" from desktop A to desktop B to build your code on desktop B. Here is what you need to do (obviously, it is one of possible ways to make this work):

1)              Copy compiler and tools from "C:\Program Files\Microsoft Visual Studio 8\VC\bin\" to "%YOUR_TOOLS_FOLDER%\bin\"

c1.dll

c1xx.dll

c2.dll

cl.exe

cvtres.exe

lib.exe

link.exe

mt.exe

nmake.exe

rc.exe

rcdll.dll

\1033\

clui.dll

cvtresui.dll

linkui.dll

nmakeui.dll

2)              Copy CRT assembly from desktop A to desktop B

a.       On desktop A, go to %SYSTEMROOT%\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50124.12800_x-ww_eac26a7b\

b.      Copy msvcr80.dll from this folder to "%YOUR_TOOLS_FOLDER%\bin\" on desktop B

3)              Copy manifest for the CRT assembly

a.       On desktop A, go to either %SYSTEMROOT%\WinSxS\Policies\  or %SYSTEMROOT%\WinSxS\Manifests

b.      Copy x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50124.12800_x-ww_eac26a7b.Manifest to "%YOUR_TOOLS_FOLDER%\bin\" on desktop B

c.       Rename this file to “Microsoft.VC80.CRT.manifest”

4)              Copying PDB Support

a.       Back desktop A, go to "C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\"

b.      Copy msobj80.dll, mspdb80.dll, mspdbcore.dll, mspdbsrv.exe to "%YOUR_TOOLS_FOLDER%\bin\" on desktop B

You should be able to compile and link your code. If you are not, please let me know about this, I would try to investigate why it does not work.

  • Just curious to ask this..

    I really dont know whether this is the correct place to ask this also. Can I tweak my Visual Studio 2003 to run the latest version of dot Net Framework, say Beta 2.0.
  • You are invaluable. I hate installing programs that are as intrusive as a development environment, but I really love programming. Your recipe for getting the Visual Studio C compiler to work worked on my daughter's PC, but not on mine though. We basically have the same install, apart from some silly games on her's, so I have no clue to the reason for this difference. I did get it to work on mine however, by just plain copying the CRT assemblies from the provisional PC with the full installation to my own PC's %SYSTEMROOT%\WinSxS (and removing the copy I made, according to your instructions, to %MY_TOOLS_FOLDER%\bin).

    For sake of clarity, I copied

    x86_Microsoft.VC80.CRT*,

    Manifests\x86_Microsoft.VC80.CRT* and Policies\x86_policy.8.0.Microsoft.VC80.CRT*

    from

    \\desktopA\%SYSTEMROOT%\WinSxS\

    to

    \\desktopB\%SYSTEMROOT%\WinSxS\

  • Has anything changed in this for VS2005 SP1? Because I can't make it work with this version. I always get this error:

    Error: The Side-by-Side configuration information in "d:\work\main\tools.win32\vc8.0\bin\CL.EXE" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001).

    That is reported by Dependency Walker, on the command prompt I only get "System cannot execute this...".

    Any clues?

Page 1 of 1 (3 items)