Archive: NSIS compiled with Mingw problems


NSIS compiled with Mingw problems
Hi

I have used mingw (and also tried the cygwin compiler) to compile NSIS, but when creating an installer (using my home compiled version of NSIS) I get a strange visual behaviour during the install process. The contents of the installer window is displayed in the upper left corner of the screen. I have attached a screenshot.

How can I fix this?

Thanks a lot
Lars Munch


hmmm.. works with MSVC++ 6.0
Sorry for replying to myself.

I tried compiling it with MSVC++ 6.0 and here it works perfectly. Could someone with mingw/MS knowledge please fix this.

Thanks
Lars Munch


windres issue
It's a windres issue. It defines WS_POPUP, WS_BORDER and WS_SYSMENU by default, so it affects every child windows. All you have to do is edit the exehead/resource.rc and add ' | NOT WS_POPUP | NOT WS_BORDER | NOT WS_SYSMENU' to the 'STYLE' of the child windows (ie with WS_CHILD style).

I can remember the latest version of gcc-mingw (gcc-2.95.3-20011106-beta) resolves this issue but I'm not sure.

Hope it will help you
Nels