forked from user-none/arora
-
Notifications
You must be signed in to change notification settings - Fork 109
/
windowsinstaller.nsi
113 lines (94 loc) · 3.85 KB
/
windowsinstaller.nsi
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
; Copyright 2008 Jason A. Donenfeld <[email protected]>
SetCompressor /SOLID /FINAL lzma
!define PRODUCT_NAME "Arora"
!define /date PRODUCT_VERSION "0.11.0"
;!define /date PRODUCT_VERSION "Snapshot (%#m-%#d-%#Y)"
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\arora.exe"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
!define QTDIR "C:\Qt\qt-all-opensource-src-4.5.3"
!include "MUI.nsh"
!define MUI_ABORTWARNING
!define MUI_ICON ".\src\browser.ico"
!define MUI_UNICON ".\src\browser.ico"
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!define MUI_FINISHPAGE_RUN "$INSTDIR\arora.exe"
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "${PRODUCT_NAME} ${PRODUCT_VERSION} Installer.exe"
InstallDir "$PROGRAMFILES\${PRODUCT_NAME}"
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
ShowInstDetails show
ShowUnInstDetails show
Section "Main Components"
KillProcDLL::KillProc "arora.exe"
Sleep 100
SetOverwrite on
SetOutPath "$INSTDIR"
File "arora.exe"
File "tools\htmlToXbel\release\htmlToXBel.exe"
File "tools\cacheinfo\release\arora-cacheinfo.exe"
File "tools\placesimport\release\arora-placesimport.exe"
File "${QTDIR}\lib\QtCore4.dll"
File "${QTDIR}\lib\QtGui4.dll"
File "${QTDIR}\lib\QtNetwork4.dll"
File "${QTDIR}\lib\QtWebKit4.dll"
File "${QTDIR}\lib\QtScript4.dll"
File "${QTDIR}\lib\QtSql4.dll"
;File "${QTDIR}\lib\phonon4.dll"
File "C:\Qt\openssl-0.9.8j\out32dll\ssleay32.dll"
File "C:\Qt\openssl-0.9.8j\out32dll\libeay32.dll"
SetOutPath "$INSTDIR\locale"
File "src\.qm\locale\*.qm"
File "${QTDIR}\translations\qt*.qm"
SetOutPath "$INSTDIR\plugins\sqldrivers"
File "${QTDIR}\plugins\sqldrivers\qsqlite4.dll"
SetOutPath "$INSTDIR\imageformats"
File "${QTDIR}\plugins\imageformats\qtiff4.dll"
File "${QTDIR}\plugins\imageformats\qsvg4.dll"
File "${QTDIR}\plugins\imageformats\qmng4.dll"
File "${QTDIR}\plugins\imageformats\qjpeg4.dll"
File "${QTDIR}\plugins\imageformats\qico4.dll"
File "${QTDIR}\plugins\imageformats\qgif4.dll"
SetOutPath "$INSTDIR\iconengines"
File "${QTDIR}\plugins\iconengines\qsvgicon4.dll"
SetOutPath "$INSTDIR\codecs"
File "${QTDIR}\plugins\codecs\qtwcodecs4.dll"
File "${QTDIR}\plugins\codecs\qkrcodecs4.dll"
File "${QTDIR}\plugins\codecs\qjpcodecs4.dll"
File "${QTDIR}\plugins\codecs\qcncodecs4.dll"
SetOutPath "$INSTDIR\phonon_backend"
; File "${QTDIR}\plugins\phonon_backend\phonon_ds94.dll"
SectionEnd
Section Icons
CreateShortCut "$SMPROGRAMS\Arora.lnk" "$INSTDIR\arora.exe"
SectionEnd
Section Uninstaller
WriteUninstaller "$INSTDIR\uninst.exe"
WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\arora.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\arora.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
SectionEnd
Section MSVC
InitPluginsDir
SetOutPath $PLUGINSDIR
File "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\vcredist_x86\vcredist_x86.exe"
DetailPrint "Installing Visual C++ 2005 Libraries"
ExecWait '"$PLUGINSDIR\vcredist_x86.exe" /q:a /c:"msiexec /i vcredist.msi /quiet"'
SectionEnd
Section Uninstall
KillProcDLL::KillProc "arora.exe"
Sleep 100
Delete $SMPROGRAMS\Arora.lnk
RMDir /r "$INSTDIR"
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
SectionEnd
BrandingText "arora-browser.org"