~ubuntu-branches/debian/sid/3depict/sid

« back to all changes in this revision

Viewing changes to packaging/windows-installer/windows-installer.nsi

  • Committer: Bazaar Package Importer
  • Author(s): D Haley
  • Date: 2010-09-22 20:09:24 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100922200924-bkyorwswrntnst4d
Tags: 0.0.2-1
* New upstream version
* Enable parallel build

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; Script generated by the HM NIS Edit Script Wizard.
 
2
 
 
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"
 
11
 
 
12
; MUI 1.67 compatible ------
 
13
!include "MUI.nsh"
 
14
 
 
15
; MUI Settings
 
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"
 
19
 
 
20
; Welcome page
 
21
!insertmacro MUI_PAGE_WELCOME
 
22
; License page
 
23
!insertmacro MUI_PAGE_LICENSE "COPYING"
 
24
; Directory page
 
25
!insertmacro MUI_PAGE_DIRECTORY
 
26
; Instfiles page
 
27
!insertmacro MUI_PAGE_INSTFILES
 
28
; Finish page
 
29
!define MUI_FINISHPAGE_RUN "$INSTDIR\3Depict.exe"
 
30
!insertmacro MUI_PAGE_FINISH
 
31
 
 
32
; Uninstaller pages
 
33
!insertmacro MUI_UNPAGE_INSTFILES
 
34
 
 
35
; Language files
 
36
!insertmacro MUI_LANGUAGE "English"
 
37
 
 
38
; MUI end ------
 
39
 
 
40
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
 
41
OutFile "Setup.exe"
 
42
InstallDir "$PROGRAMFILES\3Depict"
 
43
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
 
44
ShowInstDetails show
 
45
ShowUnInstDetails show
 
46
 
 
47
Section "3Depict program" SEC01
 
48
  SetOutPath "$INSTDIR"
 
49
  SetOverwrite ifnewer
 
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"
 
70
  SetOverwrite try
 
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" 
 
85
SectionEnd
 
86
 
 
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"
 
91
SectionEnd
 
92
 
 
93
Section -Post
 
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}"
 
102
SectionEnd
 
103
 
 
104
 
 
105
Function un.onUninstSuccess
 
106
  HideWindow
 
107
  MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) was successfully removed from your computer."
 
108
FunctionEnd
 
109
 
 
110
Function un.onInit
 
111
  MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you sure you want to completely remove $(^Name) and all of its components?" IDYES +2
 
112
  Abort
 
113
FunctionEnd
 
114
 
 
115
Section Uninstall
 
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"
 
132
 
 
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"
 
148
  
 
149
  Delete "$INSTDIR\uninst.exe"  
 
150
 
 
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"
 
156
  
 
157
  RMDir "$INSTDIR\textures"
 
158
  RMDir "$INSTDIR"
 
159
 
 
160
  DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
 
161
  DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
 
162
  SetAutoClose true
 
163
SectionEnd
 
 
b'\\ No newline at end of file'