![]() |
#1 |
Junior Member
Join Date: Feb 2014
Posts: 5
|
NSIS Conditional Custom Page
I would like to create a custom page that appears only if the detected OS is 32 bit.
If the OS is 32 bit, the custom page will display a link to download the 32 bit installer, and only has "exit" button available to quit the installer. Any examples on how this can be done? So far I have the following snippets that detect the OS and make decisions as to whether to skip the custom page or display it. code: p.s. what is the correct method to change the body of the page? I've only found MUI_HEADER_TEXT to change the headers. |
![]() |
![]() |
![]() |
#2 |
Major Dude
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
|
And what exactly is your question or problem?
Just put the OS check in the pre-function of the "custom" page and, in that function, call Abort in case you which to skip the page - as you are already doing. Otherwise, when you do not want to skip the page, you setup the custom page as usual. Though, one problem I see with your current "Download32bit" function seems to be that you always call Abort in the end - or do I miss something? BTW: Please use [CODE] tags when pasting code ![]() My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc My source of inspiration: http://youtu.be/lCwY4_0W1YI |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Feb 2014
Posts: 5
|
I have updated the code to reflect what I currently have. It currently works by having a "pop up message" stating that 32 bit installer should be downloaded.
What I am looking for is something more elegant: a install page that has the download link included in the text body, and the user can click on exit to exit the installer. Is this possible to do? Thanks ![]() |
![]() |
![]() |
![]() |
#4 |
Major Dude
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
|
Why not use something like:
code: My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc My source of inspiration: http://youtu.be/lCwY4_0W1YI |
![]() |
![]() |
![]() |
#5 |
Junior Member
Join Date: Feb 2014
Posts: 5
|
Thanks LoRd_MuldeR.
My remaining question is how can the body text of the custom page be inserted/edited? I couldn't find any examples online. Is there something similar to !insertmacro MUI_HEADER_TEXT, but for the body of the page? |
![]() |
![]() |
![]() |
#6 |
Major Dude
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
|
My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc My source of inspiration: http://youtu.be/lCwY4_0W1YI |
![]() |
![]() |
![]() |
#7 |
Junior Member
Join Date: Feb 2014
Posts: 5
|
I did look into nsDialogs, but thought there would be something right from MUI.
Thanks again. |
![]() |
![]() |
![]() |
#8 |
Major Dude
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
|
Actually MUI2 makes use of the nsDialogs plug-in to create its built-in pages. MUI still used InstallOptions.
My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc My source of inspiration: http://youtu.be/lCwY4_0W1YI |
![]() |
![]() |
![]() |
#9 |
Junior Member
Join Date: Feb 2014
Posts: 5
|
I have everything working as I want it to now with nsDialogs!
Thanks again for your patience as I am brand new to NSIS. Cheers!! ![]() |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|