Install or skip page
I am new to NSIS, i need help on creating a custom page that asks the user if he wants to install java with only an install button or a skip button at the bottom of the installer. the installer button should execute my func that launches the java installer and the skip button acts just like the next button. I know i can just use the Components page to make this all easy but i am doing a check to see if the user has JRE installed, based on the result it will show this page if the person needs to install it. otherwise it just mentions that they dont need to install it and just has a next button.
Thanks
-------------------------------------------------
jre.ini
Settings]
NumFields=3
[Field 1]
Type=Label
;State=Java Runtime Enviorment (JRE) was not installed.\r\nJRE could be found on your computer JRE 1.6 is required.\r\nDo you want to install JRE v${JRE_VERSION}?."
Left=0
Right=500
Top=22
Bottom=96
[Field 2]
Type=Button
Text=Install
Left=187
Right=237
Top=121
Bottom=137
State= Goto installjre?
[Field 2]
Type=Button
Text=Skip
Left=243
Right=293
Top=121
Bottom=137