Warm tip: This article is reproduced from stackoverflow.com, please click
electron electron-builder nsis

Customize NSIS installer with Electron-builder

发布于 2020-04-23 16:46:23

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.

Questioner
boris_here
Viewed
287
boris_here 2020-02-17 16:01

Finally I did it in build/installer.nsh:

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

!macro customInstall
    !insertmacro RunApp
    !insertmacro quitSuccess
!macroend