|
|
#1 |
|
Junior Member
Join Date: Jan 2007
Location: The Netherlands
Posts: 2
|
Hi,
I have created a small installer with a custom page, asking for a specific path. Now I want to be able to show this dialog only, if the customer/user has selected a specific setup type. So for instance, only when he chooses Custom as the setup type. Now I have read a number of the forums, and I looked into the documentation, but I need so help or guidance on how this could be done. Any help or just ideas would be very much appreciated. Thanks in advance. Vincent |
|
|
|
|
|
#2 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
See NSIS documentation 4.9.13.10 GetCurInstType
Once you manage this, on custom page's create function before the InstallOptions call, check the var and if for instance is anything else than 32 which is the custom install, add abort to skip the page, Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jan 2007
Location: The Netherlands
Posts: 2
|
Thanks. I will have a good read into that chapter.
|
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Mar 2007
Posts: 3
|
Hi,
I want to get the current install type with GetCurInstType but i can't get the custom install type. InstType Full GetCurInstType get 0 for "Full" but also 0 for custom ( i think the documentation says custom is ${NSIS_MAX_INST_TYPES} ?) I'm really confused about. Thx Frank |
|
|
|
|
|
#5 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
${NSIS_MAX_INST_TYPES} == 32
Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Mar 2007
Posts: 3
|
InstType "Full"
Function .onSelChange ;MessageBox MB_OK "Hallo?" GetCurInstType $R1 ${If} $R1 == ${NSIS_MAX_INST_TYPES} MessageBox MB_OK "Custom" ${EndIf} FunctionEnd The messagebox appears never. |
|
|
|
|
|
#7 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
Well custom or not (32) is depended on selected/deselected components, e.g. if you select custom from dropdown without changing the components selection then the current install type is still full.
Here is a related example: code: Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|