Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

problem with SxS installation

1 view
Skip to first unread message

orly__

unread,
May 13, 2009, 9:02:01 PM5/13/09
to
on vs2008, I need to build an application that can run on a computer that
doesn't have the CRT libraries installed and I can't run redist.exe. I can
provide the CRT DLL's in the application directory or the path though.
Problem is, I get runtime errors every time I try this regardless of how I've
modified the manifests and where I place the DLL's. I've tried following
numerous blog posts that talk about deleting the publicKeyToken from the
manifest(s), but all this does is cause an "application not loaded correctly"
error on startup. Help please?

for more information and specifics, see:
http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/089d49ed-c058-46e8-ab9b-ada874078799

Thanks!

Jochen Kalmbach [MVP]

unread,
May 14, 2009, 1:44:43 AM5/14/09
to
Hi orly__!

> on vs2008, I need to build an application that can run on a computer that
> doesn't have the CRT libraries installed and I can't run redist.exe. I can
> provide the CRT DLL's in the application directory or the path though.
> Problem is, I get runtime errors every time I try this regardless of how I've
> modified the manifests and where I place the DLL's.

Normally, you do not need to modify manifests.

Just place the CRT-DLLs and the manifest-file from
C:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\redist\x86\Microsoft.VC90.CRT
into the same directory as the application.

Then take a look at the manifest from your application and check the
version number.
You only need to correct the version number in
"Microsoft.VC90.CRT.manifest" to match the requested version number from
your apps-manifest.


But by the way: Why do you not link static against the CRT? Then you do
not have to redist the DLLs!?
http://blog.kalmbach-software.de/2008/03/03/screencast-statically-link-to-the-c-runtime-to-prevent-vcredist-and-overcome-application-configuration-problems/


--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/

0 new messages