Installing Qt-built apps on Windows 7
Don't know if this is the right forum - if "Installation" covers this. I have Qt version 4.7.0
on my Windows XP machine. I've configured and built it successfully, and build the examples.
Using Microsoft Visual Studio 2008, I can compile and run the Qt programs. When I use
Visual Studio to create a "setup and deployment" project (an installer), it works, and installs
the app on my machine. When I give the client using Windows 7 an installer, can't successfully
install and run the app.
Activation context generation failed for "C:\Program\MyQtApp.exe". Dependent Assembly Microsoft.VC90.DebugCRT,processorArchitecture="x86",publicKeyToken="xxxxxxxxxxxxxx",type="win32",version="9.0.21022.8" could not be found. Please use sxstrace.exe for detailed diagnosis
You need to redistribute visual 2008 runtime in addition to your application. And when distributing, you want to compile in release, so that end-user don't have to deal with debug / release runtimes.
Simplest way : add the files found in
C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT
to your installer and deploys them in the same folder as your app
If you deliver, you must use release, as the debug dll of microsoft (msvcrt*) are not for distribution in debug version.