Archive for January, 2007

Running application written in Visual C++ 2005 Express on another machine

Tuesday, January 9th, 2007

I wrote an application, niiiiice ;) But of course we write application not just for ourselves, so I wanted to try it on few other machines. I’ve copied the executable and started it but instead of my application i saw error message: “This application has failed to start because the application configuration is incorrect”. I spent “excelent” time searching the internet for solution and finally found two ways to fix the problem that actually worked.

First by Nikola Dudar (link to the article) explaining how to create .msi file with needed VC++ libraries. According to the given steps I’ve created an .msi file and after copying it and running on another machine, my VC++ application was up and running! Of course there were some problems, I couldn’t find uuidgen.exe tool needed to generate universally unique identifiers… and I didn’t feel like installing Platform SDK where the tool suppose to be… but luckily there were some online generators (kruithof.xs4all.nl/uuid/uuidgen, www.somacon.com/p113.php).

Second way to fix the error is by Ted. (link to the article - scroll down to the ” Answer Re:…” post written by Ted). With this one you don’t have to run any files, just copy folder with 4 files where your executable is.
Note: Be careful with library version when copying files and creating manifest file. I had three different “x86_Microsoft.VC80.CRT…” folders in my WinSxS directory, each one different version number, I’ve chosen the highest one and put same number in XML manifest file.