-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDigitalWatch.nsi
More file actions
139 lines (114 loc) · 4.8 KB
/
DigitalWatch.nsi
File metadata and controls
139 lines (114 loc) · 4.8 KB
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
;/**
; * DigitalWatch.nsi
; * Copyright (C) 2004
; *
; * This file is part of DigitalWatch, a free DTV watching and recording
; * program for the VisionPlus DVB-T.
; *
; * DigitalWatch is free software; you can redistribute it and/or modify
; * it under the terms of the GNU General Public License as published by
; * the Free Software Foundation; either version 2 of the License, or
; * (at your option) any later version.
; *
; * DigitalWatch is distributed in the hope that it will be useful,
; * but WITHOUT ANY WARRANTY; without even the implied warranty of
; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; * GNU General Public License for more details.
; *
; * You should have received a copy of the GNU General Public License
; * along with DigitalWatch; if not, write to the Free Software
; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
; */
;
;--------------------------------
SetCompressor lzma
!include "Sections.nsh"
!define VersionShort "0.701"
!define VersionLong "0.70.0.1"
!define Version "0701"
; The name of the installer
Name "DigitalWatch ${VersionShort}"
; Put the output file out folder above the digitalwatch folder.
OutFile "..\..\..\DW${Version}.exe"
; The default installation directory
InstallDir $PROGRAMFILES\DigitalWatch\DW${Version}
;Load the english language file
LoadLanguageFile "${NSISDIR}\Contrib\Language Files\English.nlf"
;--------------------------------
;Version Information
VIProductVersion "${VersionLong}"
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "DigitalWatch"
VIAddVersionKey /LANG=${LANG_ENGLISH} "Comments" ""
VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" ""
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalTrademarks" ""
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" ""
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" ""
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "${VersionShort}"
;--------------------------------
LicenseText "DigitalWatch is released under the GPL open source license."
LicenseData "..\..\COPYING"
;--------------------------------
; Pages
Page license
Page directory
Page components
Page instfiles
;--------------------------------
; The stuff to install
Section "DigitalWatch ${VersionShort} (required)"
;Set as required
SectionIn RO
; Set output path to the installation directory.
SetOutPath $INSTDIR
File "DigitalWatch.exe"
File "Settings.ini"
File "VideoDecoders.ini"
File "AudioDecoders.ini"
File "OSD.ini"
File "Resolutions.ini"
File "Keys.ini"
File "ControlBar.ini"
File /oname="Channels.ini" "blank channels.ini"
File "channels Functions Example.ini"
File "..\..\..\ScanChannels\Release\ScanChannels.exe"
SetOutPath $INSTDIR\docs
File "..\..\docs\ReadMe.txt"
File "..\..\docs\History.txt"
File "..\..\docs\Functions.txt"
File "..\..\docs\Configuration.txt"
SetOutPath $INSTDIR\images
File "images\background.bmp"
File "images\controlbar.bmp"
File "images\network0.bmp"
File "images\network1.bmp"
File "images\network2.bmp"
File "images\network3.bmp"
File "images\network4.bmp"
File "images\network5.bmp"
SectionEnd ; end the section
Section "Create Start Menu Icons"
SetOutPath $INSTDIR
CreateDirectory "$SMPROGRAMS\DigitalWatch ${VersionShort}"
CreateShortCut "$SMPROGRAMS\DigitalWatch ${VersionShort}\DigitalWatch ${VersionShort}.lnk" "$INSTDIR\DigitalWatch.exe" "" "$INSTDIR\DigitalWatch.exe" 0
CreateShortCut "$SMPROGRAMS\DigitalWatch ${VersionShort}\ScanChannels.lnk" "$INSTDIR\ScanChannels.exe" "" "$INSTDIR\ScanChannels.exe" 0
SetOutPath $INSTDIR\docs
CreateDirectory "$SMPROGRAMS\DigitalWatch ${VersionShort}\Documentation"
CreateShortCut "$SMPROGRAMS\DigitalWatch ${VersionShort}\Documentation\ReadMe.txt.lnk" "$INSTDIR\docs\ReadMe.txt" ""
CreateShortCut "$SMPROGRAMS\DigitalWatch ${VersionShort}\Documentation\History.txt.lnk" "$INSTDIR\docs\History.txt" ""
CreateShortCut "$SMPROGRAMS\DigitalWatch ${VersionShort}\Documentation\Functions.txt.lnk" "$INSTDIR\docs\Functions.txt" ""
CreateShortCut "$SMPROGRAMS\DigitalWatch ${VersionShort}\Documentation\Configuration.txt.lnk" "$INSTDIR\docs\Configuration.txt" ""
SectionEnd
Section /o "Create Desktop Icon"
SetOutPath $INSTDIR
CreateShortCut "$DESKTOP\DigitalWatch ${VersionShort}.lnk" "$INSTDIR\DigitalWatch.exe" "" "$INSTDIR\DigitalWatch.exe" 0
SectionEnd
Section /o "Create Quick Launch Icon"
SetOutPath $INSTDIR
CreateShortCut "$QUICKLAUNCH\DigitalWatch ${VersionShort}.lnk" "$INSTDIR\DigitalWatch.exe" "" "$INSTDIR\DigitalWatch.exe" 0
SectionEnd
Section "" ; empty string makes it hidden
MessageBox MB_YESNO|MB_ICONQUESTION "Would you like to view the ReadMe file?" IDNO NoReadMe
SearchPath $1 notepad.exe
Exec '"$1" "$INSTDIR\docs\ReadMe.txt"'
NoReadMe:
SectionEnd