1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327
|
; NSIS Config (http://nsis.sf.net)
;
; Run it with
;
; .../makensis [-DWITH_SOURCES] [-DWITH_SQLITE_DLLS] this-file.nsi
;
; to create the installer sqliteodbc.exe
;
; If -DWITH_SOURCES is specified, source code is included.
; If -DWITH_SQLITE_DLLS is specified, separate SQLite DLLs
; are packaged which allows to exchange these independently
; of the ODBC drivers in the Win32 system folder.
; -------------------------------
; Start
BrandingText " "
!ifdef WITH_SEE
Name "SQLite ODBC Driver (SEE)"
!else
Name "SQLite ODBC Driver"
!endif
!ifdef WITH_SEE
!define PROD_NAME "SQLite ODBC Driver (SEE)"
!define PROD_NAME0 "SQLite ODBC Driver (SEE)"
!else
!define PROD_NAME "SQLite ODBC Driver"
!define PROD_NAME0 "SQLite ODBC Driver"
!endif
CRCCheck On
!include "MUI.nsh"
!include "Sections.nsh"
;--------------------------------
; General
OutFile "sqliteodbc.exe"
;--------------------------------
; Folder selection page
InstallDir "$PROGRAMFILES\${PROD_NAME0}"
;--------------------------------
; Modern UI Configuration
!define MUI_ICON "sqliteodbc.ico"
!define MUI_UNICON "sqliteodbc.ico"
!define MUI_WELCOMEPAGE_TITLE "SQLite ODBC Installation"
!define MUI_WELCOMEPAGE_TEXT "This program will guide you through the \
installation of SQLite ODBC Driver.\r\n\r\n$_CLICK"
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "license.txt"
!insertmacro MUI_PAGE_DIRECTORY
!ifndef WITHOUT_TCCEXT
!insertmacro MUI_PAGE_COMPONENTS
!endif
!insertmacro MUI_PAGE_INSTFILES
!define MUI_FINISHPAGE_TITLE "SQLite ODBC Installation"
!define MUI_FINISHPAGE_TEXT "The installation of SQLite ODBC Driver is complete.\
\r\n\r\n$_CLICK"
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
;--------------------------------
; Language
!insertmacro MUI_LANGUAGE "English"
;--------------------------------
; Installer Sections
Section "-Main (required)" InstallationInfo
; Add files
SetOutPath "$INSTDIR"
!ifdef WITH_SEE
File "sqlite3odbc${WITH_SEE}.dll"
!else
File "sqlite3odbc.dll"
!endif
; unsupported non-WCHAR driver for SQLite3
!ifdef WITH_SEE
File "sqlite3odbc${WITH_SEE}nw.dll"
!else
File "sqlite3odbcnw.dll"
!endif
!ifndef WITHOUT_SQLITE3_EXE
File "sqlite3.exe"
!endif
File "inst.exe"
File "instq.exe"
File "uninst.exe"
File "uninstq.exe"
File "adddsn.exe"
File "remdsn.exe"
File "addsysdsn.exe"
File "remsysdsn.exe"
File "SQLiteODBCInstaller.exe"
; SQLite 3.4.*
; File "sqlite3_mod_fts1.dll"
; File "sqlite3_mod_fts2.dll"
; SQLite 3.5.*
File "sqlite3_mod_fts3.dll"
File "sqlite3_mod_blobtoxy.dll"
File "sqlite3_mod_impexp.dll"
; SQLite 3.6.*
File "sqlite3_mod_rtree.dll"
File "sqlite3_mod_extfunc.dll"
File "license.terms"
File "license.txt"
File "README"
File "readme.txt"
!ifdef WITH_SQLITE_DLLS
File "sqlite3.dll"
!endif
; Shortcuts
SetOutPath "$SMPROGRAMS\${PROD_NAME0}"
CreateShortCut "$SMPROGRAMS\${PROD_NAME0}\Re-install ODBC Drivers.lnk" \
"$INSTDIR\inst.exe"
CreateShortCut "$SMPROGRAMS\${PROD_NAME0}\Remove ODBC Drivers.lnk" \
"$INSTDIR\uninst.exe"
CreateShortCut "$SMPROGRAMS\${PROD_NAME0}\Uninstall.lnk" \
"$INSTDIR\uninstall.exe"
CreateShortCut "$SMPROGRAMS\${PROD_NAME0}\View README.lnk" \
"$INSTDIR\readme.txt"
SetOutPath "$SMPROGRAMS\${PROD_NAME0}\Shells"
!ifndef WITHOUT_SQLITE3_EXE
CreateShortCut "$SMPROGRAMS\${PROD_NAME0}\Shells\SQLite 3.lnk" \
"$INSTDIR\sqlite3.exe"
!endif
; Write uninstall information to the registry
WriteRegStr HKLM \
"Software\Microsoft\Windows\CurrentVersion\Uninstall\${PROD_NAME0}" \
"DisplayName" "${PROD_NAME} (remove only)"
WriteRegStr HKLM \
"Software\Microsoft\Windows\CurrentVersion\Uninstall\${PROD_NAME0}" \
"UninstallString" "$INSTDIR\Uninstall.exe"
SetOutPath "$INSTDIR"
WriteUninstaller "$INSTDIR\Uninstall.exe"
ExecWait '"$INSTDIR\instq.exe"'
SectionEnd
!ifndef WITHOUT_SQLITE2
Section /o "SQLite 2 Drivers" Sqlite2Install
SetOutPath "$INSTDIR"
File "sqliteodbc.dll"
File "sqliteodbcu.dll"
File "sqlite.exe"
File "sqliteu.exe"
!ifdef WITH_SQLITE_DLLS
File "sqlite.dll"
File "sqliteu.dll"
!endif
CreateShortCut "$SMPROGRAMS\${PROD_NAME0}\Shells\SQLite 2.lnk" \
"$INSTDIR\sqlite.exe"
CreateShortCut "$SMPROGRAMS\${PROD_NAME0}\Shells\SQLite 2 (UTF-8).lnk" \
"$INSTDIR\sqliteu.exe"
ExecWait '"$INSTDIR\instq.exe"'
SectionEnd
!endif
!ifdef WITH_SOURCES
Section /o "Source Code" SourceInstall
SetOutPath "$INSTDIR\source"
File "source\README"
File "source\VERSION"
File "source\ChangeLog"
File "source\license.terms"
File "source\header.html"
File "source\footer.html"
File "source\stylesheet.css"
File "source\doxygen.conf"
File "source\adddsn.c"
File "source\inst.c"
File "source\fixup.c"
File "source\mkopc.c"
File "source\mkopc3.c"
File "source\sqliteodbc.c"
File "source\sqliteodbc.h"
File "source\sqliteodbc.rc"
File "source\sqliteodbc.mak"
File "source\sqliteodbc.def"
File "source\sqliteodbcu.def"
File "source\sqliteodbc.spec"
File "source\sqliteodbc.spec.in"
File "source\sqlite3odbc.c"
File "source\sqlite3odbc.h"
File "source\sqlite3odbc.rc"
File "source\sqlite3odbc.mak"
File "source\sqlite3odbc.def"
File "source\sqlite.mak"
File "source\sqlite3.mak"
File "source\resource.h.in"
File "source\install-sh"
File "source\Makefile.in"
File "source\configure.in"
File "source\config.guess"
File "source\config.sub"
File "source\ltmain.sh"
File "source\libtool"
File "source\aclocal.m4"
File "source\configure"
File "source\sqliteodbcos2.rc"
File "source\sqliteodbcos2.def"
File "source\makefile.os2"
File "source\resourceos2.h"
File "source\README.OS2"
File "source\README.ic"
File "source\drvdsninst.sh"
File "source\drvdsnuninst.sh"
File "source\Makefile.mingw-cross"
File "source\mf-sqlite.mingw-cross"
File "source\mf-sqlite3.mingw-cross"
File "source\mf-sqlite3fts.mingw-cross"
File "source\mf-sqlite3rtree.mingw-cross"
File "source\mingw-cross-build.sh"
File "source\sqliteodbc.nsi"
File "source\SQLiteODBCInstaller.c"
File "source\blobtoxy.c"
File "source\blobtoxy.rc"
File "source\impexp.c"
File "source\sqlite.ico"
File "source\sqliteodbc.ico"
File "source\tcc-0.9.23.patch"
File "source\tcc-0.9.24.patch"
File "source\sqlite+tcc.c"
File "source\strict_typing.sql"
File "source\README.sqlite+tcc"
SetOutPath "$INSTDIR\source\missing"
File "source\missing/ini.h"
File "source\missing/log.h"
SetOutPath "$INSTDIR\source\tccex"
File "source\tccex\README.bench"
File "source\tccex\obench.c"
File "source\tccex\sbench.c"
File "source\tccex\sqlite.c"
File "source\tccex\sqlite3.c"
File "source\tccex\samplext.c"
SetOutPath "$INSTDIR\source\tccex\a10n"
File "source\tccex\a10n\README.txt"
SectionEnd
!endif
!ifndef WITHOUT_TCCEXT
Section /o "SQLite+TCC" TccInstall
SetOutPath "$INSTDIR\TCC"
File "README.sqlite+tcc"
File "sqlite+tcc.dll"
File "strict_typing.sql"
File "TCC\tcc.exe"
File "TCC\tiny_impdef.exe"
File "TCC\tiny_libmaker.exe"
File /r "TCC\doc"
File /r "TCC\include"
File /r "TCC\lib"
File /r "TCC\libtcc"
SetOutPath "$INSTDIR\TCC\samples"
File "tccex/samplext.c"
File "tccex/sqlite.c"
File "tccex/sqlite3.c"
File "tccex/obench.c"
File "tccex/sbench.c"
File "tccex/README.bench"
SetOutPath "$INSTDIR\TCC\samples\a10n"
File "sqlite3/sqlite3.c"
File "sqlite3/src/test_vfstrace.c"
; deprecated as of 3.5.1
; File "sqlite3/sqlite3internal.h"
File "tccex/a10n/README.txt"
SectionEnd
!endif
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!ifndef WITHOUT_SQLITE2
!insertmacro MUI_DESCRIPTION_TEXT ${Sqlite2Install} \
"Drivers and utilities for SQLite Version 2"
!endif
!ifdef WITH_SOURCES
!insertmacro MUI_DESCRIPTION_TEXT ${SourceInstall} \
"Source code"
!endif
!ifndef WITHOUT_TCCEXT
!insertmacro MUI_DESCRIPTION_TEXT ${TccInstall} \
"Experimental combination of SQLite and TinyCC"
!endif
!insertmacro MUI_FUNCTION_DESCRIPTION_END
;--------------------------------
; Uninstaller Section
Section "Uninstall"
ExecWait '"$INSTDIR\uninstq.exe"'
; Delete Files
RMDir /r "$INSTDIR\*"
RMDir /r "$INSTDIR\*.*"
; Remove the installation directory
RMDir /r "$INSTDIR"
; Remove start menu/program files subdirectory
RMDir /r "$SMPROGRAMS\${PROD_NAME0}"
; Delete Uninstaller And Unistall Registry Entries
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\${PROD_NAME0}"
DeleteRegKey HKEY_LOCAL_MACHINE \
"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\${PROD_NAME0}"
SectionEnd
;--------------------------------
; EOF
|