Best Practices for Microsoft C++ Redistributables - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

btonetti
Posts: 1
Joined: Tue Sep 23, 2008 2:23 pm

Best Practices for Microsoft C++ Redistributables

Hello,

Our project is a Java application, however we install some components (our database) which requires the Microsoft C++ Redistritables. I'm wondering what is the best approach for assuring that these libraries are available to our application. Thus far, we have been asking our customers to pre-install the redistributable executable installation, but that seems a little rough.

I saw an earlier post on this board that talked about best practes for including these dll's that is evidenced by the presence of the "Microsoft.VC90.CRT" folder in the Advanced Installer program directory. Should I simply add that folder and its contents to the application directory in my installation? I like the idea of keeping everything we need locally instead of using a global system install of the redistributables, if that's possible.

Sorry if this question seems a little basic.

Regards,
Bill
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Best Practices for Microsoft C++ Redistributables

Hi Bill,

For what you need you can try these approaches:

1) Add the redistributables as prerequisites for your package. Please note that Advanced Installer has predefined prerequisites for Visual C++ redistributables. Also, the User Guide contains a tutorial which may help you.

2) Add the Microsoft merge modules required by your application in the Merge Modules page. This should include the necessary files in your installation package.

3) Add the required files in your installation folder of your application (like we did with Advanced Installer). Please note that in this case your application should know where to find them.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Re: Best Practices for Microsoft C++ Redistributables

Hello Bill.
btonetti wrote:I saw an earlier post on this board that talked about best practes for including these dll's that is evidenced by the presence of the "Microsoft.VC90.CRT" folder in the Advanced Installer program directory. Should I simply add that folder and its contents to the application directory in my installation? I like the idea of keeping everything we need locally instead of using a global system install of the redistributables, if that's possible.
After adding that folder and its contents to your application folder you need to ensure that the manifest of your executable (and possibly those of your own DLLs) match the version number of the Microsoft.VC90.CRT.manifest exactly. It is probably easiest to just change Microsoft.VC90.CRT.manifest to match the version in your executable.

Note: The version in Microsoft.VC90.CRT.manifest does not have to match the version of the DLLs in the Microsoft.VC90.CRT folder.

Note: The WinSxS/Windows Side-By-Side mechanism can opt to load the respective DLLs from a global location, if present there. This is for providing a more up to date version of such DLLs, while still allowing private copies to be shipped for a good out of the box experience while/after installation (no dialogs or anything about installing runtimes, etc. that the user can get confused about).



With best regards

Clemens Anhuth

Return to “Common Problems”