Archive: NSIS:Windows 7 - Comdlg32.ocx Problem


NSIS:Windows 7 - Comdlg32.ocx Problem
When installing my VB6 app under Windows 7 many users receive the error:
Component "comdlg32.ocx" or one of its dependencies is not correctly registered: a file is missing or invalid.

This problem does not happen for earlier versions of Windows.

Please help as I am losing customers.

Thank you

Andrew

Section "-CommDlgXP"
${If} ${IsWinXP}
${OrIf} ${IsWin2000}
${OrIf} ${IsWin2003}
!insertmacro InstallLib REGDLL $AlreadyInstalled REBOOT_PROTECTED "${LOCAL_SYS32_DIR}\Comdlg32.ocx" "$SYSDIR\Comdlg32.ocx" $SYSDIR
${EndIf}
SectionEnd


http://social.technet.microsoft.com/...9-480e265dacf2