!include "MUI.nsh"
Name "DLL Registration"
OutFile "DLL_setup.exe"
InstallDir "C:\MYAPP"
!define MUI_ABORTWARNING
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_LANGUAGE "English"
Section "Register DLLs" SecRegisterDLL
SetOutPath $INSTDIR
; ExecWait "regsvr32 /s $INSTDIR\MYAPP-2.dll "
RegDLL $INSTDIR\MYAPP-1.dll
; RegDLL $INSTDIR\MYAPP-2.dll
; RegDLL $INSTDIR\MYAPP-3.dll
; RegDLL $INSTDIR\MYAPP-4.dll
SectionEnd
RegDLL crashes installer
I have an installer that needs to register several existing dlls. I have tested it on different versions of Windows and it always crashes on RegDLL. I have tried registering one of the four dlls, and it doesn't matter which one I pick it still crashes. If I use ExecWait Regsvr32 it works fine.