author | Claus Gittinger <cg@exept.de> |
Sat, 10 Feb 2007 18:36:55 +0100 | |
changeset 794 | 1725d4138418 |
parent 777 | a97131afa60a |
child 806 | 1ef29a62943f |
permissions | -rw-r--r-- |
739 | 1 |
; $Header$ |
2 |
; Script generated by ProjectDefinition. |
|
3 |
||
747
1e968f06ea86
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
739
diff
changeset
|
4 |
!define PRODUCT_NAME "Smalltalk/X" |
794
1725d4138418
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
777
diff
changeset
|
5 |
!define PRODUCT_VERSION "5.3.4.1" |
739 | 6 |
!define PRODUCT_PUBLISHER "eXept Software AG" |
7 |
!define PRODUCT_WEB_SITE "http://www.expecco.de" |
|
8 |
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" |
|
9 |
!define PRODUCT_UNINST_ROOT_KEY "HKLM" |
|
10 |
||
11 |
!define STX_ROOT "..\..\.." |
|
12 |
||
13 |
SetCompressor lzma |
|
14 |
||
15 |
||
16 |
; MUI 1.67 compatible ------ |
|
17 |
!include "MUI.nsh" |
|
18 |
||
19 |
; MUI Settings |
|
20 |
||
21 |
!define MUI_ABORTWARNING |
|
22 |
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico" |
|
747
1e968f06ea86
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
739
diff
changeset
|
23 |
;; !define MUI_ICON "stx.ico" |
739 | 24 |
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico" |
747
1e968f06ea86
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
739
diff
changeset
|
25 |
;; !define MUI_UNICON "stx.ico" |
739 | 26 |
|
27 |
; Language Selection Dialog Settings |
|
28 |
!define MUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}" |
|
29 |
!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}" |
|
30 |
!define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language" |
|
31 |
||
32 |
; Welcome page |
|
33 |
!insertmacro MUI_PAGE_WELCOME |
|
34 |
; License page |
|
35 |
; !define MUI_LICENSEPAGE_CHECKBOX |
|
36 |
||
37 |
||
38 |
!insertmacro MUI_PAGE_COMPONENTS |
|
39 |
; Directory page |
|
40 |
!insertmacro MUI_PAGE_DIRECTORY |
|
41 |
; Instfiles page |
|
42 |
!insertmacro MUI_PAGE_INSTFILES |
|
43 |
; Finish page |
|
44 |
!insertmacro MUI_PAGE_FINISH |
|
45 |
||
46 |
; Uninstaller pages |
|
47 |
!insertmacro MUI_UNPAGE_INSTFILES |
|
48 |
||
49 |
; Language files |
|
50 |
!insertmacro MUI_LANGUAGE "English" |
|
51 |
!insertmacro MUI_LANGUAGE "German" |
|
52 |
||
53 |
; MUI end ------ |
|
54 |
||
55 |
||
56 |
||
57 |
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}" |
|
58 |
VIProductVersion "${PRODUCT_VERSION}.0" |
|
59 |
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "${PRODUCT_NAME}" |
|
60 |
VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "${PRODUCT_PUBLISHER}" |
|
794
1725d4138418
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
777
diff
changeset
|
61 |
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "5.3.1.5" |
739 | 62 |
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "${PRODUCT_NAME} Installer" |
63 |
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductVersion" "${PRODUCT_VERSION}" |
|
794
1725d4138418
automatically generated by browser
Claus Gittinger <cg@exept.de>
parents:
777
diff
changeset
|
64 |
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "Copyright Claus Gittinger 1988-2007\nCopyright eXept Software AG 1998-2007" |
739 | 65 |
|
66 |
||
747
1e968f06ea86
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
739
diff
changeset
|
67 |
OutFile "Smalltalk/XSetup.exe" |
739 | 68 |
InstallDir "$PROGRAMFILES\stx" |
69 |
ShowInstDetails show |
|
70 |
ShowUnInstDetails show |
|
71 |
||
72 |
Function .onInit |
|
73 |
!insertmacro MUI_LANGDLL_DISPLAY |
|
74 |
FunctionEnd |
|
75 |
||
76 |
InstType Full |
|
77 |
InstType Partial |
|
78 |
||
79 |
Section "Programme" Section1 |
|
80 |
SectionIn 1 2 |
|
81 |
SetOutPath "$INSTDIR\bin" |
|
82 |
SetOverwrite ifnewer |
|
83 |
File "*.dll" |
|
747
1e968f06ea86
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
739
diff
changeset
|
84 |
File "stx.exe" |
739 | 85 |
File "symbols.stc" |
86 |
File "modules.stx" |
|
87 |
File /r "resources" |
|
88 |
File "keyboard.rc" |
|
89 |
||
90 |
; File "${STX_ROOT}\stx\projects\smalltalk\patches" |
|
91 |
; File /r "${STX_ROOT}\stx\projects\smalltalk\include" |
|
92 |
; File /r "${STX_ROOT}\stx\*.rs" |
|
747
1e968f06ea86
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
739
diff
changeset
|
93 |
; File /r "${STX_ROOT}\stx\stx\*.rs" |
739 | 94 |
; File /x CVS "${STX_ROOT}\stx\libview\styles\*" |
95 |
||
96 |
||
747
1e968f06ea86
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
739
diff
changeset
|
97 |
WriteRegStr HKCR "Stx.Smalltalk/X.1" "" "Smalltalk/X File" |
1e968f06ea86
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
739
diff
changeset
|
98 |
WriteRegStr HKCR "Stx.Smalltalk/X.1\DefaultIcon" "" '$INSTDIR\bin\stx.exe,0' |
1e968f06ea86
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
739
diff
changeset
|
99 |
WriteRegStr HKCR "Stx.Smalltalk/X.1\Shell\open" "" $(appOpen) |
1e968f06ea86
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
739
diff
changeset
|
100 |
WriteRegStr HKCR "Stx.Smalltalk/X.1\Shell\open\command" "" '"$INSTDIR\bin\stx.exe" -- ""' |
739 | 101 |
SectionEnd |
102 |
||
747
1e968f06ea86
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
739
diff
changeset
|
103 |
;; Section "Online-Documentation for Smalltalk/X" Section2 |
739 | 104 |
;; SectionIn 1 |
105 |
;; SetOutPath "$INSTDIR\doc" |
|
106 |
;; SetOverwrite ifnewer |
|
747
1e968f06ea86
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
739
diff
changeset
|
107 |
;; File /r /x CVS "${STX_ROOT}\stx\stx\doc\*" |
739 | 108 |
;; SectionEnd |
109 |
||
747
1e968f06ea86
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
739
diff
changeset
|
110 |
;; Section "Smalltalk/X Libraries and Demos" Section3 |
739 | 111 |
;; SectionIn 1 |
112 |
;; SetOutPath "$INSTDIR\lib" |
|
113 |
;; SetOverwrite ifnewer |
|
747
1e968f06ea86
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
739
diff
changeset
|
114 |
;; ; File /r /x CVS "${STX_ROOT}\stx\stx\examples\*" |
739 | 115 |
;; SectionEnd |
116 |
;; |
|
747
1e968f06ea86
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
739
diff
changeset
|
117 |
;; Section "Smalltalk/X Reports and Printing" Section4 |
739 | 118 |
;; SectionIn 1 |
119 |
;; SetOutPath "$INSTDIR\reportGenerator" |
|
120 |
;; SetOverwrite ifnewer |
|
121 |
;; ; File /r /x CVS "..\reportGenerator\java" "..\reportGenerator\rules" "..\reportGenerator\*.xml" "..\reportGenerator\*.xslt" "..\reportGenerator\CloseApp.exe" "..\reportGenerator\eXpecco.jpg" |
|
122 |
;; SectionEnd |
|
123 |
||
124 |
Section -AdditionalIcons |
|
125 |
SetOutPath "$INSTDIR\bin" |
|
126 |
WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}" |
|
127 |
CreateDirectory "$SMPROGRAMS\${PRODUCT_NAME}" |
|
747
1e968f06ea86
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
739
diff
changeset
|
128 |
CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\stx.lnk" "$INSTDIR\bin\stx" |
1e968f06ea86
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
739
diff
changeset
|
129 |
CreateShortCut "$DESKTOP\stx.lnk" "$INSTDIR\bin\stx" |
739 | 130 |
CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url" |
131 |
CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\Uninstall.lnk" "$INSTDIR\uninst.exe" |
|
132 |
SectionEnd |
|
133 |
||
134 |
Section -Post |
|
135 |
WriteUninstaller "$INSTDIR\uninst.exe" |
|
136 |
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)" |
|
137 |
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe" |
|
138 |
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}" |
|
139 |
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}" |
|
140 |
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}" |
|
141 |
SectionEnd |
|
142 |
||
747
1e968f06ea86
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
739
diff
changeset
|
143 |
LangString appOpen ${LANG_GERMAN} "Mit Smalltalk/X öffnen" |
1e968f06ea86
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
739
diff
changeset
|
144 |
LangString appOpen ${LANG_ENGLISH} "Open with Smalltalk/X" |
739 | 145 |
|
747
1e968f06ea86
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
739
diff
changeset
|
146 |
LangString DESC_Section1 ${LANG_ENGLISH} "Program components of Smalltalk/X" |
1e968f06ea86
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
739
diff
changeset
|
147 |
LangString DESC_Section1 ${LANG_GERMAN} "Alle Programmkomponenten von Smalltalk/X" |
1e968f06ea86
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
739
diff
changeset
|
148 |
;; LangString DESC_Section2 ${LANG_ENGLISH} "Online-Documentation of Smalltalk/X" |
1e968f06ea86
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
739
diff
changeset
|
149 |
;; LangString DESC_Section2 ${LANG_GERMAN} "Online-Dokumentation zu Smalltalk/X" |
739 | 150 |
;; LangString DESC_Section3 ${LANG_ENGLISH} "Libraries and Demo Projects" |
151 |
;; LangString DESC_Section3 ${LANG_GERMAN} "Bibliotheken und Beispielprojekte" |
|
152 |
;; LangString DESC_Section4 ${LANG_ENGLISH} "Logfile Printing and Report Generation" |
|
153 |
;; LangString DESC_Section4 ${LANG_GERMAN} "Drucken und Report-Generierung aus Log-Dateien" |
|
154 |
||
155 |
||
156 |
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN |
|
157 |
!insertmacro MUI_DESCRIPTION_TEXT ${Section1} $(DESC_Section1) |
|
158 |
;; !insertmacro MUI_DESCRIPTION_TEXT ${Section2} $(DESC_Section2) |
|
159 |
;; !insertmacro MUI_DESCRIPTION_TEXT ${Section3} $(DESC_Section3) |
|
160 |
;; !insertmacro MUI_DESCRIPTION_TEXT ${Section4} $(DESC_Section4) |
|
161 |
!insertmacro MUI_FUNCTION_DESCRIPTION_END |
|
162 |
||
163 |
||
164 |
||
165 |
Function un.onUninstSuccess |
|
166 |
HideWindow |
|
747
1e968f06ea86
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
739
diff
changeset
|
167 |
MessageBox MB_ICONINFORMATION|MB_OK "Smalltalk/X wurde erfolgreich deinstalliert" |
739 | 168 |
FunctionEnd |
169 |
||
170 |
Function un.onInit |
|
171 |
!insertmacro MUI_UNGETLANGUAGE |
|
747
1e968f06ea86
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
739
diff
changeset
|
172 |
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Möchten Sie Smalltalk/X und alle seine Komponenten deinstallieren?" IDYES +2 |
739 | 173 |
Abort |
174 |
FunctionEnd |
|
175 |
||
176 |
Section Uninstall |
|
177 |
Delete "$INSTDIR\${PRODUCT_NAME}.url" |
|
178 |
Delete "$INSTDIR\uninst.exe" |
|
179 |
Delete "$INSTDIR\*" |
|
180 |
||
181 |
Delete "$SMPROGRAMS\${PRODUCT_NAME}\Uninstall.lnk" |
|
182 |
Delete "$SMPROGRAMS\${PRODUCT_NAME}\Website.lnk" |
|
747
1e968f06ea86
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
739
diff
changeset
|
183 |
Delete "$SMPROGRAMS\${PRODUCT_NAME}\stx.lnk" |
1e968f06ea86
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
739
diff
changeset
|
184 |
Delete "$DESKTOP\stx.lnk" |
739 | 185 |
|
186 |
RMDir "$SMPROGRAMS\${PRODUCT_NAME}" |
|
187 |
RMDir /r "$INSTDIR" |
|
188 |
||
189 |
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" |
|
747
1e968f06ea86
automatically generated by browser
Stefan Vogel <sv@exept.de>
parents:
739
diff
changeset
|
190 |
DeleteRegKey HKCR "Stx.Smalltalk/X.1" |
739 | 191 |
|
192 |
||
193 |
SetAutoClose true |
|
194 |
SectionEnd |