V Paul
V Paul

Reputation: 21

What is the best way to ship a private copy of C-runtime along with a windows application

I would like to build my Visual-C++ projects (native/unmanaged C++ projects) with /MD (Multi-threaded DLL) option and ship them along with C-Runtime DLLs to reduce the overall size of my product.

I don't want to run vcredist*.exe from my installer, because my application will stop working if the user uninstalls the vc-redistributables.

I don't want to keep copies of C-runtime DLLs in all my application folders either, because that will again increase the overall size.

I want to keep only one copy of the C-runtime DLLs in one of my applications' common folders. All my application images (*.exe, *.dll) from different folders should be able to load the C-runtime DLLs from this common folder.

For example: C:\Program Files\MyApplication\Common, will contain all C-runtime Dlls

C:\Program Files\MyApplication\bin<br>
C:\Program Files\MyApplication\modules<br>
C:\Program Files\MyApplication\plugins<br>

Images from all the above folders should be able to load C-runtime DLLs from C:\Program Files\MyApplication\Common folder.

Is there a way to force my application to load all C-runtime DLLs from my private location? Will it be possible to get Microsoft updates for my private copy of C-runtime files? What is the best option to ship a private copy of C-runtime and update it during windows update?

Thanks

Upvotes: 1

Views: 101

Answers (0)

Related Questions