|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
|
#1 |
|
Member
Join Date: Nov 2009
Location: Mangalore-Karnataka-India
Posts: 87
|
Problems on creating new page in NSIS with checkbox etc
I want to insert a new page in the installation which contains two checkbox client version and server version.on clicking client version nothing special happens as of now. But if server version selected then a browse option should come to select a folder(This is not a installation folder). I am finding some difficulties to do this. I have added two checkbox a text box and browse button.In the onchange of checkbox i make browse and textbox.
But now the problem is I want only one checkbox to be checked at a time. When server version checked browse option should appear(which works now) ,but if it is unchecked again then that browse option should disappear.(which does not work because i was not able to write code for that) If i click next on this page and then come back to same page using back then all controls or checkbox i checked should be as it is. But now those browse options will disappear even if server version checkbox is selected(As i have not done proper coding for this also) So please help me to do all these things. Also help me if there any other method to do the same code: |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Feb 2005
Location: London
Posts: 218
|
What you're trying to do might not be possible.
I don't think you can make the Browse button disappear without refreshing the page; to refresh the page, leave the page (Next or Back), and then to return to the page, use Back or Next. |
|
|
|
|
|
#4 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
You cannot create elements after the Show command. You need to create all components on the page together, and then hide some of them. In the onclick functions you can then unhide the required components and hide others:
http://nsis.sourceforge.net/Docs/Cha...html#4.9.14.17 |
|
|
|
|
|
#5 | |
|
Member
Join Date: Nov 2009
Location: Mangalore-Karnataka-India
Posts: 87
|
Quote:
|
|
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Feb 2005
Location: London
Posts: 218
|
|
|
|
|
|
|
#7 |
|
Member
Join Date: Nov 2009
Location: Mangalore-Karnataka-India
Posts: 87
|
Please check my code here. I am facing small problem. If a user click on browse button and in folder browse dialog if he clicks cancel instead of selecting path then control will be set to "error" . How can i handle this? I want user to select path compulsorily if he has selected server installation. How can i do it?
|
|
|
|
|
|
#8 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
Simply check for a proper path in the $SOURCE variable in your page's leave function.
|
|
|
|
|
|
#9 |
|
Member
Join Date: Nov 2009
Location: Mangalore-Karnataka-India
Posts: 87
|
ok how can i display same custom page in the leave function? If i use a leave function for custom page i will give a message to user that path should be selected or some thing else and then i again want to show same custom page. How can i call custom page from the leave function?
|
|
|
|
|
|
#10 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
Calling 'abort' in the leave function will make the user stay on that page.
|
|
|
|
|
|
#11 |
|
Member
Join Date: Nov 2009
Location: Mangalore-Karnataka-India
Posts: 87
|
Thank you. I was able to do it. Can i get windows user list in nsis? I want user to select any one of the windows user account from a list. The list must contain all windows user accounts of PC.
|
|
|
|
|
|
#12 |
|
Major Dude
Join Date: Feb 2007
Posts: 672
|
|
|
|
|
|
|
#13 |
|
Member
Join Date: Nov 2009
Location: Mangalore-Karnataka-India
Posts: 87
|
I am already using NSD_SetImage to display a image on the custom page. It works properly,but only in my pc where the image exists in path. So to include in setup what should i do? Should i include image file by using 'File' option of nsis or is there any method to do it?
But !define MUI_WELCOMEFINISHPAGE_BITMAP "D:\Icons\Welcome.bmp" in welcome page shows image properly in all pc. But how to include or load image in custom page? |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|