|
|
#1 |
|
Junior Member
Join Date: Sep 2014
Posts: 4
|
Nsis Modify the direcyory page
Hello,
I want to modify the default page directory to add a message box if the space required is insufficient. I want to have a message box, or a specific message in the interface, even if the Next button is grayed. Thks |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
|
When should this message appear?
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Sep 2014
Posts: 4
|
When the page appear if the default path is insufficient or after selecting the new path.
(When a path is insufficient I have the next button grayed) |
|
|
|
|
|
#4 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
|
There is .onVerifyInstDir but it is usually not recommended to put a MessageBox there...
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Sep 2014
Posts: 4
|
Yes I tried .onVerifyInstDir but it's not what I want.
When the space is not enought automaticly the Next button is grayed, can I add text inside the Directory page to tell the user that the space is not enought or color the text "Rquired space" in red ? Thks |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Sep 2014
Posts: 4
|
here is a printscreen of my interface
|
|
|
|
|
|
#7 | |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
|
.onVerifyInstdir is not called for all invalid paths, this is the best you can do:
Quote:
IntOp $PostCount $PostCount + 1 |
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|