Archive: agree before install


agree before install
trying to add a check box on a custom page so they have to click it before they can click install. I can't even get the check box to show up using ${NSD_CreateCheckbox} 180 90 5u 100% ""


You can use the following (assuming you're using MUI):

!define MUI_LICENSEPAGE_CHECKBOX

!insertmacro MUI_PAGE_LICENSE "agree.txt"
"agree.txt" contains whatever they have to agree to (you change the name of the .txt file)

yeah, but he wants it on his custom page. For example, he might have a page that checks system resources and determines that the user has only 1GB of RAM which might severely hamper the application's performance. So he could include a checkbox that states "I accept that because of limited system resources, the installed program may not perform optimally" or somesuch before allowing an installation, to prevent the user from e-mailing about the poor performance.

anyway.

IYIaster... the reason you're not seeing it is probably because you made it waaaaaaay too tall; 100% of the page's height, 90 pixels from the top.. probably falls off-screen.

try '180 90 10u 10u' or '180 90 16 16'. Note that the size of the checkbox widget itself depends on the width parameter. The height just ends up creating more space for the text next to it.


Are you able to create other controls?

How about the cöordinates of the control?
Isn't the checkbox just placed outside the dialog (thus invisible)?

I think you should use 'dialog units' instead of pixels anyway.


Hmm, you where quicker then me Animaether...

Anyway, the 100% given was for the width, so that should not be a problem.
And using 5 as height results in a rather small checkbox, but that isn't the problem as well.


Originally posted by jpderuiter
the 100% given was for the width, so that should not be a problem.
...

Originally posted by IYIaster
trying to add a check box on a custom page so they have to click it before they can click install. I can't even get the check box to show up using ${NSD_CreateCheckbox} 180 90 5u 100% ""
...

http://nsis.sourceforge.net/Docs/nsD...ml#mref-create
From the nsDialogs Documentation
${NSD_Create*} x y width height text

Originally posted by Animaether
yeah, but he wants it on his custom page. For example, he might have a page that checks system resources and determines that the user has only 1GB of RAM which might severely hamper the application's performance. So he could include a checkbox that states "I accept that because of limited system resources, the installed program may not perform optimally" or somesuch before allowing an installation, to prevent the user from e-mailing about the poor performance.

anyway.

IYIaster... the reason you're not seeing it is probably because you made it waaaaaaay too tall; 100% of the page's height, 90 pixels from the top.. probably falls off-screen.

try '180 90 10u 10u' or '180 90 16 16'. Note that the size of the checkbox widget itself depends on the width parameter. The height just ends up creating more space for the text next to it.
That's exactly what I'm doing you are awesome.

Ok, I think I figured out why it isnt working. I had another item on the page was was set to 100% and I think its covering it up. I will look at it tomorrow. Thanks for your help guys
by the way ${NSD_CreateCheckbox} 230 95 10u 10u "" after changing it to that I was able to see 1/2 of the box so I will figure out where I need it tomorrow.


ok guys I was able to get the check box to place where I need it. Anyone know how I would config so that they have to check this box before they continue? Also this box will only show up if the resources on the server don't meet our requirements.