wpa_supplicant.nsi 3.2 KB

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