473,574 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

best way to check the installation of mfc80 side by side

Hallo,

what is the best way to check the installation of mfc80 and vcrt sidebyside
assemblies?

Best Regards,
Dieter Pelz

Jan 19 '07 #1
10 8023
Hi Dieter,

Do you want to check the existence of MFC or the assemblies for C++/CLI?
Also, do you want to check them programmaticall y for the deployment
machine? Since this is the .Net VC newsgroup, I first assume you want to
find out if the deployment machine has got the .Net VC assemblies
installed. If I have misunderstood you, please feel free to tell me,
thanks.

Since C++/CLI will use the same .Net Framework as other .Net languages,
VB.net, VC#, so it will use the same set of .Net assemblies in GAC as other
languages. So if you want to check existence of the assemblies for C++/CLI,
you may only check the existence of .Net2.0 Framework. The official
recommended way of checking .Net2.0 existence is locating the
%systemroot%\Mi crosoft.NET\Fra mework folder for "v2.0.50727 " folder, please
refer to the KB below:
"How to determine which versions of the .NET Framework are installed and
whether service packs have been applied"
http://support.microsoft.com/kb/318785

You may also find the following article useful:
"The coding gentleman's guide to detecting the .NET Framework"
http://www.codeproject.com/dotnet/DetectDotNet.asp

If you want to check the existence of msvcr80.dll(CRT ) and mfc80.dll(MFC)
under C:\WINDOWS\WinS xS directory, I recommend you enumerate all the
folders in "C:\WINDOWS\Win SxS" directory. Any folder with name
"x86_Microsoft. VC80" and "8.0.50727. 42" should be the VC8 32-bit SxS
assemblies folder. The "MFC" or "CRT" in the folder name implies that the
folde is for MFC or CRT. Furthermore, the presence of "Debug" means the
"debug" version or not. This logic is not hard to implement in program.

Another solution is static linking your required version of MFC/CRT library
into the Exe, so that your application can be deployed to the end user
machine without checking the existence of these 2 runtime Dlls. The
disadvantage is that this will increase the size of your application Exe.

Hope this helps.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Jan 22 '07 #2
Hi Dieter,

Have you reviewed my reply? Does it make sense to you? If you still need
any help or have any concern, please feel free to tell me, thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Jan 24 '07 #3
Hi Jeffrey,

first it's on the deployment machine,

msvcr80.dll and mfc80.dll are in my interest.

The MFC/CRT library could not be static linked because C++/CLI is also used.

Is checking the existence of the folders enough or should I check the files?

Could I use this for all OS (W2K, XP,W2K3 and Vista.)?

Best Regards,
Dieter Pelz

Jan 25 '07 #4
Hi Dieter,

Thanks for your feedback!

I have tried to discuss this issue with VC product team, below is their
comment and suggestion:

If you are building an MSI, you should include the appropriate MSMs into
your MSI. The MSMs are installed by Visual Studio into the "Program
Files\Common Files\Merge Modules" directory. Then the necessary components
would automatically be properly installed if they are missing, and would be
marked as being needed by your product. You would need to add these MSMs to
your MSI:
Microsoft_VC80_ CRT_x86.msm
Microsoft_VC80_ MFC_x86.msm
policy_8_0_Micr osoft_VC80_CRT_ x86.msm
policy_8_0_Micr osoft_VC80_MFC_ x86.msm

If you are not building an MSI, your product should run vcredist_x86.ex e to
automatically install the CRT if it is not already installed. It can be
found in Program Files\Microsoft Visual Studio
8\SDK\v2.0\Boot strapper\Packag es.

This is the recommended way of deploying the MFC product.

Hope this helps.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Jan 26 '07 #5
Hi Dieter,

Have you reviewed my last reply to you? Does the suggestion of including
VC8 CRT/MFC MSMs and vcredist_x86.ex e during deploying make sense to you?
If you still need any help or have any concern, please feel free to tell
me, thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Jan 31 '07 #6
Hi Jeffrey,

thanks for your answer.

The application is running from a network share.
We use already an MSI to install the runtime libraries and to configure CAS.
To check the existance of the runtime and CAS settings I wrote an C# loader
application.
And there I want check the libraries.

Now I'm checking the existance of the directories in the WinSxS, this seem
to be OK.
So again is this enough for all OS (W2K, XP,W2K3 and Vista.)?

Is your suggested vcredist_x86.ex e also for VS2005 SP1?

What's the best way to install the debug version of MFC and VCRT for remote
debugging purpose?
Best Regards,
Dieter Pelz

Feb 6 '07 #7
Hi Dieter,
Sorry for the late response, since Jeffery asked for two days sick leave. I
will work with you on this post.

Since you are just interested in msvcr80.dll and mfc80.dll, I believe that
checking the existance of the directories (x86_Microsoft. VC80.CRT_xxxxxx
and x86_Microsoft.V C80.MFC_xxxxxx) in the WinSxS folder is enough. Please
note that if the target machine is Windows 2000, the libraries should be
also installed to the System32 directory. You may refer to:
How to: Deploy using XCopy
http://msdn2.microsoft.com/en-us/lib...91(VS.80).aspx

For your question, "is your suggested vcredist_x86.ex e also for VS2005
SP1?", I am afraid that you need to perform a test to check if there is any
issue affecting your application; however now an update to VCRedist.exe is
available. You can contact PSS to get it. Please refer to:
An update to the Visual C++ Redistributable Package (VCRedist.exe) is
available that adds support for side-by-side deployment of the Visual C++
runtime
http://support.microsoft.com/kb/923610

