我想自定义NSIS脚本-例如,删除“ Finish Page”并在安装后立即运行应用程序(使用辅助安装程序)。
我使用修改scrpt :include: build/installer.nsh
。
安装后会打开myApp,但“ 完成”页面仍然存在。
!include MUI2.nsh
!macro customInstall
ExecWait '"$INSTDIR\myapp.exe" /sw'
!macroend
我的意思是我不想显示gif所示的完成myApp安装的最后一页。
任何帮助表示赞赏。
最后,我在build / installer.nsh中做到了:
!macro RunApp
${StdUtils.ExecShellAsUser} $0 "$launchLink" "open" ""
!macroend
!macro customInstall
!insertmacro RunApp
!insertmacro quitSuccess
!macroend