I searched the forums but wasn't able to find anything that helped me figure this out and the documentation for InstallLib seems to be non-existant (or at least I havent been able to find it)
On every other version of windows the following code works (or at least it has the desired effect of allowing my application to run) but on vista the files get copied but they do not get registered.
Here is the code:
Can anyone point me in the right direction?;at the top of script
RequestExecutionLevel admin
;later on in script
Section "MFC Files"
StrCpy $ALREADY_INSTALLED 0
SetOutPath "$SYSDIR"
IfFileExists "$SYSDIR\MFC42.dll" 0 +2
StrCpy $ALREADY_INSTALLED 1
!insertmacro InstallLib DLL $ALREADY_INSTALLED REBOOT_NOTPROTECTED ..\MFC\MFC42.dll $SYSDIR\MFC42.dll $SYSDIR
StrCpy $ALREADY_INSTALLED 0
IfFileExists "$SYSDIR\MFC42u.dll" 0 +2
StrCpy $ALREADY_INSTALLED 1
!insertmacro InstallLib DLL $ALREADY_INSTALLED REBOOT_NOTPROTECTED ..\MFC\MFC42u.dll $SYSDIR\MFC42u.dll $SYSDIR
StrCpy $ALREADY_INSTALLED 0
IfFileExists "$SYSDIR\msvcrt.dll" 0 +2
StrCpy $ALREADY_INSTALLED 1
!insertmacro InstallLib DLL $ALREADY_INSTALLED REBOOT_NOTPROTECTED ..\MFC\msvcrt.dll $SYSDIR\msvcrt.dll $SYSDIR
StrCpy $ALREADY_INSTALLED 0
IfFileExists "$SYSDIR\msvcp60.dll" 0 +2
StrCpy $ALREADY_INSTALLED 1
!insertmacro InstallLib DLL $ALREADY_INSTALLED REBOOT_NOTPROTECTED ..\MFC\msvcp60.dll $SYSDIR\msvcp60.dll $SYSDIR
SectionEnd
TIA