1+ ; Popcorn Time
2+ ; Installer Source
3+ ; Version 1.0
4+
5+ ; Include Modern UI
6+ !include " MUI2.nsh"
7+
8+ ; General Settings
9+ Name " Popcorn Time"
10+ Caption " Popcorn Time"
11+ BrandingText " Popcorn Time"
12+ OutFile " PopcornTimeSetup.exe"
13+ CRCCheck on
14+ SetCompressor /SOLID lzma
15+
16+ ; Default installation folder
17+ InstallDir " $APPDATA\Popcorn Time"
18+
19+ ; Request application privileges
20+ RequestExecutionLevel user
21+
22+ ; Define UI settings
23+ !define MUI_LICENSEPAGE_BGCOLOR /GRAY
24+ !define MUI_UI_HEADERIMAGE_RIGHT " ..\..\images\icon.png"
25+ !define MUI_ICON " ..\..\images\popcorntime.ico"
26+
27+ ; Define the pages
28+ !insertmacro MUI_PAGE_LICENSE " LICENSE.txt"
29+ !insertmacro MUI_PAGE_INSTFILES
30+ !insertmacro MUI_PAGE_FINISH
31+
32+ ; Load Language Files
33+ !insertmacro MUI_LANGUAGE " English"
34+ !insertmacro MUI_LANGUAGE " Afrikaans"
35+ !insertmacro MUI_LANGUAGE " Albanian"
36+ !insertmacro MUI_LANGUAGE " Arabic"
37+ !insertmacro MUI_LANGUAGE " Asturian"
38+ !insertmacro MUI_LANGUAGE " Basque"
39+ !insertmacro MUI_LANGUAGE " Belarusian"
40+ !insertmacro MUI_LANGUAGE " Bosnian"
41+ !insertmacro MUI_LANGUAGE " Breton"
42+ !insertmacro MUI_LANGUAGE " Bulgarian"
43+ !insertmacro MUI_LANGUAGE " Catalan"
44+ !insertmacro MUI_LANGUAGE " Croatian"
45+ !insertmacro MUI_LANGUAGE " Czech"
46+ !insertmacro MUI_LANGUAGE " Danish"
47+ !insertmacro MUI_LANGUAGE " Dutch"
48+ !insertmacro MUI_LANGUAGE " Esperanto"
49+ !insertmacro MUI_LANGUAGE " Estonian"
50+ !insertmacro MUI_LANGUAGE " Farsi"
51+ !insertmacro MUI_LANGUAGE " Finnish"
52+ !insertmacro MUI_LANGUAGE " French"
53+ !insertmacro MUI_LANGUAGE " Galician"
54+ ; !insertmacro MUI_LANGUAGE "Georgian"
55+ !insertmacro MUI_LANGUAGE " German"
56+ !insertmacro MUI_LANGUAGE " Greek"
57+ !insertmacro MUI_LANGUAGE " Hebrew"
58+ !insertmacro MUI_LANGUAGE " Hungarian"
59+ !insertmacro MUI_LANGUAGE " Icelandic"
60+ !insertmacro MUI_LANGUAGE " Indonesian"
61+ !insertmacro MUI_LANGUAGE " Irish"
62+ !insertmacro MUI_LANGUAGE " Italian"
63+ !insertmacro MUI_LANGUAGE " Japanese"
64+ !insertmacro MUI_LANGUAGE " Korean"
65+ !insertmacro MUI_LANGUAGE " Kurdish"
66+ !insertmacro MUI_LANGUAGE " Latvian"
67+ !insertmacro MUI_LANGUAGE " Lithuanian"
68+ !insertmacro MUI_LANGUAGE " Luxembourgish"
69+ !insertmacro MUI_LANGUAGE " Macedonian"
70+ !insertmacro MUI_LANGUAGE " Malay"
71+ !insertmacro MUI_LANGUAGE " Mongolian"
72+ !insertmacro MUI_LANGUAGE " Norwegian"
73+ !insertmacro MUI_LANGUAGE " NorwegianNynorsk"
74+ !insertmacro MUI_LANGUAGE " Pashto"
75+ !insertmacro MUI_LANGUAGE " Polish"
76+ !insertmacro MUI_LANGUAGE " Portuguese"
77+ !insertmacro MUI_LANGUAGE " PortugueseBR"
78+ !insertmacro MUI_LANGUAGE " Romanian"
79+ !insertmacro MUI_LANGUAGE " Russian"
80+ ; !insertmacro MUI_LANGUAGE "ScotsGaelic"
81+ !insertmacro MUI_LANGUAGE " Serbian"
82+ !insertmacro MUI_LANGUAGE " SerbianLatin"
83+ !insertmacro MUI_LANGUAGE " SimpChinese"
84+ !insertmacro MUI_LANGUAGE " Slovak"
85+ !insertmacro MUI_LANGUAGE " Slovenian"
86+ !insertmacro MUI_LANGUAGE " Spanish"
87+ !insertmacro MUI_LANGUAGE " SpanishInternational"
88+ !insertmacro MUI_LANGUAGE " Swedish"
89+ !insertmacro MUI_LANGUAGE " Thai"
90+ !insertmacro MUI_LANGUAGE " TradChinese"
91+ !insertmacro MUI_LANGUAGE " Turkish"
92+ !insertmacro MUI_LANGUAGE " Ukrainian"
93+ !insertmacro MUI_LANGUAGE " Uzbek"
94+ !insertmacro MUI_LANGUAGE " Vietnamese"
95+ !insertmacro MUI_LANGUAGE " Welsh"
96+
97+ Section ; Node Webkit Files
98+
99+ ; Set output path to InstallDir
100+ SetOutPath " $INSTDIR\node-webkit"
101+
102+ ; Add the files
103+ File " ..\..\build\releases\Popcorn-Time\win\Popcorn-Time\*"
104+
105+ SectionEnd
106+
107+ Section ; App Files
108+
109+ ; Set output path to InstallDir
110+ SetOutPath " $INSTDIR\app"
111+
112+ ; Add the files
113+ File /r " ..\..\css"
114+ File /r " ..\..\fonts"
115+ File /r " ..\..\images"
116+ File /r " ..\..\js"
117+ File /r " ..\..\language"
118+ File /r " ..\..\rc"
119+ File /r /x " ..\..\node_modules\grunt*" /x " ..\..\node_modules\grunt" " ..\..\node_modules"
120+ File " ..\..\index.html"
121+ File " ..\..\package.json"
122+
123+ SectionEnd
124+
125+ Section ; Shortcuts
126+
127+ SetOutPath " $INSTDIR"
128+ File /oname= app.ico " ..\..\images\popcorntime.ico"
129+
130+ ; Working Directory
131+ SetOutPath " $INSTDIR"
132+
133+ ; Start Menu Shortcut
134+ CreateDirectory " $SMPROGRAMS\Popcorn Time"
135+ CreateShortCut " $SMPROGRAMS\Popcorn Time\Popcorn Time.lnk" " $INSTDIR\node-webkit\Popcorn-Time.exe" " app" " $INSTDIR\app.ico" " " " " " " " Start Popcorn Time"
136+
137+ ; Desktop Shortcut
138+ CreateShortCut " $DESKTOP\Popcorn Time.lnk" " $INSTDIR\node-webkit\Popcorn-Time.exe" " app" " $INSTDIR\app.ico" " " " " " " " Start Popcorn Time"
139+
140+ SectionEnd
0 commit comments