Minimum DLL requirements for a visual c++ 2003 MFC app
Friday, October 5th, 2007You’ll need:
mfc71.dll msvcr71.dll and msvcp71.dll
Here’s a snippet for your NSIS file as well if you need it:
Var ALREADY_INSTALLED
Section "Runtime support files"
;Add code here that sets $ALREADY_INSTALLED to a non-zero value if the application is already installed. For example:
IfFileExists "$INSTDIR\bin\tbn.exe" 0 new_installation ;Replace MyApp.exe with your application filename
StrCpy $ALREADY_INSTALLED 1
new_installation:
!insertmacro InstallLib REGDLL $ALREADY_INSTALLED REBOOT_NOTPROTECTED "c:\windows\system32\mfc71.dll" "$SYSDIR\mfc71.dll" "$SYSDIR"
!insertmacro InstallLib REGDLL $ALREADY_INSTALLED REBOOT_NOTPROTECTED "c:\windows\system32\msvcr71.dll" "$SYSDIR\msvcr71.dll" "$SYSDIR"
!insertmacro InstallLib REGDLL $ALREADY_INSTALLED REBOOT_NOTPROTECTED "c:\windows\system32\msvcp71.dll" "$SYSDIR\msvcp71.dll" "$SYSDIR"
SectionEnd
