blob: 8889e484e70916b9c6dafd6e745bd0feb1887ae3 (
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
; DevIL.nsi
;--------------------------------
;Include Modern UI
!include "MUI2.nsh"
;--------------------------------
;General
Name "Developer's Image Library 1.7.2 Run-time Files"
; The file to write
OutFile "DevIL-1.7.2.exe"
; The default installation directory
InstallDir "$PROGRAMFILES\Developer's Image Library"
; Request application privileges for Windows Vista
RequestExecutionLevel admin
;--------------------------------
;Interface Settings
!define MUI_ABORTWARNING
;--------------------------------
;Pages
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
;--------------------------------
;Languages
!insertmacro MUI_LANGUAGE "English"
; The stuff to install
Section "Developer's Image Library (required)"
; Set output path to the installation directory.
SetOutPath $SYSDIR
; Put files in the System folder
File "..\devil\lib\DevIL.dll"
File "..\devil\lib\ILU.dll"
File "..\devil\lib\ILUT.dll"
; Set output path to the installation directory.
SetOutPath $INSTDIR
; Write the installation path into the registry
WriteRegStr HKLM SOFTWARE\DevIL "Install_Dir" "$INSTDIR"
; Write the uninstall keys for Windows
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\DevIL" "DisplayName" "Developer's Image Library"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\DevIL" "UninstallString" '"$INSTDIR\uninstall.exe"'
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\DevIL" "NoModify" 1
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\DevIL" "NoRepair" 1
WriteUninstaller "uninstall.exe"
SectionEnd
;--------------------------------
; Uninstaller
Section "Uninstall"
; Remove registry keys
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\DevIL"
DeleteRegKey HKLM SOFTWARE\DevIL
; Remove files and uninstaller
Delete $SYSDIR\DevIL.dll
Delete $SYSDIR\ILU.dll
Delete $SYSDIR\ILUT.dll
Delete $INSTDIR\uninstall.exe
; Remove directories used
RMDir "$INSTDIR"
SectionEnd
|