Hi,
during the beginning of our installation (OnFirstUIBefore) we are running the UseDLL function with a dll that is apparently depended on msvcr.dll. the function fails to load the dll on OS that are older then vista, and in this case we must install Microsoft Visual C++ 2008 Redistributable Package (x86). how can this be done as part of the installation before we call the function? this is a non MSI project.
thanks,
Dana
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
UseDLL fails
Started by
danalifs
, May 25 2008 06:54
3 replies to this topic
Posted 26 May 2008 - 04:26
Can you use static linking for the DLL to avoid depending on the runtime dll?
Regards
-Stein Åsmul
-Stein Åsmul
Posted 26 May 2008 - 11:39
This runtime is deployed as a side-by-side assembly on XP and upwards. This has a lot of implications for how dll's are loaded and where they are loaded from - too complicated to go into detail here. What you can try, is to copy the msvcr.dll into the same directory as your other DLL (also copy any additional dependencies - use dependency walker to determine). The system wide side-by-side version of the runtime will still be loaded on XP and above - if available - regardless of any local copies of the dll in the application folder (unless measures are taken to prevent this).
Regards
-Stein Åsmul
-Stein Åsmul