Archive: Finish Page + 2 noob questions


Finish Page + 2 noob questions
I'm using the wonderfulll ExperienceUI (if that matters) I defined my finish page like this


; ------- Begin Finish page --------------------------------

!define MUI_FINISHPAGE_SHOWREADME
!define MUI_FINISHPAGE_SHOWREADME_TEXT "Create desktop shortcut"
!define MUI_FINISHPAGE_SHOWREADME_FUNCTION CreateDeskShortcut

Function CreateDeskShortcut
CreateShortCut "$DESKTOP\test.lnk" "$INSTDIR\test.exe"
FunctionEnd


!define MUI_FINISHPAGE_RUN
!define MUI_FINISHPAGE_RUN_FUNCTION RunTestApp

Function RunTestApp
Exec '"$INSTDIR\test.exe"'
FunctionEnd

!insertmacro MUI_PAGE_FINISH
; ------- End Finish page ----------------------------------


When I call the createDeskShortcut as run function it is properly created. However when called as showreadme function it is not :igor: ?

Everytime my installer ends an explorer screen pops up that shows the temp folder nsis used and two remaining files:
BgImage.dll and InstallOptions.dll

How can this be prevented?

I don't think the MUI_FINISHPAGE_SHOWREADME and MUI_FINISHPAGE_RUN defines are understood by the ExperienceUI yet (my bad). Use instead (for now):

!define XPUI_FINISHPAGE_DOCS
!define XPUI_FINISHPAGE_CHECKBOX_DOCS "Create desktop shortcut"
!define XPUI_FINISHPAGE_DOCS_FUNCTION CreateDeskShortcut

Function CreateDeskShortcut
CreateShortCut "$DESKTOP\test.lnk" "$INSTDIR\test.exe"
FunctionEnd


!define XPUI_FINISHPAGE_RUN
!define XPUI_FINISHPAGE_RUN_FUNCTION RunTestApp

Function RunTestApp
Exec '"$INSTDIR\test.exe"'
FunctionEnd

!insertmacro XPUI_PAGE_FINISH


Edit: plugin unload bugs fixed for next version - due out by the end of Feb.

-dandaman32