Skip to content
⌘ NSIS Forum Archive

NSIS:Windows 7 - Comdlg32.ocx Problem

2 posts

agwm#

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
jpderuiter#
The home for technical questions and answers at Microsoft. Get started asking, answering, and browsing questions about products like .Net, Azure, or Teams.