473,320 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

vc redistributable - best practices

Hi.

I have a C++/CLI app with dependencies on ATL/CRT ( no MFC ).

1. If I install vcredist_x86 ( SDK\v2.0 ), everything on the clean
target machine works fine.

Problem: redistributable executable is too big ( as I don't need MFC &
other bloat ).

2. When I install .msm files on the target machine ( from Common Files
\Merge Modules ) specifically:

Microsoft_VC80_ATL_x86.msm
Microsoft_VC80_CRT_x86.msm
policy_8_0_Microsoft_VC80_ATL_x86.msm
policy_8_0_Microsoft_VC80_CRT_x86.msm

using msiexec.exe /i, I see all the .dll(s)/manifests under
winsxs( msvcm80.dll, msvcp80.dll, msvcr80.dll, atl80.dll ) but my dll
is not loaded ( config is incorrect. Reinstalling can fix it ).

3. When I manually copy crt-related dll(s ) and atl80.dll &
corresponding manifests ( from Microsoft Visual Studio 8\VC\redist
\x86 ) to my working directory ( on a clean machine ) - everything
works.
#3 is good for me as I can compress files and copy them easily. Is
this OK to do? ( is it a good/recommended practice )

#2 seems to be acceptable as well, but:
a ) I can't get it to work. Any ideas on what might be going wrong?
b ) I see Microsot links to redist*.exe packages, but I don't see any
downloadable .msm files. Just curious if this way is supported/
encouraged/maintained by MSFT.

Any other suggestions/ideas are appreaciated.

Thanks in advance!

vcq

Sep 5 '07 #1
3 4399
Hi vcquestions!
2. When I install .msm files on the target machine ( from Common Files
\Merge Modules ) specifically:

Microsoft_VC80_ATL_x86.msm
Microsoft_VC80_CRT_x86.msm
policy_8_0_Microsoft_VC80_ATL_x86.msm
policy_8_0_Microsoft_VC80_CRT_x86.msm

using msiexec.exe /i, I see all the .dll(s)/manifests under
winsxs( msvcm80.dll, msvcp80.dll, msvcr80.dll, atl80.dll ) but my dll
is not loaded ( config is incorrect. Reinstalling can fix it ).
Maybe your msm-files are RTM and your EXE is using the SP1 version?
Be sure to also use the SP1 version of the MSM files!

Also you can always put the MS-DLLs into the same dir as your app. Also
be sure to include the "manifest"-files for these DLLs!
Greetings
Jochen
Sep 5 '07 #2
Thanks Jochen! *.msm files are dated 12/2/2006 while vcredist_x86 &
single files in vc\redist\x86\ directory are dated 12/1/2006. I'd
expect them to be the same version. I guess the next step would be to
tinker with fusion log & filemon and see why my assembly is not loaded
( when .msm(s) are installed ).

On Sep 4, 11:54 pm, "Jochen Kalmbach [MVP]" <nospam-
Jochen.Kalmb...@holzma.dewrote:
Hi vcquestions!
2. When I install .msm files on the target machine ( from Common Files
\Merge Modules ) specifically:
Microsoft_VC80_ATL_x86.msm
Microsoft_VC80_CRT_x86.msm
policy_8_0_Microsoft_VC80_ATL_x86.msm
policy_8_0_Microsoft_VC80_CRT_x86.msm
using msiexec.exe /i, I see all the .dll(s)/manifests under
winsxs( msvcm80.dll, msvcp80.dll, msvcr80.dll, atl80.dll ) but my dll
is not loaded ( config is incorrect. Reinstalling can fix it ).

Maybe your msm-files are RTM and your EXE is using the SP1 version?
Be sure to also use the SP1 version of the MSM files!

Also you can always put the MS-DLLs into the same dir as your app. Also
be sure to include the "manifest"-files for these DLLs!

Greetings
Jochen

Sep 5 '07 #3
vcquestions schrieb:
tinker with fusion log & filemon and see why my assembly is not loaded
( when .msm(s) are installed ).
Look into EventLog, to see the detailed error message...
--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
Sep 5 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: byrocat | last post by:
I'm chasing after a documetn that was available on one of the Microsoft websites that was titled somethign like "MS SQL Server Best Practices" and detailed a nyumber of best practices about...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
13
by: john doe | last post by:
A quick question, about so-called 'best practices', I'm interested in which of A/B of the two examples people would choose, and why. public enum MyEnum { Option1 = 0, Option2 = 1, Option3 =...
2
by: Amelyan | last post by:
Could anyone recommend a book (or a web site) that defines best practices in ASP.NET application development? E.g. 1) Precede your control id's with type of control btnSubmit, txtName, etc. 2)...
10
by: jojobar | last post by:
Hello, I am trying to use vs.net 2005 to migrate a project originally in vs.net 2003. I started with creation of a "web site", and then created folders for each component of the site. I read...
10
by: Ren | last post by:
Hi All, I'm still rather new at vb.net and would like to know the proper way to access private varibables in a class. Do I access the variable directly or do I use the public property? ...
3
by: John Dalberg | last post by:
I am looking for an ASP.NET application on CodePlex which exemplifies best practices for the following: - Use of interfaces - Seperation of the UI, business and data tiers - Data Tier that uses...
3
by: Kerem Gümrükcü | last post by:
Hi, until today i always forced users to download/install the complete package of the Microsoft Visual C++ 2008 Redistributable Package (x86), but mostly my applications only need the...
0
by: danbst | last post by:
There are script languages compiled at runtime. So, we can download interpreter and code-file to run the program. Everybody knows it. here is my idea. I create redistributable package (for *nix...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.