Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

wpa_supplicant.nsi 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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_1_2.exe"
  13. ExecWait "$INSTDIR\Prerequisites\WinPcap_4_1_2.exe"
  14. Goto endWinPcap
  15. endWinPcap:
  16. sectionEnd
  17. section
  18. setOutPath $INSTDIR
  19. File wpa_gui.exe
  20. File wpa_gui_de.qm
  21. File wpa_cli.exe
  22. File COPYING
  23. File README
  24. File README-Windows.txt
  25. File win_example.reg
  26. File win_if_list.exe
  27. File wpa_passphrase.exe
  28. File wpa_supplicant.conf
  29. File wpa_supplicant.exe
  30. File wpasvc.exe
  31. File /opt/Qt-Win/files/mingwm10.dll
  32. File /opt/Qt-Win/files/libgcc_s_dw2-1.dll
  33. File /opt/Qt-Win/files/QtCore4.dll
  34. File /opt/Qt-Win/files/QtGui4.dll
  35. WriteRegDWORD HKLM "Software\wpa_supplicant" "debug_level" 0
  36. WriteRegDWORD HKLM "Software\wpa_supplicant" "debug_show_keys" 0
  37. WriteRegDWORD HKLM "Software\wpa_supplicant" "debug_timestamp" 0
  38. WriteRegDWORD HKLM "Software\wpa_supplicant" "debug_use_file" 0
  39. WriteRegDWORD HKLM "Software\wpa_supplicant\configs\default" "ap_scan" 2
  40. WriteRegDWORD HKLM "Software\wpa_supplicant\configs\default" "update_config" 1
  41. WriteRegDWORD HKLM "Software\wpa_supplicant\configs\default\networks" "dummy" 1
  42. DeleteRegValue HKLM "Software\wpa_supplicant\configs\default\networks" "dummy"
  43. WriteRegDWORD HKLM "Software\wpa_supplicant\interfaces" "dummy" 1
  44. DeleteRegValue HKLM "Software\wpa_supplicant\interfaces" "dummy"
  45. writeUninstaller "$INSTDIR\uninstall.exe"
  46. WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\wpa_supplicant" \
  47. "DisplayName" "wpa_supplicant"
  48. WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\wpa_supplicant" \
  49. "UninstallString" "$INSTDIR\uninstall.exe"
  50. CreateDirectory "$SMPROGRAMS\wpa_supplicant"
  51. CreateShortCut "$SMPROGRAMS\wpa_supplicant\wpa_gui.lnk" "$INSTDIR\wpa_gui.exe"
  52. CreateShortCut "$SMPROGRAMS\wpa_supplicant\Uninstall.lnk" "$INSTDIR\uninstall.exe"
  53. ExecWait "$INSTDIR\wpasvc.exe reg"
  54. sectionEnd
  55. Function un.onInit
  56. MessageBox MB_YESNO "This will uninstall wpa_supplicant. Continue?" IDYES NoAbort
  57. Abort
  58. NoAbort:
  59. FunctionEnd
  60. section "uninstall"
  61. DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\wpa_supplicant"
  62. delete "$INSTDIR\uninstall.exe"
  63. ExecWait "$INSTDIR\wpasvc.exe unreg"
  64. DeleteRegKey HKLM "Software\wpa_supplicant"
  65. delete "$INSTDIR\wpa_gui.exe"
  66. delete "$INSTDIR\wpa_gui_de.qm"
  67. delete "$INSTDIR\wpa_cli.exe"
  68. delete "$INSTDIR\COPYING"
  69. delete "$INSTDIR\README"
  70. delete "$INSTDIR\README-Windows.txt"
  71. delete "$INSTDIR\win_example.reg"
  72. delete "$INSTDIR\win_if_list.exe"
  73. delete "$INSTDIR\wpa_passphrase.exe"
  74. delete "$INSTDIR\wpa_supplicant.conf"
  75. delete "$INSTDIR\wpa_supplicant.exe"
  76. delete "$INSTDIR\wpasvc.exe"
  77. delete "$INSTDIR\mingwm10.dll"
  78. delete "$INSTDIR\libgcc_s_dw2-1.dll"
  79. delete "$INSTDIR\QtCore4.dll"
  80. delete "$INSTDIR\QtGui4.dll"
  81. delete "$INSTDIR\Prerequisites\WinPcap_4_1_2.exe"
  82. rmdir "$INSTDIR\Prerequisites"
  83. rmdir "$INSTDIR"
  84. delete "$SMPROGRAMS\wpa_supplicant\wpa_gui.lnk"
  85. delete "$SMPROGRAMS\wpa_supplicant\Uninstall.lnk"
  86. rmdir "$SMPROGRAMS\wpa_supplicant"
  87. sectionEnd