Archive: newadvsplash plugin has a problem with registry plugin?


newadvsplash plugin has a problem with registry plugin?
In my NSIS installer, after showing a splash screen I attempt to get the HWND:

newadvsplash::show 2500 200 200 -1 /L "$CONFIGDIR\$SPLASHSCREEN"
newadvsplash::hwnd


Upon running the compiled installer, it crashes with an error:

AppName: portableapp launcher.exe
AppVer: 1.0.1.0
ModName: registry.dll
ModVer: 0.0.0.0
Offset: 000011c9


If I comment out the line
newadvsplash::hwnd


then everything runs without incident. Does anyone know enough about either of these plugins to help me troubleshoot this problem?

-Steve.

Ah-ha! If I take out the /L (or /BANNER) in newadvsplash::show it doesn't crash. Why is there a problem getting the HWND of the splash if it forks off instead of waiting?

-Steve.


I never called InitPluginsDir before showing the splash image. Adding this call to .onInit fixed the problem!