summaryrefslogtreecommitdiffstats
path: root/packaging/nsis/wireshark-additional-tasks.nsdinc
blob: 694bb58dca9da8dbedf4cd1a4fb19a8be1d977a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
; =========================================================
; This file was generated by NSISDialogDesigner 1.5.0.0
; https://coolsoft.altervista.org/nsisdialogdesigner
;
; Do not edit it manually, use NSISDialogDesigner instead!
; =========================================================

; handle variables
Var hCtl_AdditionalTasksPage
Var hCtl_AdditionalTasksPage_ExtensionsLabel
Var hCtl_AdditionalTasksPage_AssociateExtensionsCheckBox
Var hCtl_AdditionalTasksPage_DesktopIconCheckBox
Var hCtl_AdditionalTasksPage_StartMenuCheckBox
Var hCtl_AdditionalTasksPage_FileExtensionsLabel
Var hCtl_AdditionalTasksPage_CreateShortcutsLabel
Var hCtl_AdditionalTasksPage_Font1


; dialog create function
Function fnc_AdditionalTasksPage_Create

  ; custom font definitions
  CreateFont $hCtl_AdditionalTasksPage_Font1 "Microsoft Sans Serif" "8.25" "700"

  ; === AdditionalTasksPage (type: Dialog) ===
  nsDialogs::Create 1018
  Pop $hCtl_AdditionalTasksPage
  ${If} $hCtl_AdditionalTasksPage == error
    Abort
  ${EndIf}
  !insertmacro MUI_HEADER_TEXT "Additional Tasks" "Create shortcuts and associate file extensions."

  ; === ExtensionsLabel (type: Label) ===
  ${NSD_CreateLabel} 14u 93u 245u 32u "Extensions include 5vw, acp, apc, atc, bfr, cap, enc, erf, fdc, ipfix, lcap, mplog, ntar, out, pcap, pcapng, pklg, pkt, rf5, rtp, snoop, syc, tpc, tr1, trace, trc, vwr, wpc, and wpz."
  Pop $hCtl_AdditionalTasksPage_ExtensionsLabel

  ; === AssociateExtensionsCheckBox (type: Checkbox) ===
  ${NSD_CreateCheckbox} 14u 78u 267u 9u "Associate trace file extensions with Wireshark"
  Pop $hCtl_AdditionalTasksPage_AssociateExtensionsCheckBox

  ; === DesktopIconCheckBox (type: Checkbox) ===
  ${NSD_CreateCheckbox} 14u 33u 267u 9u "Wireshark Desktop Icon"
  Pop $hCtl_AdditionalTasksPage_DesktopIconCheckBox

  ; === StartMenuCheckBox (type: Checkbox) ===
  ${NSD_CreateCheckbox} 14u 21u 267u 9u "Wireshark Start Menu Item"
  Pop $hCtl_AdditionalTasksPage_StartMenuCheckBox

  ; === FileExtensionsLabel (type: Label) ===
  ${NSD_CreateLabel} 8u 62u 280u 9u "Associate File Extensions"
  Pop $hCtl_AdditionalTasksPage_FileExtensionsLabel
  SendMessage $hCtl_AdditionalTasksPage_FileExtensionsLabel ${WM_SETFONT} $hCtl_AdditionalTasksPage_Font1 0

  ; === CreateShortcutsLabel (type: Label) ===
  ${NSD_CreateLabel} 8u 6u 280u 9u "Create Shortcuts"
  Pop $hCtl_AdditionalTasksPage_CreateShortcutsLabel
  SendMessage $hCtl_AdditionalTasksPage_CreateShortcutsLabel ${WM_SETFONT} $hCtl_AdditionalTasksPage_Font1 0

  ; CreateFunctionCustomScript
  ; Defined in wireshark.nsi
  Call InitAdditionalTasksPage


FunctionEnd

; dialog show function
Function fnc_AdditionalTasksPage_Show
  Call fnc_AdditionalTasksPage_Create
  nsDialogs::Show
FunctionEnd