-
Notifications
You must be signed in to change notification settings - Fork 158
/
windowsinstaller.nsi
90 lines (75 loc) · 3.05 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
; Copyright 2008 Jason A. Donenfeld <[email protected]>
SetCompressor /SOLID /FINAL lzma
!define PRODUCT_NAME "Arora"
!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"
!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 nevershow
ShowUnInstDetails nevershow
Section "Main Components" SEC01
KillProcDLL::KillProc "arora.exe"
Sleep 100
SetOverwrite on
SetOutPath "$INSTDIR"
File "arora.exe"
File "C:\qt\4.4.0\bin\QtCore4.dll"
File "C:\qt\4.4.0\bin\QtGui4.dll"
File "C:\qt\4.4.0\bin\QtNetwork4.dll"
File "C:\qt\4.4.0\bin\QtWebKit4.dll"
File "C:\windows\system32\ssleay32.dll"
File "C:\windows\system32\libeay32.dll"
File "C:\windows\system32\msvcr71.dll"
SetOutPath "$INSTDIR\locale"
File "src\.qm\locale\*.qm"
SetOutPath "$INSTDIR\imageformats"
File "C:\qt\4.4.0\plugins\imageformats\qtiff4.dll"
File "C:\qt\4.4.0\plugins\imageformats\qsvg4.dll"
File "C:\qt\4.4.0\plugins\imageformats\qmng4.dll"
File "C:\qt\4.4.0\plugins\imageformats\qjpeg4.dll"
File "C:\qt\4.4.0\plugins\imageformats\qico4.dll"
File "C:\qt\4.4.0\plugins\imageformats\qgif4.dll"
SetOutPath "$INSTDIR\iconengines"
File "C:\qt\4.4.0\plugins\iconengines\qsvgicon4.dll"
SetOutPath "$INSTDIR\codecs"
File "C:\qt\4.4.0\plugins\codecs\qtwcodecs4.dll"
File "C:\qt\4.4.0\plugins\codecs\qkrcodecs4.dll"
File "C:\qt\4.4.0\plugins\codecs\qjpcodecs4.dll"
File "C:\qt\4.4.0\plugins\codecs\qcncodecs4.dll"
SectionEnd
Section -Icons
CreateShortCut "$SMPROGRAMS\Arora.lnk" "$INSTDIR\arora.exe"
SectionEnd
Section -UninstallInfo
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 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"