Archive: A few questions...


A few questions...
Hey guys I'm prety new to nsis. I was just wondering:
Is it possible to have a "Select All" and a "Select None" button on ur components page? Or would I have to create a custom page to do so?
Also with WriteRegStr is it possible for me to write a dword value? If not how do I register a .reg?
With creating a custom page, how could I put the components there? And would I be able to have a preview image (an image would appear when u hovered over than component, sort of like the description on the components page but with an image)? Thanx heaps.


Hello! :)

Is it possible to have a "Select All" and a "Select None" button on ur components page?
No, you'll have to make a Page with installoptions and add the select-all button.
Also with WriteRegStr is it possible for me to write a dword value? If not how do I register a .reg?
Look for the instruction WriteRegDWORD
With creating a custom page, how could I put the components there?
With InstallOptions use the Checkbox and Labels to emulate the components page.
And would I be able to have a preview image (an image would appear when u hovered over than component, sort of like the description on the components page but with an image)?
I don't know if that's possible in the current versions of Nsis and InstallOptions. I think you'll have to re-write the plugin.
Hope it helps! :)

To have something similar to "select all" and "select none" use InstType. It'll also allow "select some".


Thank you very much for replying.

Turns out I don't need the registry function but it's good to know :D

Originally posted by Lobo Lunar
No, you'll have to make a Page with installoptions and add the select-all button.

With InstallOptions use the Checkbox and Labels to emulate the components page.
Hmm I was afraid of that, that would be a bit of a pain seeing I have around 68 components :rolleyes:


I don't know if that's possible in the current versions of Nsis and InstallOptions. I think you'll have to re-write the plugin.
Hope it helps! :)
Hmm not quite sure if I'm up to that, oh well.

Originally posted by kichik
To have something similar to "select all" and "select none" use InstType. It'll also allow "select some".
how do I use that? Is that used on the components page or custom?

Oh and one other question, I'm trying to use the get parent function but am failing miserably :(, could someone help me?

Thanx again in advance.

how do I use that? Is that used on the components page or custom?
Read the manual about InstType
I'm trying to use the get parent function but am failing miserably , could someone help me?
What get parent function? Directory or Installer Window?

I think the installer one. I'm trying to use this.


See a test code from the function?
What errors you got?


Thanx that cleared alot up. I got it working now :D

Thank you very much for everything.


No problem dude! :)


Sorry me again. I've noticed this bug in my installer: when you choose another location for installation it automatically adds the original subdirectory, e.g. if your default location is "C:\Program Files\My Prog" and then you click browse and select "C:\Windows", it'll put "C:\Windows\My Prog".

One other thing: how do u make it so if one section is selected another must be required?

Thanx again.


if your default location is "C:\Program Files\My Prog" and then you click browse and select "C:\Windows", it'll put "C:\Windows\My Prog".
Yeah, it's part of the installer system. I don't know how but I think is cool to have this option.
One other thing: how do u make it so if one section is selected another must be required?
See makensis.nsi example, there's an example of this.

Edit: Worked it out, thanx again.