blob: dc5096d059a618b07dee78139839aec6c52d79f3 (
plain)
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
|
SetCompressor /SOLID lzma
!include "FileAssociation.nsh"
!define /file VERSION ..\version.txt
Name "Fresh Memory ${VERSION}"
OutFile "freshmemory-${VERSION}-setup.exe"
Icon ..\images\mainicon.ico
Page license
Page components
Page directory
Page instfiles
UninstPage uninstConfirm
UninstPage instfiles
LicenseData ..\COPYING
InstType "Normal"
InstallDir $PROGRAMFILES\Freshmemory
Section "Fresh Memory (required)"
SectionIn RO
SetOutPath $INSTDIR
File ..\freshmemory.exe
WriteUninstaller $INSTDIR\Uninstall.exe
File /oname=README.txt ..\README
File /oname=ChangeLog.txt ..\ChangeLog
File /oname=AUTHORS.txt ..\AUTHORS
SetOutPath "$INSTDIR\tr"
File ..\tr\*.qm
SetShellVarContext all
CreateDirectory "$SMPROGRAMS\Fresh Memory"
Delete "$SMPROGRAMS\Fresh Memory\Fresh Memory*.lnk"
CreateShortCut "$SMPROGRAMS\Fresh Memory\Fresh Memory ${VERSION}.lnk" "$INSTDIR\freshmemory.exe"
CreateShortCut "$SMPROGRAMS\Fresh Memory\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Fresh Memory" "DisplayName" "Fresh Memory ${VERSION}"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Fresh Memory" "UninstallString" "$INSTDIR\Uninstall.exe"
${registerExtension} "$PROGRAMFILES\Freshmemory\freshmemory.exe" ".fmd" "Freshmemory dictionary"
SectionEnd
Section "Qt libraries"
SectionIn 1
SetOutPath "$INSTDIR"
File qt-win\*.dll
SetOutPath "$INSTDIR\imageformats"
File qt-win\imageformats\*.dll
SetOutPath "$INSTDIR\platforms"
File qt-win\platforms\*.dll
SectionEnd
Section "Uninstall"
${unregisterExtension} ".fmd" "Freshmemory dictionary"
RMDir /r $INSTDIR
SetShellVarContext all
RMDir /r $APPDATA\freshmemory
SetShellVarContext current
RMDir /r $APPDATA\freshmemory
SetShellVarContext all
Delete "$SMPROGRAMS\Fresh Memory\*"
RMDir "$SMPROGRAMS\Fresh Memory"
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Fresh Memory"
SectionEnd
|