Archive: MakensisW Wrapper Update


MakensisW Wrapper Update
I've updated makensisw again (v0.6). You can get the source here. Just extract the zip to your NSIS contrib directory (it will make a 'makensisw' directory). Most of the changes are minor changes:

- print correct usage if unable to execute compiler
- removed mingw warnings
- set title/branding before errors
- some docs changes
- Added Edit|Edit Script function

Rob


Hi, Rob.

There's a design flaw with the edit feature:
The g_input_script variable is set after compilation. At this time the Text "Processing script..." might already be lost in the log buffer and thus no editing is possible. (My scripts here usually produce compiler output far beyond 32k).

I've corrected that (moved the check from EnableItems into LogMessage) and while i've been on it, added code for window-resizing as well as save/restore of window state on exit/startup.

I've attached patches for both issues.
-Fritz

PS: If you prefer a complete zip arch, drop me a mail.


Good call. I'll add the fix for the edit script and post it soon. The only thing i changed was i didnt check for the script once it was found.

I look at the resize code (it may not make it in the next release).

Rob


I've updated makensisw with your changes. I had to make a few resize changes to your patch in order for everything to line up correctly. I also fixed the enabling of some menuitems that shouldnt have been. Here's the changes:

- Edit Script should now work for output>32k
- Added resize support (thanks to felfert)
- Added window position saving (thanks to felfert)
- Disable some items when exec of makensis failed

Download here

Rob


Cool! :) Works great. ... and thanks for the credits.

Ciao
-Fritz


min size
how about enforcing a min size to avoid jerks like me from having an ugly window:

case WM_GETMINMAXINFO:
{
((MINMAXINFO*)lParam)->ptMinTrackSize.x=350;
((MINMAXINFO*)lParam)->ptMinTrackSize.y=175;
}
// fall thru
case WM_ENTERSIZEMOVE:
{
GetClientRect(g_hwnd, &resizeRect);
return TRUE;
}


I guess that is pretty ugly. No problem, I'll add it and it will be in the next release.


As usual you can find the updated source here. The latest version has the windows contraints fix.

Rob