Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / March 2007

Tip: Looking for answers? Try searching our database.

VC++ 2005 SP1 : redistirbutable files

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lfcdm - 22 Mar 2007 22:27 GMT
Hi,

I'm facing an issue and your help could be very helpful.
In few words, I have a app build with VC++ 2005 SP1.
I want to deploy it on a target machine, because the CRT dependency
described in the manifest can't be resolved -> I have to deploy the CRT on my
traget computer.
No real issue with the concept.
The easiest way for me could be to use a vc_redistrib.exe for SP1.
But I can't find it for SP1. So no deployment this way, and my app is not
runnable because of its missing dependencies.
Any tips ? location ?
An alternate solution ? the CRT dll + manifest in a deployment solution I
guess. Just to confirm.
I'm stuck.

Thanks for your help.
Nathan Mates - 22 Mar 2007 23:03 GMT
>I'm facing an issue and your help could be very helpful.
>In few words, I have a app build with VC++ 2005 SP1.
>I want to deploy it on a target machine, because the CRT dependency
>described in the manifest can't be resolved -> I have to deploy the CRT on my
>traget computer.

  Well, if you're not really *using* manifests for any real purpose,
then you can try just getting rid of them. Right click on your
project, select properties, then set
Linker -> Manifest File -> Generate Manifest: No
Manifest Tool -> Input & Output -> Embed Manifest: No

  Manifests sound like a nice idea in theory that escaped into the
wild still half-baked.  Maybe in the next VS, they'll work somewhat
reliably, and not need some arcane XML incantations to use.

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
Carl Daniel [VC++ MVP] - 23 Mar 2007 06:13 GMT
>> I'm facing an issue and your help could be very helpful.
>> In few words, I have a app build with VC++ 2005 SP1.
[quoted text clipped - 11 lines]
> wild still half-baked.  Maybe in the next VS, they'll work somewhat
> reliably, and not need some arcane XML incantations to use.

You *must* have a manifesst to load the VC8 runtime library DLLs.

An SP1 version of vcredist will be available from the Microsoft Download
center sometime soon.  Exactly how soon is soon?  I can't say,
unfortuntaely.  Hopefully it's in the next couple weeks, but I don't have
any insider knowledge that says that it will be - it's just wishful thinking
on my part!

-cd
Nathan Mates - 23 Mar 2007 07:04 GMT
>>   Well, if you're not really *using* manifests for any real purpose,
>> then you can try just getting rid of them. Right click on your

[...]

>You *must* have a manifesst to load the VC8 runtime library DLLs.

  Not a chance. I've made plenty of exes without manifests, and they
run fine. (Using the Multithreaded runtime lib, not Multithreaded DLL
Runtime). And, these exes work just fine on both Win2000 and WinXP.
Win2000 does the right thing and ignores the silly manifests; WinXP
tried to demand the runtime libs to be installed at *JUST* the right
location, installed during a full moon, while opening one's wallet in
the direction of Microsoft.

  Since turning off manifests, as I described earlier this thread,
everything *JUST* *WORKS*. So, I've not exactly been a friend of
manifests, aka DLL Hell 2.0.

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
Tom Widmer [VC++ MVP] - 23 Mar 2007 13:41 GMT
>>>   Well, if you're not really *using* manifests for any real purpose,
>>> then you can try just getting rid of them. Right click on your
[quoted text clipped - 6 lines]
> run fine. (Using the Multithreaded runtime lib, not Multithreaded DLL
> Runtime).

Hang on, you've just said you use static linking to the multithreaded
runtime lib. How does that imply that you don't need a manifest to use
the VC8 runtime library DLLs?

The general tone of your response is along the lines of "I don't
understand how manifests work, so you shouldn't use them," which is not
logical. I don't understand how manifests work either - I haven't needed
to look into it yet (but probably will do soon, when we move to VC2005).
I'd be much more interested in specific criticisms (which others might
then rebut, or not) that a general dismissal of the mechanism.

Tom
hfann - 29 Mar 2007 20:46 GMT
Hi,

I think it will be a lot easier if the SP1 C++ runtime libraries are
included in Microsoft Component Installer. Then, we need to run only one
Microsoft tools to download all the dependencies we need.

Signature

Herbert
Fann Software
http://www.fannsoftware.com

> >> I'm facing an issue and your help could be very helpful.
> >> In few words, I have a app build with VC++ 2005 SP1.
[quoted text clipped - 21 lines]
>
> -cd
BVS - 23 Mar 2007 16:30 GMT
The redist should be found here on your computer:
C:\Program Files\Microsoft Visual Studio
8\SDK\v2.0\BootStrapper\Packages\vcredist_x86\

Signature

http://www.beavervalleysoftware.com - Hobbies, Developer, and PayPal
software
Including Comic Book Millennium, Easy Code Signing, and PayPal Flash Button
Creator

> Hi,
>
[quoted text clipped - 14 lines]
>
> Thanks for your help.
QbProg - 23 Mar 2007 19:02 GMT
It was easy. In VC 2003 you had to redist just the DLL's you were
using. STOP.
It should be easy in VC 2005 too. Just copy the CRT folders in your
DLL path and you're ok. Or use vc_redist.exe .

There are some little problems:
- Using vc_redist sometimes doesn't works. Why? I don't mind, but it
is a real trouble.
- the "x-copy" works at 90%. An example: a VB COM project that calls
your DLL's . No way, it won't start unless you copy everything in
system32 (!!!!!).
- if you have a mix of SP1 and non-SP1 dll's ... no way:)
- There's no DOCUMENTATION / FAQ for advanced issues (like isolation)
or manifest usage.

It was REALLY better a "DLL in the same folder" approach, just like
previous versions(it is the .NET approach, isn't it?)

Now you just moved the DLL hell to a worst MANIFEST+DLL+SIDEbySIDE+WOW
hell.

I'm just asking myself, WHY?

Sorry for my English :)
QbProg

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.