Newer
Older
CVSS_3.0_GUI / node_modules / nwjs-builder-phoenix / assets / nsis / Contrib / zip2exe / Base.nsh
root on 7 May 2019 1 KB Initial commit
  1. ;Change this file to customize zip2exe generated installers
  2.  
  3. Name "${ZIP2EXE_NAME}"
  4. OutFile "${ZIP2EXE_OUTFILE}"
  5.  
  6. AllowRootDirInstall true
  7.  
  8.  
  9. !ifdef ZIP2EXE_COMPRESSOR_SOLID
  10. !define SETCOMPRESSOR_SWITCH /SOLID
  11. !else
  12. !define SETCOMPRESSOR_SWITCH
  13. !endif
  14.  
  15. !ifdef ZIP2EXE_COMPRESSOR_ZLIB
  16. SetCompressor ${SETCOMPRESSOR_SWITCH} zlib
  17. !else ifdef ZIP2EXE_COMPRESSOR_BZIP2
  18. SetCompressor ${SETCOMPRESSOR_SWITCH} bzip2
  19. !else ifdef ZIP2EXE_COMPRESSOR_LZMA
  20. SetCompressor ${SETCOMPRESSOR_SWITCH} lzma
  21. !endif
  22.  
  23. !ifdef ZIP2EXE_INSTALLDIR
  24.  
  25. InstallDir "${ZIP2EXE_INSTALLDIR}"
  26.  
  27. Function zip2exe.SetOutPath
  28. SetOutPath "$INSTDIR"
  29. FunctionEnd
  30.  
  31. !else ifdef ZIP2EXE_INSTALLDIR_WINAMP
  32.  
  33. InstallDir "$PROGRAMFILES\Winamp"
  34. InstallDirRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Winamp" "UninstallString"
  35.  
  36. Function .onVerifyInstDir
  37. IfFileExists $INSTDIR\winamp.exe WinampInstalled
  38. Abort
  39. WinampInstalled:
  40. FunctionEnd
  41.  
  42. !ifdef ZIP2EXE_INSTALLDIR_WINAMPMODE
  43. Var ZIP2EXE_TEMP1
  44. Var ZIP2EXE_TEMP2
  45.  
  46. Function zip2exe.SetOutPath
  47. !ifdef ZIP2EXE_INSTALLDIR_SKINS
  48. StrCpy $ZIP2EXE_TEMP1 "$INSTDIR\Skins"
  49. !else
  50. StrCpy $ZIP2EXE_TEMP1 "$INSTDIR\Plugins"
  51. !endif
  52. ReadINIStr $ZIP2EXE_TEMP2 "$INSTDIR\winamp.ini" "Winamp" "${ZIP2EXE_INSTALLDIR_WINAMPMODE}"
  53. StrCmp $ZIP2EXE_TEMP2 "" End
  54. IfFileExists $ZIP2EXE_TEMP2 0 End
  55. StrCpy $ZIP2EXE_TEMP1 $ZIP2EXE_TEMP2
  56. End:
  57. SetOutPath $ZIP2EXE_TEMP1
  58. FunctionEnd
  59.  
  60. !else
  61.  
  62. Function zip2exe.SetOutPath
  63. !ifdef ZIP2EXE_INSTALLDIR_PLUGINS
  64. SetOutPath "$INSTDIR\Plugins"
  65. !else
  66. SetOutPath "$INSTDIR"
  67. !endif
  68. FunctionEnd
  69.  
  70. !endif
  71.  
  72. !endif
  73.  
  74. !macro SECTION_BEGIN
  75.  
  76. Section ""
  77. Call zip2exe.SetOutPath
  78. !macroend
  79.  
  80. !macro SECTION_END
  81.  
  82. SectionEnd
  83. !macroend
Buy Me A Coffee