Hallio

Hi all,

I've been having a problem distributing a command line tool written using Visual C++ Express and I'd like to raise the issue with the rest of you.

VC++ Express, with SP1 applied, embeds the requirement for version "8.0.50727.762" of the CRT into the manifest (and hence embeds it into the executable).

I ask users of my tool to download and install the VC++ Runtime from here :

http://go.microsoft.com/fwlink/ linkid=65127&clcid=0x409

However this only installs the runtime version "8.0.50727.42". Normally I would expect such a minor difference in version to be acceptable but the policy installed with the VC++ Runtime only permits these "old" versions to use the installed "new" CRT :

8.0.41204.256 to 8.0.50608.0

So the requirement for "8.0.50727.762" cannot be satisfied and my app fails.

If I remove SP1 from my machine and rebuild my tool then the CRT version in the manifest is "8.0.50608.0" which is satisfied by the above install and everything works.

As VC++ Express does not come with a "redist" folder aren't we kind of stuck here How can I distribute my program built with SP1

Comments and suggestions much appreciated - as are the highlighting of any mistakes on my part!

Thanks
Steve H



Re: Visual C++ Express Edition Distributing console app - problems with SP1

orcmid

Hallio wrote:
Hi all,

VC++ Express, with SP1 applied, embeds the requirement for version "8.0.50727.762" of the CRT into the manifest (and hence embeds it into the executable).

[ ... ]
If I remove SP1 from my machine and rebuild my tool then the CRT version in the manifest is "8.0.50608.0" which is satisfied by the above install and everything works.

As VC++ Express does not come with a "redist" folder aren't we kind of stuck here How can I distribute my program built with SP1

  1. Well, the easy way out is to compile with static linking to the CRT. Is that practical with your utility
  2. I thought there was a redist file with VC++ Express that says there is a package that can be downloaded and used in a distribution. Of course, building a distribution might not be what you had in mind -- are you using an installer or is your utility installed just by copying (xcopy or unzip)

- Dennis






Re: Visual C++ Express Edition Distributing console app - problems with SP1

Hallio

Hi Dennis,

Thanks for your reply. I can't statically link as I'm using a 3rd party library which is dynamically linked to the CRT DLL. If I try it I get R6034 errors about the CRT being loaded without a manifest (as the 3rd party dll doesn't have one).

There is some redist info with VC++ Express, which refers to the link above. However it seems that the runtime download hasn't been updated with respect to the CRT included with SP1, which I think is the core of my problem.

I don't want to build an installer as this is meant to be a simple "unzip and go" utility.

Steve





Re: Visual C++ Express Edition Distributing console app - problems with SP1

deep night

about VS 2005 VC redist packages with the SP1 changes

So far, it does not appear that Microsoft has released standalone versions of the VC redist packages with the SP1 changes. However, you can find them in the following folders on a system that has Visual Studio 2005 SP1 installed:

please refer at the link as :

http://blogs.msdn.com/astebner/archive/2007/01/24/updated-vc-8-0-runtime-redistributable-packages-are-included-in-visual-studio-2005-sp1.aspx






Re: Visual C++ Express Edition Distributing console app - problems with SP1

Hallio

Thanks.... but VC++ Express doesn't come with the SDK so these folders don't exist. The SDK is a separate download for Express users.

I thin if MS would just release updated standalone runtimes then i'd be fine!

Thanks,
Steve