wpa_supplicant.nsi 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. !define PRODUCT_NAME "wpa_supplicant"
  2. !define PRODUCT_VERSION "@WPAVER@"
  3. !define PRODUCT_PUBLISHER "Jouni Malinen"
  4. Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
  5. outfile "../wpa_supplicant-@WPAVER@.exe"
  6. installDir "$PROGRAMFILES\wpa_supplicant"
  7. Page Directory
  8. Page InstFiles
  9. section -Prerequisites
  10. SetOutPath $INSTDIR\Prerequisites
  11. MessageBox MB_YESNO "Install WinPcap?" /SD IDYES IDNO endWinPcap
  12. File "/opt/Qt-Win/files/WinPcap_4_0_2.exe"
  13. ExecWait "$INSTDIR\Prerequisites\WinPcap_4_0_2.exe"
  14. Goto endWinPcap
  15. endWinPcap:
  16. sectionEnd
  17. section
  18. setOutPath $INSTDIR
  19. File wpa_gui.exe
  20. File wpa_cli.exe
  21. File COPYING
  22. File README
  23. File README-Windows.txt
  24. File win_example.reg
  25. File win_if_list.exe
  26. File wpa_passphrase.exe
  27. File wpa_supplicant.conf
  28. File wpa_supplicant.exe
  29. File wpasvc.exe
  30. File /opt/Qt-Win/files/mingwm10.dll
  31. File /opt/Qt-Win/files/QtCore4.dll
  32. File /opt/Qt-Win/files/QtGui4.dll
  33. writeUninstaller "$INSTDIR\uninstall.exe"
  34. WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\wpa_supplicant" \
  35. "DisplayName" "wpa_supplicant"
  36. WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\wpa_supplicant" \
  37. "UninstallString" "$INSTDIR\uninstall.exe"
  38. sectionEnd
  39. section "uninstall"
  40. DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\wpa_supplicant"
  41. delete "$INSTDIR\uninstall.exe"
  42. delete "$INSTDIR\wpa_gui.exe"
  43. delete "$INSTDIR\wpa_cli.exe"
  44. delete "$INSTDIR\COPYING"
  45. delete "$INSTDIR\README"
  46. delete "$INSTDIR\README-Windows.txt"
  47. delete "$INSTDIR\win_example.reg"
  48. delete "$INSTDIR\win_if_list.exe"
  49. delete "$INSTDIR\wpa_passphrase.exe"
  50. delete "$INSTDIR\wpa_supplicant.conf"
  51. delete "$INSTDIR\wpa_supplicant.exe"
  52. delete "$INSTDIR\wpasvc.exe"
  53. delete "$INSTDIR\mingwm10.dll"
  54. delete "$INSTDIR\QtCore4.dll"
  55. delete "$INSTDIR\QtGui4.dll"
  56. delete "$INSTDIR\Prerequisites\WinPcap_4_0_2.exe"
  57. rmdir "$INSTDIR\Prerequisites"
  58. rmdir "$INSTDIR"
  59. sectionEnd