For your last questions, "What's the best way to install the debug version
of MFC and VCRT for remote
debugging purpose?", I am afraid that it is not possible since debug
versions of the DLLs are not redistributable . If you want to install the
debug version of MFC and VCRT, you need to install Visual Studio 2005.
Please refer to:
Redistributing the MFC Library
http://msdn2.microsoft.com/en-us/lib...64(vs.80).aspx

Hope this helps. If you have any other questions or concerns, please feel
free to let me know.

Sincerely yours,
Charles Wang
Microsoft Online Community Support

=============== =============== =============== =========
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
=============== =============== =============== =========
This posting is provided "AS IS" with no warranties, and confers no rights.
=============== =============== =============== =========

Feb 8 '07 #8
Hi Charles

I've been reading this thread and I'm running into a similar problem,
maybe you can help. We have an app that needs mfc, in win2k we can
copy the dll's into the local app folder that contains the exe and
then run no problem, but trying to do this on winxp generates an
error:

The application has failed to start because the application
configuration is incorrect. Reinstalling the application may fix this
problem.

Now I know that if I run the vc++ redist.exe it will put all the dll's
into WinSxS and it will work, but my problem is that the client runs
all desktops as with User privileges and I can't install the exe, also
I can't statically link the mfc dll's into the app. I tried doing what
it said for an xcopy deployment and that doesn't seem to help. Any
suggestions?

Evan Brown

Feb 13 '07 #9
In article <11************ **********@v45g 2000cwv.googleg roups.com>,
Evan Brown <ev**********@g mail.comwrote:
>I've been reading this thread and I'm running into a similar problem,
maybe you can help. We have an app that needs mfc, in win2k we can
copy the dll's into the local app folder that contains the exe and
then run no problem, but trying to do this on winxp generates an
error:
>The application has failed to start because the application
configuratio n is incorrect. Reinstalling the application may fix this
problem.
Welcome to manifest hell, the sequel to the ever-so-popular DLL
hell. Best solution I've found so far is to try and turn off the
manifests for the exe. For each exe, dll you build for your app, go
into the linker settings and the manifest item under linker. Turn off
embedding a manifest. Also look one level up (at the same level as
linker) to turn off the manifests.

Frankly, it seems like manifests are v0.8alpha at best, and MS
typically needs to get to v3.0 to get something right. Magic XML
incantations are supposed to do something, but documentation is spotty
at best.

Nathan Mates
--
<*Nathan Mates - personal webpage http://www.visi.com/~nathan/
# Programmer at Pandemic Studios -- http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A. Heinlein
Feb 14 '07 #10

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

Similar topics

131
21593
by: Peter Foti | last post by:
Simple question... which is better to use for defining font sizes and why? px and em seem to be the leading candidates. I know what the general answer is going to be, but I'm hoping to ultimately get some good real world examples. Fire away! :) Regards, Peter Foti
7
1386
by: Yatin Soni | last post by:
If my server doesnt support ASP, what would be the next best language to use. I need to create a simple security page... where a database on the server stores usernames and passwords. i need for it to query the database based on a username and password entered in on the page. I thought of using ASP because it is server side scripting,...
1
2089
by: buzzhack | last post by:
I need to install a few prerequisites before the installation of my application. I need these prereqs to install independantly of my actual application for packaging purposes.. so i can email my app's installation(and updates) but provide a cd to clients for the needed prereqs. I need to install .NET Framework 1.1, Direct X 9, and the...
0
1295
by: Mindaugas Bliudzius | last post by:
hi How AutoCAD's "side-by-side" installation is supported? The problem is i need my proram (3rd party Dll) to work on 2004 and 2005 AutoCAD's which can be installed side-by-side. i found this http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsetup/html/sidebyside.asp. Is some how AutoCAD using DLL/COM redirection or Privet...
4
4259
by: Jiho Han | last post by:
What is the best way to check whether the page is simply a postback or the form has been submit with the intention of doing something? In the olden days, I used to check for a form field name used for the submit button: <input type="submit" name="saverecord" value="push me to save"> Then I'd retrieve it using something like:
10
3176
by: roygon | last post by:
Hello, I have a C# application that runs a relatively complex simulation which, on a typical computer, could take up to 10 seconds. I am now trying to port this application over to ASP.NET so obviously this calculation needs to happen on the client. What is the best way to implement this? Some more information - all of the code needed...
8
1932
by: Dica | last post by:
i've got an app that needs to install a named instance of SQL Express. VS 2005 allows me to specify required components for my setup project, but named instances of SQL Express isn't supported. so, my main setup MSI needs to execute the SQL Express MSI (a concurrent installation). technically, this is possible, but this is frowned upon by MS...
0
1662
by: Now You Know | last post by:
Best Christmas Lights Decoration Sale Installation in Los Angeles 818-386-1022 (These types of Innovative lights will definetly add to your Christmas decor) Here are the tips to use: The most common color combinations appropriate for the Christmas season include red, green and copper lights that denote festivity; blue and green lights for...
0
2341
by: Now You Know | last post by:
Best Christmas Lights Decoration Sale Installation in Los Angeles 818-386-1022 (These types of Innovative lights will definetly add to your Christmas decor) Here are the tips to use: The most common color combinations appropriate for the Christmas season include red, green and copper lights that denote festivity; blue and green lights for...
0
7832
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8093
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8262
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6498
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5643
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5331
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3785
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2262
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1364
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.