initial checkin
authorsr
Tue, 10 Oct 2017 14:44:37 +0200
changeset 363a76df1b2fc2f
parent 362 b2396cd82fbc
child 364 25c699147821
initial checkin
quickSelfTest/quickSelfTest.nsi
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/quickSelfTest/quickSelfTest.nsi	Tue Oct 10 14:44:37 2017 +0200
     1.3 @@ -0,0 +1,213 @@
     1.4 +; $Header$
     1.5 +; Script generated by ProjectDefinition.
     1.6 +
     1.7 +!define PRODUCT_NAME "Smalltalk/X"
     1.8 +!define PRODUCT_FILENAME "Smalltalk_X"
     1.9 +!define PRODUCT_VERSION "7.1.0.0"
    1.10 +!define PRODUCT_PUBLISHER "eXept Software AG"
    1.11 +!define PRODUCT_WEB_SITE "http://www.exept.de"
    1.12 +!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_FILENAME}"
    1.13 +!define PRODUCT_UNINST_ROOT_KEY "HKLM"
    1.14 +
    1.15 +;
    1.16 +; SETUP_NAME can come from makefile as either setup or setup64
    1.17 +;
    1.18 +!if "${SETUP_NAME}" == ""
    1.19 +SETUP_NAME="Smalltalk/XSetup"
    1.20 +!endif
    1.21 +
    1.22 +!define STX_ROOT "..\..\..\.."
    1.23 +
    1.24 +SetCompressor /solid lzma
    1.25 +
    1.26 +!include "MUI2.nsh"
    1.27 +!include "x64.nsh"
    1.28 +
    1.29 +; MUI Settings
    1.30 +
    1.31 +!define MUI_WELCOMEPAGE_TITLE_3LINES
    1.32 +!define MUI_ABORTWARNING
    1.33 +!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
    1.34 +;; !define MUI_ICON "nil.ico"
    1.35 +!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
    1.36 +;; !define MUI_UNICON "nil.ico"
    1.37 +
    1.38 +; Language Selection Dialog Settings
    1.39 +!define MUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
    1.40 +!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
    1.41 +!define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language"
    1.42 +
    1.43 +; Welcome page
    1.44 +!insertmacro MUI_PAGE_WELCOME
    1.45 +; License page
    1.46 +; !define MUI_LICENSEPAGE_CHECKBOX
    1.47 +
    1.48 +
    1.49 +!insertmacro MUI_PAGE_COMPONENTS
    1.50 +; Directory page
    1.51 +!insertmacro MUI_PAGE_DIRECTORY
    1.52 +; Instfiles page
    1.53 +!insertmacro MUI_PAGE_INSTFILES
    1.54 +; Finish page
    1.55 +!insertmacro MUI_PAGE_FINISH
    1.56 +
    1.57 +; Uninstaller pages
    1.58 +!insertmacro MUI_UNPAGE_INSTFILES
    1.59 +
    1.60 +; Language files
    1.61 +!insertmacro MUI_LANGUAGE "English"
    1.62 +!insertmacro MUI_LANGUAGE "German"
    1.63 +
    1.64 +; MUI end ------
    1.65 +
    1.66 +
    1.67 +
    1.68 +Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
    1.69 +VIProductVersion "${PRODUCT_VERSION}.0"
    1.70 +VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "${PRODUCT_NAME}"
    1.71 +VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "${PRODUCT_PUBLISHER}"
    1.72 +VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "7.1.0.1"
    1.73 +VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "${PRODUCT_NAME} Installer"
    1.74 +VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductVersion" "${PRODUCT_VERSION}"
    1.75 +VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "Copyright Claus Gittinger 2017\nCopyright eXept Software AG 2017"
    1.76 +
    1.77 +
    1.78 +OutFile "${SETUP_NAME}.exe"
    1.79 +InstallDir "$PROGRAMFILES\quickSelfTest"
    1.80 +ShowInstDetails show
    1.81 +ShowUnInstDetails show
    1.82 +
    1.83 +Function .onInit
    1.84 +  !insertmacro MUI_LANGDLL_DISPLAY
    1.85 +FunctionEnd
    1.86 +
    1.87 +InstType Full
    1.88 +InstType Partial
    1.89 +
    1.90 +Section "Programme" Section1
    1.91 +  SectionIn 1 2
    1.92 +  SetOutPath "$INSTDIR\bin"
    1.93 +  SetOverwrite ifnewer
    1.94 +  File  "quickSelfTest.com"
    1.95 +  File "*.dll"
    1.96 +  File "symbols.stc"
    1.97 +  File "*.stx"
    1.98 +  File "*.rc"
    1.99 +  File /r /x CVS /x ".*" resources
   1.100 +
   1.101 +
   1.102 +
   1.103 +
   1.104 +
   1.105 +  WriteRegStr HKCR "Stx.Smalltalk_X.1" "" "Smalltalk_X File"
   1.106 +  WriteRegStr HKCR "Stx.Smalltalk_X.1\DefaultIcon" "" '$INSTDIR\bin\quickSelfTest.exe,0'
   1.107 +  WriteRegStr HKCR "Stx.Smalltalk_X.1\Shell\open" "" $(appOpen)
   1.108 +  WriteRegStr HKCR "Stx.Smalltalk_X.1\Shell\open\command" "" '"$INSTDIR\bin\quickSelfTest.exe" -- "%1"'
   1.109 +SectionEnd
   1.110 +
   1.111 +;; Section "Online-Documentation for Smalltalk/X" Section2
   1.112 +;;   SectionIn 1
   1.113 +;;   SetOutPath "$INSTDIR\doc"
   1.114 +;;   SetOverwrite ifnewer
   1.115 +;;   File /r /x CVS "${STX_ROOT}\stx\quickSelfTest\doc\*"
   1.116 +;; SectionEnd
   1.117 +
   1.118 +;; Section "Smalltalk/X Libraries and Demos" Section3
   1.119 +;;   SectionIn 1
   1.120 +;;   SetOutPath "$INSTDIR\lib"
   1.121 +;;   SetOverwrite ifnewer
   1.122 +;; ;   File /r /x CVS "${STX_ROOT}\stx\quickSelfTest\examples\*"
   1.123 +;; SectionEnd
   1.124 +;; 
   1.125 +;; Section "Smalltalk/X Reports and Printing" Section4
   1.126 +;;   SectionIn 1
   1.127 +;;   SetOutPath "$INSTDIR\reportGenerator"
   1.128 +;;   SetOverwrite ifnewer
   1.129 +;; ;  File /r /x CVS "..\reportGenerator\java" "..\reportGenerator\rules" "..\reportGenerator\*.xml" "..\reportGenerator\*.xslt" "..\reportGenerator\CloseApp.exe" "..\reportGenerator\expecco.jpg"
   1.130 +;; SectionEnd
   1.131 +
   1.132 +
   1.133 +
   1.134 +
   1.135 +
   1.136 +
   1.137 +
   1.138 +
   1.139 +Section -AdditionalIcons
   1.140 +  SetOutPath "$INSTDIR\bin"
   1.141 +  WriteIniStr "$INSTDIR\${PRODUCT_FILENAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
   1.142 +  CreateDirectory "$SMPROGRAMS\${PRODUCT_FILENAME}"
   1.143 +  CreateShortCut "$SMPROGRAMS\${PRODUCT_FILENAME}\quickSelfTest.lnk" "$INSTDIR\bin\quickSelfTest.exe"
   1.144 +  CreateShortCut "$DESKTOP\quickSelfTest.lnk" "$INSTDIR\bin\quickSelfTest.exe"
   1.145 +  CreateShortCut "$SMPROGRAMS\${PRODUCT_FILENAME}\Website.lnk" "$INSTDIR\${PRODUCT_FILENAME}.url"
   1.146 +  CreateShortCut "$SMPROGRAMS\${PRODUCT_FILENAME}\Uninstall.lnk" "$INSTDIR\uninst.exe"
   1.147 +SectionEnd
   1.148 +
   1.149 +Section -Post
   1.150 +  WriteUninstaller "$INSTDIR\uninst.exe"
   1.151 +  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
   1.152 +  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
   1.153 +  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
   1.154 +  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
   1.155 +  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
   1.156 +SectionEnd
   1.157 +
   1.158 +LangString appOpen ${LANG_GERMAN}  "Mit Smalltalk/X öffnen"
   1.159 +LangString appOpen ${LANG_ENGLISH} "Open with Smalltalk/X"
   1.160 +
   1.161 +LangString DESC_Section1 ${LANG_ENGLISH} "Program components of Smalltalk/X"
   1.162 +LangString DESC_Section1 ${LANG_GERMAN}  "Alle Programmkomponenten von Smalltalk/X"
   1.163 +;; LangString DESC_Section2 ${LANG_ENGLISH} "Online-Documentation of Smalltalk/X"
   1.164 +;; LangString DESC_Section2 ${LANG_GERMAN}  "Online-Dokumentation zu Smalltalk/X"
   1.165 +;; LangString DESC_Section3 ${LANG_ENGLISH} "Libraries and Demo Projects"
   1.166 +;; LangString DESC_Section3 ${LANG_GERMAN}  "Bibliotheken und Beispielprojekte"
   1.167 +;; LangString DESC_Section4 ${LANG_ENGLISH} "Logfile Printing and Report Generation"
   1.168 +;; LangString DESC_Section4 ${LANG_GERMAN}  "Drucken und Report-Generierung aus Log-Dateien"
   1.169 +;; LangString DESC_Section3 ${LANG_ENGLISH} "Sources of ST/X (Base-System)"
   1.170 +;; LangString DESC_Section3 ${LANG_GERMAN}  "Quellcode von ST/X (Basis-System)"
   1.171 +;; LangString DESC_Section4 ${LANG_ENGLISH} "Sources of Smalltalk/X"
   1.172 +;; LangString DESC_Section4 ${LANG_GERMAN}  "Quellcode von Smalltalk/X"
   1.173 +
   1.174 +
   1.175 +!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
   1.176 +  !insertmacro MUI_DESCRIPTION_TEXT ${Section1} $(DESC_Section1)
   1.177 +;;   !insertmacro MUI_DESCRIPTION_TEXT ${Section2} $(DESC_Section2)
   1.178 +;;  !insertmacro MUI_DESCRIPTION_TEXT ${Section3} $(DESC_Section3)
   1.179 +;;  !insertmacro MUI_DESCRIPTION_TEXT ${Section4} $(DESC_Section4)
   1.180 +
   1.181 +!insertmacro MUI_FUNCTION_DESCRIPTION_END
   1.182 +
   1.183 +
   1.184 +
   1.185 +Function un.onUninstSuccess
   1.186 +  HideWindow
   1.187 +  MessageBox MB_ICONINFORMATION|MB_OK "Smalltalk/X wurde erfolgreich deinstalliert"
   1.188 +FunctionEnd
   1.189 +
   1.190 +Function un.onInit
   1.191 +!insertmacro MUI_UNGETLANGUAGE
   1.192 +  MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Möchten Sie Smalltalk/X und alle seine Komponenten deinstallieren?" IDYES +2
   1.193 +  Abort
   1.194 +FunctionEnd
   1.195 +
   1.196 +Section Uninstall
   1.197 +  Delete "$INSTDIR\${PRODUCT_FILENAME}.url"
   1.198 +  Delete "$INSTDIR\uninst.exe"
   1.199 +
   1.200 +    Delete "$INSTDIR\*"
   1.201 +    RMDir /r "$INSTDIR"
   1.202 +
   1.203 +  Delete "$SMPROGRAMS\${PRODUCT_FILENAME}\Uninstall.lnk"
   1.204 +  Delete "$SMPROGRAMS\${PRODUCT_FILENAME}\Website.lnk"
   1.205 +  Delete "$SMPROGRAMS\${PRODUCT_FILENAME}\quickSelfTest.lnk"
   1.206 +  Delete "$DESKTOP\quickSelfTest.lnk"
   1.207 +
   1.208 +  RMDir "$SMPROGRAMS\${PRODUCT_FILENAME}"
   1.209 +
   1.210 +  DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
   1.211 +  DeleteRegKey HKCR "Stx.Smalltalk_X.1"
   1.212 +
   1.213 +
   1.214 +
   1.215 +  SetAutoClose true
   1.216 +SectionEnd