pyapp_w_pylauncher.nsi 812 B

12345678910111213141516171819202122232425
  1. [% extends "pyapp_installpy.nsi" %]
  2. [# For Python 2, add the py/pyw Windows launcher. Python 3 includes it already. #]
  3. [% block sections %]
  4. Section "PyLauncher" sec_pylauncher
  5. ; Check for the existence of the pyw command, skip installing if it exists
  6. nsExec::Exec 'where pyw'
  7. Pop $0
  8. IntCmp $0 0 SkipPylauncher
  9. ; Extract the py/pyw launcher msi and run it.
  10. File "launchwin${ARCH_TAG}.msi"
  11. ExecWait 'msiexec /i "$INSTDIR\launchwin${ARCH_TAG}.msi" /qb ALLUSERS=1'
  12. Delete "$INSTDIR\launchwin${ARCH_TAG}.msi"
  13. SkipPylauncher:
  14. SectionEnd
  15. [[ super() ]]
  16. [% endblock %]
  17. [% block mouseover_messages %]
  18. [[ super() ]]
  19. StrCmp $0 ${sec_app} "" +2
  20. SendMessage $R0 ${WM_SETTEXT} 0 "STR:The Python launcher. \
  21. This is required for ${PRODUCT_NAME} to run."
  22. [% endblock %]