I don’t have a lot of experience with this, because I avoid VS most of the time (for exactly these kinds of reasons), and I don’t have access to a fresh windows machine, but this is how to do it so that the new computer doesn’t need that runtime installer…
it looks like from this instructions, it could be just making this folder with the three DLLs and the manifest and then adding that folder to any “exe” made by visual studio
-z
OK, due to popular demand, and my frustration with seeing so many people using Express that simply want to run an app on another machine, without the hassle of learning about merge modules, Windows Installer, etc, etc, etc, here is a way to perform deployment option number 2 above (i.e. installing C Runtime library applocal) for Express.
- On the machine you have Express installed, create the following folder and subfolders in your
\program files\microsoft visual studio 8\VC folder:
redist\x86\Microsoft.VC80.CRT
- Copy msvcr80.dll, msvcp80.dll, msvcm80.dll from
\windows\winsxs\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_0de06acd
into:
\program files\microsoft visual studio 8\VC\redist\x86\Microsoft.VC80.CRT
- in the above Microsoft.VC80.CRT folder, create a new file named:
Microsoft.VC80.CRT.manifest
- Paste the following content into the above manifest file:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
Now you have a new folder in your Visual C++ Express installation that can be re-used when ever you need it.
To deploy these files, simply copy the Microsoft.VC80.CRT folder you just created to your program folder. That’s it. So for example, if your application executable resides in C:\Program Files\MyApp, you’ll have a folder named:
C:\Program Files\MyApp\Microsoft.VC80.CRT
that contains the 4 files I mentioned (3 DLLs and one manifest file you created by hand)
No installation of anything else is necessary. Just click on your EXE file, and your app will run. No special installation engines are necessary, just make your setup program (installer) create that subfolder Microsoft.VC80.CRT along with what you normally install with your app)