4
votes

I want to customize NSIS script - e.g. remove Finish Page and run app immediately after install (assisted installer is used).

I use modifying scrpt: include: build/installer.nsh.

It opens myApp after install but Finish page is still there.

!include MUI2.nsh

!macro customInstall
  ExecWait '"$INSTDIR\myapp.exe" /sw'
!macroend

I mean I don't want to show the last page Completing myApp Setup as shown in gif.

install process

Any help appreciated.

1
Hi Boris, could you send a screenshot of the finish page you're talking about? Or even better a gif of the whole installation process with the finish page. - Joshua
Hi @Joshua. I added gif to the post, please look at it. - boris_here
Thank you Boris, that's really helpful. Unfortunately I don't know how I can solve your problem sorry. - Joshua
You can also use oneclick option if you would like the streamlined experience - Macindows

1 Answers

4
votes

Finally I did it in build/installer.nsh:

!macro RunApp
  ${StdUtils.ExecShellAsUser} $0 "$launchLink" "open" ""
!macroend

!macro customInstall
    !insertmacro RunApp
    !insertmacro quitSuccess
!macroend