1
; Script generated by the HM NIS Edit Script Wizard.
3
; HM NIS Edit Wizard helper defines
4
!define PRODUCT_NAME "3Depict"
5
!define PRODUCT_VERSION "0.0.2"
6
!define PRODUCT_PUBLISHER "D. Haley, A. Ceguerra"
7
!define PRODUCT_WEB_SITE "http://threedepict.sourceforge.net"
8
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\3Depict.exe"
9
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
10
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
12
; MUI 1.67 compatible ------
16
!define MUI_ABORTWARNING
17
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
18
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
21
!insertmacro MUI_PAGE_WELCOME
23
!insertmacro MUI_PAGE_LICENSE "COPYING"
25
!insertmacro MUI_PAGE_DIRECTORY
27
!insertmacro MUI_PAGE_INSTFILES
29
!define MUI_FINISHPAGE_RUN "$INSTDIR\3Depict.exe"
30
!insertmacro MUI_PAGE_FINISH
33
!insertmacro MUI_UNPAGE_INSTFILES
36
!insertmacro MUI_LANGUAGE "English"
40
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
42
InstallDir "$PROGRAMFILES\3Depict"
43
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
45
ShowUnInstDetails show
47
Section "3Depict program" SEC01
50
File "src\3Depict.exe"
51
File "src\wxmsw28u_richtext_gcc_custom.dll"
52
File "src\wxmsw28u_qa_gcc_custom.dll"
53
File "src\wxmsw28u_html_gcc_custom.dll"
54
File "src\wxmsw28u_gl_gcc_custom.dll"
55
File "src\wxmsw28u_core_gcc_custom.dll"
56
File "src\wxmsw28u_aui_gcc_custom.dll"
57
File "src\wxmsw28u_adv_gcc_custom.dll"
58
File "src\wxbase28u_xml_gcc_custom.dll"
59
File "src\wxbase28u_net_gcc_custom.dll"
60
File "src\wxbase28u_gcc_custom.dll"
61
File "src\libxml2-2.dll"
62
File "src\libgslcblas-0.dll"
63
File "src\libgsl-0.dll"
64
File "src\libfreetype-6.dll"
65
File "src\pthreadGC2.dll"
66
CreateDirectory "$SMPROGRAMS\3Depict"
67
CreateDirectory "$SMPROGRAMS\3Depict\textures"
68
CreateShortCut "$SMPROGRAMS\3Depict\3Depict.lnk" "$INSTDIR\3Depict.exe"
69
CreateShortCut "$DESKTOP\3Depict.lnk" "$INSTDIR\3Depict.exe"
71
SetOutPath "$INSTDIR\textures\"
72
File "src\textures\enlarge.png"
73
File "src\textures\keyboard-alt.png"
74
File "src\textures\keyboard-command.png"
75
File "src\textures\keyboard-ctrl.png"
76
File "src\textures\keyboard-shift.png"
77
File "src\textures\keyboard-tab.png"
78
File "src\textures\Left-Right-arrow.png"
79
File "src\textures\Left_clicked_mouse.png"
80
File "src\textures\middle_clicked_mouse.png"
81
File "src\textures\Right-arrow.png"
82
File "src\textures\Right_clicked_mouse.png"
83
File "src\textures\rotateArrow.png"
84
File "src\textures\scroll_wheel_mouse.png"
87
Section -AdditionalIcons
88
WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
89
CreateShortCut "$SMPROGRAMS\3Depict\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
90
CreateShortCut "$SMPROGRAMS\3Depict\Uninstall.lnk" "$INSTDIR\uninst.exe"
94
WriteUninstaller "$INSTDIR\uninst.exe"
95
WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\3Depict.exe"
96
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
97
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
98
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\3Depict.exe"
99
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
100
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
101
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
105
Function un.onUninstSuccess
107
MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) was successfully removed from your computer."
111
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you sure you want to completely remove $(^Name) and all of its components?" IDYES +2
116
Delete "$INSTDIR\${PRODUCT_NAME}.url"
117
Delete "$INSTDIR\textures\uninst.exe"
118
Delete "$INSTDIR\textures\scroll_wheel_mouse.png"
119
Delete "$INSTDIR\textures\rotateArrow.png"
120
Delete "$INSTDIR\textures\Right_clicked_mouse.png"
121
Delete "$INSTDIR\textures\Right-arrow.png"
122
Delete "$INSTDIR\textures\middle_clicked_mouse.png"
123
Delete "$INSTDIR\textures\Left_clicked_mouse.png"
124
Delete "$INSTDIR\textures\Left-Right-arrow.png"
125
Delete "$INSTDIR\textures\keyboard-tab.png"
126
Delete "$INSTDIR\textures\keyboard-shift.png"
127
Delete "$INSTDIR\textures\keyboard-ctrl.png"
128
Delete "$INSTDIR\textures\keyboard-command.png"
129
Delete "$INSTDIR\textures\keyboard-alt.png"
130
Delete "$INSTDIR\textures\enlarge.png"
131
Delete "$INSTDIR\3Depict.exe"
133
Delete "$INSTDIR\wxmsw28u_richtext_gcc_custom.dll"
134
Delete "$INSTDIR\wxmsw28u_qa_gcc_custom.dll"
135
Delete "$INSTDIR\wxmsw28u_html_gcc_custom.dll"
136
Delete "$INSTDIR\wxmsw28u_gl_gcc_custom.dll"
137
Delete "$INSTDIR\wxmsw28u_core_gcc_custom.dll"
138
Delete "$INSTDIR\wxmsw28u_aui_gcc_custom.dll"
139
Delete "$INSTDIR\wxmsw28u_adv_gcc_custom.dll"
140
Delete "$INSTDIR\wxbase28u_xml_gcc_custom.dll"
141
Delete "$INSTDIR\wxbase28u_net_gcc_custom.dll"
142
Delete "$INSTDIR\wxbase28u_gcc_custom.dll"
143
Delete "$INSTDIR\libxml2-2.dll"
144
Delete "$INSTDIR\libgslcblas-0.dll"
145
Delete "$INSTDIR\libgsl-0.dll"
146
Delete "$INSTDIR\libfreetype-6.dll"
147
Delete "$INSTDIR\pthreadGC2.dll"
149
Delete "$INSTDIR\uninst.exe"
151
Delete "$SMPROGRAMS\3Depict\Uninstall.lnk"
152
Delete "$SMPROGRAMS\3Depict\Website.lnk"
153
Delete "$DESKTOP\3Depict.lnk"
154
Delete "$SMPROGRAMS\3Depict\3Depict.lnk"
155
RMDir "$SMPROGRAMS\3Depict"
157
RMDir "$INSTDIR\textures"
160
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
161
DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
b'\\ No newline at end of file'