~ubuntu-branches/ubuntu/maverick/wxwidgets2.8/maverick-proposed

« back to all changes in this revision

Viewing changes to wxPython/wx/tools/Editra/tests/nullsoft_installer_script.nsi

  • Committer: Bazaar Package Importer
  • Author(s): Devid Filoni
  • Date: 2008-06-30 22:02:17 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080630220217-vag3tkfp91t0453d
Tags: 2.8.8.0-0ubuntu1
* New upstream version, based on the upstream tarball
  wxPython-src-2.8.8.0.tar.bz2, remove upstream debian dir (LP: #244355).
* Add debian/watch file, LP: #242164.
* Edit get-orig-source target to provide a .orig.tar.gz with the same md5 for
  each .orig.tar.gz generated.
* debian/rules: remove get-orig-source from .PHONY target.
* debian/control.in: add python-wxtools in python-wxgtk=V=U Suggests field.
* Do not apply fix_from_upstream_svn_r52465 patch, not needed.
* Regenerate octave_oct, tcl_tk_tcl patches for the new version.
* Fix spelling-error-in-description lintian warning.
* Fix depends-on-obsolete-package lintian error.
* Fix executable-not-elf-or-script lintian warnings.
* Fix script-not-executable lintian warnings.
* Fix missing-dependency-on-libc lintian error.
* Fix dbg-package-missing-depends lintian warnings.
* Fix package-contains-empty-directory lintian warnings.
* Fix manpage-has-errors-from-man lintian warning.
* Fix image-file-in-usr-lib lintian warnings:
  - add editra_pixmaps patch
  - add xrced_bitmaps patch
* Fix unused-override lintian info.
* Fix malformed-override lintian errors.
* Fix extra-license-file lintian warnings.
* Install upstream wx.pth instead of generated file links (LP: #211553).
* Add editra.png, pyshell.png (encoded using uuencode) icons, LP: #236876:
  - debian/rules: use uudecode to decode .png icons.
* Add a new pyshell.xpm icon.
* Fix doc-base-file-references-missing-file lintian error.
* Fix doc-base-unknown-section lintian warning.
* Fix ruby-script-but-no-ruby-dep lintian errors.
* Fix wish-script-but-no-wish-dep lintian errors.
* Fix missing-dep-for-interpreter errors.
* Bump Standards-Version to 3.8.0.

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 "Editra"
5
 
!define PRODUCT_VERSION "0.0.80"
6
 
!define PRODUCT_PUBLISHER "Cody Precord"
7
 
!define PRODUCT_WEB_SITE "http://editra.org"
8
 
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\editra.exe"
9
 
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
10
 
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
11
 
 
12
 
SetCompressor lzma
13
 
 
14
 
; MUI 1.67 compatible ------
15
 
!include "MUI.nsh"
16
 
 
17
 
; MUI Settings
18
 
!define MUI_ABORTWARNING
19
 
!define MUI_ICON "pixmaps\editra.ico"
20
 
!define MUI_UNICON "pixmaps\editra.ico"
21
 
 
22
 
; Welcome page
23
 
!insertmacro MUI_PAGE_WELCOME
24
 
; License page
25
 
!insertmacro MUI_PAGE_LICENSE "COPYING.txt"
26
 
; Directory page
27
 
!insertmacro MUI_PAGE_DIRECTORY
28
 
; Instfiles page
29
 
!insertmacro MUI_PAGE_INSTFILES
30
 
; Finish page
31
 
!define MUI_FINISHPAGE_RUN "$INSTDIR\editra.exe"
32
 
!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\CHANGELOG.txt"
33
 
!insertmacro MUI_PAGE_FINISH
34
 
 
35
 
; Uninstaller pages
36
 
!insertmacro MUI_UNPAGE_INSTFILES
37
 
 
38
 
; Language files
39
 
!insertmacro MUI_LANGUAGE "English"
40
 
 
41
 
; Reserve files
42
 
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
43
 
 
44
 
; MUI end ------
45
 
 
46
 
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
47
 
OutFile "editra.win32.0.0.80.exe"
48
 
InstallDir "$PROGRAMFILES\Editra"
49
 
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
50
 
ShowInstDetails show
51
 
ShowUnInstDetails show
52
 
 
53
 
Section "MainSection" SEC01
54
 
  SetOutPath "$INSTDIR\pixmaps"
55
 
  SetOverwrite try
56
 
  File "pixmaps\editra.ico"
57
 
  File "pixmaps\editra.png"
58
 
  File "pixmaps\editra.icns"
59
 
  SetOutPath "$INSTDIR\pixmaps\mime"
60
 
  File "pixmaps\mime\c.png"
61
 
  File "pixmaps\mime\cpp.png"
62
 
  File "pixmaps\mime\css.png"
63
 
  File "pixmaps\mime\header.png"
64
 
  File "pixmaps\mime\html.png"
65
 
  File "pixmaps\mime\java.png"
66
 
  File "pixmaps\mime\makefile.png"
67
 
  File "pixmaps\mime\perl.png"
68
 
  File "pixmaps\mime\php.png"
69
 
  File "pixmaps\mime\python.png"
70
 
  File "pixmaps\mime\ruby.png"
71
 
  File "pixmaps\mime\shell.png"
72
 
  File "pixmaps\mime\tex.png"
73
 
  File "pixmaps\mime\text.png"
74
 
  SetOutPath "$INSTDIR\language"
75
 
  SetOutPath "$INSTDIR\language\english"
76
 
  File "language\english\ed_lang.py"
77
 
  SetOutPath "$INSTDIR\language\japanese"
78
 
  File "language\japanese\ed_lang.py"
79
 
  SetOutPath "$INSTDIR\profiles"
80
 
  File "profiles\.loader"
81
 
  File "profiles\default.pp"
82
 
  File "profiles\default.pp.sample"
83
 
  SetOutPath "$INSTDIR\templates"
84
 
  File "templates\py"
85
 
  SetOutPath "$INSTDIR"
86
 
  SetOverwrite ifnewer
87
 
  File "w9xpopen.exe"
88
 
  File "README.txt"
89
 
  File "python24.dll"
90
 
  File "editra.exe"
91
 
  CreateDirectory "$SMPROGRAMS\Editra"
92
 
  CreateShortCut "$SMPROGRAMS\Editra\Editra.lnk" "$INSTDIR\editra.exe"
93
 
  CreateShortCut "$DESKTOP\Editra.lnk" "$INSTDIR\editra.exe"
94
 
  File "MSVCR71.dll"
95
 
  File "library.zip"
96
 
  File "COPYING.txt"
97
 
  File "CHANGELOG.txt"
98
 
SectionEnd
99
 
 
100
 
Section -AdditionalIcons
101
 
  WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
102
 
  CreateShortCut "$SMPROGRAMS\Editra\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
103
 
  CreateShortCut "$SMPROGRAMS\Editra\Uninstall.lnk" "$INSTDIR\uninst.exe"
104
 
SectionEnd
105
 
 
106
 
Section -Post
107
 
  WriteUninstaller "$INSTDIR\uninst.exe"
108
 
  WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\w9xpopen.exe"
109
 
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
110
 
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
111
 
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\w9xpopen.exe"
112
 
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
113
 
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
114
 
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
115
 
SectionEnd
116
 
 
117
 
 
118
 
Function un.onUninstSuccess
119
 
  HideWindow
120
 
  MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) was successfully removed from your computer."
121
 
FunctionEnd
122
 
 
123
 
Function un.onInit
124
 
  MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you sure you want to completely remove $(^Name) and all of its components?" IDYES +2
125
 
  Abort
126
 
FunctionEnd
127
 
 
128
 
Section Uninstall
129
 
  Delete "$INSTDIR\${PRODUCT_NAME}.url"
130
 
  Delete "$INSTDIR\uninst.exe"
131
 
  Delete "$INSTDIR\CHANGELOG.txt"
132
 
  Delete "$INSTDIR\COPYING.txt"
133
 
  Delete "$INSTDIR\library.zip"
134
 
  Delete "$INSTDIR\MSVCR71.dll"
135
 
  Delete "$INSTDIR\editra.exe"
136
 
  Delete "$INSTDIR\python24.dll"
137
 
  Delete "$INSTDIR\README.txt"
138
 
  Delete "$INSTDIR\w9xpopen.exe"
139
 
  Delete "$INSTDIR\templates\py"
140
 
  Delete "$INSTDIR\profiles\default.pp.sample"
141
 
  Delete "$INSTDIR\profiles\default.pp"
142
 
  Delete "$INSTDIR\profiles\.loader"
143
 
  Delete "$INSTDIR\pixmaps\editra.png"
144
 
  Delete "$INSTDIR\pixmaps\editra.ico"
145
 
  Delete "$INSTDIR\pixmaps\editra.icns"
146
 
  Delete "$INSTDIR\pixmaps\mime\c.png"
147
 
  Delete "$INSTDIR\pixmaps\mime\cpp.png"
148
 
  Delete "$INSTDIR\pixmaps\mime\css.png"
149
 
  Delete "$INSTDIR\pixmaps\mime\header.png"
150
 
  Delete "$INSTDIR\pixmaps\mime\html.png"
151
 
  Delete "$INSTDIR\pixmaps\mime\java.png"
152
 
  Delete "$INSTDIR\pixmaps\mime\makefile.png"
153
 
  Delete "$INSTDIR\pixmaps\mime\perl.png"
154
 
  Delete "$INSTDIR\pixmaps\mime\php.png"
155
 
  Delete "$INSTDIR\pixmaps\mime\python.png"
156
 
  Delete "$INSTDIR\pixmaps\mime\ruby.png"
157
 
  Delete "$INSTDIR\pixmaps\mime\shell.png"
158
 
  Delete "$INSTDIR\pixmaps\mime\tex.png"
159
 
  Delete "$INSTDIR\pixmaps\mime\text.png"
160
 
 
161
 
  Delete "$SMPROGRAMS\Editra\Uninstall.lnk"
162
 
  Delete "$SMPROGRAMS\Editra\Website.lnk"
163
 
  Delete "$DESKTOP\Editra.lnk"
164
 
  Delete "$SMPROGRAMS\Editra\Editra.lnk"
165
 
 
166
 
  RMDir "$SMPROGRAMS\Editra"
167
 
  RMDir "$INSTDIR\templates"
168
 
  RMDir "$INSTDIR\language\english"
169
 
  RMDir "$INSTDIR\language\japanese"
170
 
  RMDir "$INSTDIR\language"
171
 
  RMDir "$INSTDIR\profiles"
172
 
  RMDir "$INSTDIR\pixmaps\mime"
173
 
  RMDir "$INSTDIR\pixmaps"
174
 
  RMDir "$INSTDIR"
175
 
 
176
 
  DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
177
 
  DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
178
 
  SetAutoClose true
179
 
SectionEnd
180