Archive: install / update function with different GUIs


install / update function with different GUIs
Hi,

I hope you can help me!

How can I change the GUI (Modern) dependent on install mode?

I check the version in the registry and dependent from the version I would like to change the different pages. One way is a new installation and I use the following pages:

!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "${SCRIPTHOME}\License.txt"
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH

If the tool is allready installed I would like to switch in update mode and use the following pages:


!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "${SCRIPTHOME}\License.txt"
!insertmacro MUI_PAGE_? / here I need only a checkbox "Update"...
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH


I hope you can help me! Witch is the "normal" way to implement a funktion like this?. I try to add the !insertmacro inside functions and sections but I have always the same Error "not allowed ...".

Thanks for your help!

Stefan


You have to use a custom InstallOptions page. If you don't want to show the page, just jump over the InstallOptions call.

-Stu


Hi,

Thanks for your answer! Please, did you have a example for me?
I search google and the NSIS archiv and canĀ“t find anything concret about customer pages for my case.

Thanks and a nice weekend!

Stefan


There's lots of InstallOptions examples in Examples\InstallOptions and also a Modern UI one Examples\Modern UI\InstallOptions.nsi

-Stu