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