Archive: Small feature request :-)


Small feature request :-)
Hi

On the makensisw.exe app - could you add under the "File menu item" the last 5 scripts you loaded into the compiler!

I work on a number of scripts and would cool to just select the last one I was working with ;-)

Thanks, and hope you have a good holiday!

DabossUK


A cool feature that will help...
did you add it in the Nsis dev list?


Done.
Please get the latest CVS version for this functionality.


Originally posted by iceman_k
Done.
Please get the latest CVS version for this functionality.
It doesn't work for me. I have a menu item like this:


/X"SetCompressor bzip2" "C:\test files\file.nsi


And it obviously fails when trying to run it. Also, it should only show the filename, not the path. If it's going to show the path, there should be some truncation to the beginning so my menu item isn't longer than the makensisw window itself.

Also, there should be a way to clear the MRU list. And files that no longer exist should be removed if you try to run it (and the file doesn't exist).

It doesn't work for me. I have a menu item like this:

/X"SetCompressor bzip2" "C:\test files\file.nsi


And it obviously fails when trying to run it.
This will be fixed.

Also, it should only show the filename, not the path. If it's going to show the path, there should be some truncation to the beginning so my menu item isn't longer than the makensisw window itself.
Good point.

Also, there should be a way to clear the MRU list.
I agree.

And files that no longer exist should be removed if you try to run it (and the file doesn't exist).
This is not really standard Windows GUI behavior (check out MS Word, MS Excel, Visual Studio, etc.
But it would be useful, no doubt.

Office XP clears the recent files area if the files do not exist (on user click).

-Stu


Office 2000 does not- I guess they fixed it in Office XP.


Originally posted by iceman_k
This is not really standard Windows GUI behavior (check out MS Word, MS Excel, Visual Studio, etc.
But it would be useful, no doubt.
That's fine. I can live without this feature. I have seen it in several apps, but as long is there is a clear option, it will be fine not to have it.

OK, get the latest CVS version and give it another try.
Let me know if you find any more bugs. PM'ing me is probably the best way to do this.

[edit]The Clear option is under the Tools menu.[/edit]


Works much better now. My only issue now is that it doesn't remember my compressor settings (or any /X parameters passed really). For certain installers, I have to use bzip2, so the MRU doesn't work since NSIS defaults to zlib.


Remembering compressor settings was a feature request that has been shelved for now.
The basic support for this feature is already there in the GUI, but it is waiting on a compressor command line option in makensis.
Using /X"SetCompressor foo" will work most of the time, but if you explicitly set the compressor in your script, it will override the command line option.
If you know which installers need bzip2, why not add the SetCompressor bzip2 command directly to the scripts?


Originally posted by iceman_k
If you know which installers need bzip2, why not add the SetCompressor bzip2 command directly to the scripts?
Because right now it crashes when using bzip2 :) Kichik is fixing the problem now though.

Hi

Just wanted to say thanks for doing this! - has saved sooo much clicking around ;-)


You're welcome.
That's what we're here for.
Please let me know if you run into any bugs with this feature.


The new MRU feature does not work on my Win98SE system. I am using MAKENSISW.EXE v1.102 from a snapshot downloaded yesterday (21 August). After editing several files, the MRU list remains empty (see screenshot). I have exited and rerun the program but it never shows any MRU entries.

When I looked at the registry, I found some MRU data in HKLM\Software\NSIS\MRU (entries 0, 1, 2, 3 and 4 had the expected data).


Unfortunately I don't have a Win98SE system to test on.
However, I will review all the API I use to check for OS compatability.


Well, I finally had to setup VirtualPC with a Windows 98 SE VM to be able to test this. It turns out that MS Windows 9x handles the WM_MENUSELECT message differently from MS Windows NT/2000/XP.
(Why am I not surprised? Its Micro$oft after all).
So I had to overhaul quite a bit of code to get it working.
Anyway, the latest CVS version should now work with Windows 9x as well as Windows NT/2000/XP.
As always, please let me know if you find bugs in the implementation.


Downloaded the 23 August (07:44 GMT) CVS snapshot and found that the MRU list now works perfectly on my Win98SE system. Thanks for fixing it so quickly.