Archive: Startmenu group


Startmenu group
Hi,

the actual NSIS 2 CVS is very good.
The new features are useful. (Mulitlanguage, Modern UI) :up:

But we really need the ability to select a startmenu group in the setup now. Each setup has it, but not NSIS. :confused:

It shouldn't be very difficult to create a selection like the one used in WISE Setup (look at the attached file from Opera Setup).
I created s.th. like this in 1.98 and it worked a bit (before learning C++). But I haven't managed to insert a new dialog and so it was useless. But if you can insert a new dialog and all routines to create and destroy it then I can perhaps implent this feature again. :D

I posted a poll if the users need this feature. (I hope this'll work)

Ramon


I forgot the attachment. Here it is.


This could be done with InstallOptions plus a small dll that loops through the startmenu directory. If you want I could write one up.


I already created this, see the site of SunJammer (Ximon).

[edit]
Check it out here.
It has been written in NSIS 1.98 and might need some changes to be compiled in NSIS 2.0ax but I did not check that.
[/edit]

-Hendri.


Hi,

this looks good but it should be included in NSIS.
I think more than 50% need a dialog like this.

Or it should be a plugin without the IO dialog, only a single DLL file.
Perhaps someone can do s.th. like this.

Ramon


I guess that would increase the size of every installer, no matter you use it or not. In the current system you can choose to increase the size or not. I would prefer that.

Or it should be possible to delete the resources when you dont need them. But then a lot of things should be included. Backgrounds, flash pictures etc... Let's leave it to KiCHiK and Justin then :)

-Hendri.


I think it would be harder to put into NSIS than you think. A lot of scripts would be broken that write to the startmenu. Because then, it would be customizable, so it wouldn't know where to write it. What about the uninstaller? You would have to store the Folder Name in the registry. Plus, is it really necessary for the user to choose the name of the Start Menu group? For most installers no.


To partially play devil's advocate here, nobody really seemed to care about breaking installers previously to add features that were wanted. What's the issue with doing it again? This project is under active development, and it's expected that things are going to change. For people that want something set and stable, they should be using 1.98.

-Scott


The main point is that we don't want to make NSIS larger adding a feature that many people won't use. There are so many other things that could have been integrated, but using Extension DLL's is really better.


Will it satisfy everyone if I write a simple, small DLL that pops back the user's choice?


Hi kichik,
this would be good.
Create the DLL and a sample.

Ramon


Done. Find it in the latest CVS version.


I had a short look at it.
Looks great. I'll take a look into it tomorrow.

Thanks
Ramon


HI kichik,

I looked at StartMenu.dll and found a bug:
- If I show a MessageBox in the Example when the user
pressed cancel instead of the Quit-Command, then I get
the MessageBox but the dialog is empty. If I select No
then I come to the Directory-selection page.

Ramon


There is no cancel confirm. When it returns cancel it means cancel, if you want to show it again call the function again.


Added /lastused so StartMenu will remember the last selection, see Example.nsi.
And, as stated in the NSIS 2 thread StartMenu now uses NSIS cancel confirm.


The new Modern UI also has macro's for a Start Menu selection-page.

For an example, have a look at Examples\Modern UI\StartMenu.nsi


Startmenu folder choice Not necessary
My 2 cents worth :
Going by my own experience (as a user), I don't see the need for it.

EVERY time I install a product, even when the choice is offered, I couldn't be bothered choosing at that time. I just let the installer put it where it wants, then, if I want to, I later reorganise it myself manually. I think if a user really cares about where it goes, they've probably taken the trouble to learn how to reorganise their startmenu programs. In fact, I actually prefer doing it that way. If I later move it myself from where the installer put it, the uninstaller can't remove the shortcuts when I uninstall the product. Then, I at least have a reminder left over about what was there (and where it was installed) even after it's gone, in case I want to reinstall it or something.


Hi kichik,

the /checknoshortcuts is good
But If you select this, than the selection should be disabled.

Ramon


Done.


Nice
It is very nice to be org.
so be it


Org as in organization, original or something else?