0

I want to distribute my project which is written in VS2010 and C#. The project depends on DLL files that they need vcredist version 2008. How can I include that file in my setup file?

I also need to setup wic_x86_enu in destination system when it has XP SP2. How can I do that?

Thank you in advance.

melmi
  • 988
  • 3
  • 9
  • 27

1 Answers1

1

In your Setup project, select Project + Add, Merge Module. Navigate to c:\program files\common files\merge modules and select "Microsoft_VC90_CRT_x86.msm" to get the C/C++ runtime DLLs deployed to the target machine. There might be additional ones you need, like ATL, MFC, OpenMP, you didn't specify the exact dependencies in your question.

Beware that you'll have these merge modules available only if you have VS2008 installed on your machine. If you don't then it is strongly recommended that you rebuild the DLLs or libraries you use on VS2010, you cannot effectively support your product otherwise. If necessary, deploy the installer provided by a 3rd party if that's the way you ended up with a dependency on these DLLs.

Hans Passant
  • 922,412
  • 146
  • 1,693
  • 2,536
  • You might be able to select the .msi instead of the merge module. I don't see it complain but I never tried this. – Hans Passant Mar 07 '11 at 14:48
  • .net framework 4.0 can not be installed on machines with winXP SP2 when wic is not installed yet. – melmi Mar 08 '11 at 05:58
  • 1
    You cannot deploy .NET 4.0 on XP SP2. The machine *must* be updated to SP3. Leave this up to the machine owner. Even if you found a hack around this by installing WIC (rather an unlikely one btw), you should still not use this hack. There is no telling what framework code is going to fail to work properly. This is unsupportable. – Hans Passant Mar 08 '11 at 06:03