]> git.sesse.net Git - vlc/blob - extras/package/win32/vlc.win32.nsi.in
70b2dae9f9787a9e92a5048bfe579dabbb8c8424
[vlc] / extras / package / win32 / vlc.win32.nsi.in
1 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2 ; NSIS installer script for vlc ;
3 ; (http://nsis.sourceforge.net) ;
4 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
5
6 !include "languages\declaration.nsh"
7
8 !define PRODUCT_NAME "VLC media player"
9 !define VERSION @VERSION@
10 !define PRODUCT_VERSION @VERSION@
11 !define PRODUCT_GROUP "VideoLAN"
12 !define PRODUCT_PUBLISHER "VideoLAN Team"
13 !define PRODUCT_WEB_SITE "http://www.videolan.org"
14 !define PRODUCT_DIR_REGKEY "Software\VideoLAN\VLC"
15 !define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
16 !define PRODUCT_UNINST_ROOT_KEY "HKLM"
17 !define PRODUCT_ID "{ea92ef52-afe4-4212-bacb-dfe9fca94cd6}"
18
19 !define MUI_LANGDLL_REGISTRY_ROOT "HKLM"
20 !define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_DIR_REGKEY}"
21 !define MUI_LANGDLL_REGISTRY_VALUENAME "Language"
22
23 @BUILD_ACTIVEX_TRUE@ !define INSTALL_ACTIVEX
24 @BUILD_MOZILLA_TRUE@ !define INSTALL_MOZILLA
25
26 @FILE_LIBVLCCORE_DLL@
27 @FILE_LIBVLC_DLL@
28
29 ;;;;;;;;;;;;;;;;;;;;;;;;;
30 ; General configuration ;
31 ;;;;;;;;;;;;;;;;;;;;;;;;;
32
33 Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
34 OutFile ..\vlc-${VERSION}-win32.exe
35 InstallDir "$PROGRAMFILES\VideoLAN\VLC"
36 InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
37 !ifdef NSIS_LZMA_COMPRESS_WHOLE
38 SetCompressor lzma
39 !else
40 SetCompressor /SOLID lzma
41 !endif
42
43 SetOverwrite ifnewer
44 CRCCheck on
45 BrandingText "${PRODUCT_GROUP} ${PRODUCT_NAME}"
46
47 InstType $Name_InstTypeRecommended
48 InstType $Name_InstTypeMinimum
49 InstType $Name_InstTypeFull
50
51 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
52 ; NSIS Modern User Interface configuration ;
53 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
54
55 ; MUI 1.67 compatible ------
56   !include "MUI.nsh"
57
58 ; MUI Settings
59   !define MUI_ABORTWARNING
60   !define MUI_ICON "vlc.ico"
61   !define MUI_UNICON "vlc.ico"
62   !define MUI_COMPONENTSPAGE_SMALLDESC
63
64 ; Installer pages
65   ; Welcome page
66     !define MUI_WELCOMEPAGE_TITLE_3LINES
67     !insertmacro MUI_PAGE_WELCOME
68   ; License page
69     !insertmacro MUI_PAGE_LICENSE "COPYING.txt"
70   ; Components page
71     !insertmacro MUI_PAGE_COMPONENTS
72   ; Directory page
73     !insertmacro MUI_PAGE_DIRECTORY
74   ; Instfiles page
75     !insertmacro MUI_PAGE_INSTFILES
76   ; Finish page
77     !define MUI_FINISHPAGE_RUN "$INSTDIR\vlc.exe"
78     !define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\README.txt"
79     !define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
80     !define MUI_FINISHPAGE_LINK $Link_VisitWebsite
81     !define MUI_FINISHPAGE_LINK_LOCATION "http://www.videolan.org/vlc/"
82     !define MUI_FINISHPAGE_NOREBOOTSUPPORT
83     !insertmacro MUI_PAGE_FINISH
84
85 ; Uninstaller pages
86     !insertmacro MUI_UNPAGE_CONFIRM
87     !insertmacro MUI_UNPAGE_COMPONENTS
88     !insertmacro MUI_UNPAGE_INSTFILES
89     !insertmacro MUI_UNPAGE_FINISH
90
91 ; Language files
92   !insertmacro MUI_LANGUAGE "English" # first language is the default language
93   !insertmacro MUI_LANGUAGE "French"
94   !insertmacro MUI_LANGUAGE "German"
95   !insertmacro MUI_LANGUAGE "Spanish"
96   !insertmacro MUI_LANGUAGE "SimpChinese"
97   !insertmacro MUI_LANGUAGE "TradChinese"
98   !insertmacro MUI_LANGUAGE "Japanese"
99   !insertmacro MUI_LANGUAGE "Korean"
100   !insertmacro MUI_LANGUAGE "Italian"
101   !insertmacro MUI_LANGUAGE "Dutch"
102   !insertmacro MUI_LANGUAGE "Danish"
103   !insertmacro MUI_LANGUAGE "Swedish"
104   !insertmacro MUI_LANGUAGE "Norwegian"
105   !insertmacro MUI_LANGUAGE "Finnish"
106   !insertmacro MUI_LANGUAGE "Greek"
107   !insertmacro MUI_LANGUAGE "Russian"
108   !insertmacro MUI_LANGUAGE "Portuguese"
109   !insertmacro MUI_LANGUAGE "PortugueseBR"
110   !insertmacro MUI_LANGUAGE "Arabic"
111   !insertmacro MUI_LANGUAGE "Polish"
112   !insertmacro MUI_LANGUAGE "Romanian"
113   !insertmacro MUI_LANGUAGE "Slovak"
114   !insertmacro MUI_LANGUAGE "Czech"
115   !insertmacro MUI_LANGUAGE "Hungarian"
116   !insertmacro MUI_LANGUAGE "Catalan"
117   !insertmacro MUI_LANGUAGE "Bulgarian"
118
119 ; Reserve files for solid compression
120   !insertmacro MUI_RESERVEFILE_LANGDLL
121   !insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
122
123 ; MUI end ------
124
125 ;;;;;;;;;;;;;;;;;;;;;;;
126 ; Macro and Functions ;
127 ;;;;;;;;;;;;;;;;;;;;;;;
128
129 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
130 ; 1. File type associations ;
131 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
132
133 ;; Function that register one extension for VLC
134 Function RegisterExtension
135   ; back up old value for extension $R0 (eg. ".opt")
136   ReadRegStr $1 HKCR "$R0" ""
137   StrCmp $1 "" NoBackup
138     StrCmp $1 "VLC$R0" "NoBackup"
139     WriteRegStr HKCR "$R0" "VLC.backup" $1
140 NoBackup:
141   WriteRegStr HKCR "$R0" "" "VLC$R0"
142   ReadRegStr $0 HKCR "VLC$R0" ""
143   WriteRegStr HKCR "VLC$R0" "" "VLC media file ($R0)"
144   WriteRegStr HKCR "VLC$R0\shell" "" "Open"
145   WriteRegStr HKCR "VLC$R0\shell\Open" "" $ShellAssociation_Play
146   WriteRegStr HKCR "VLC$R0\shell\Open\command" "" '"$INSTDIR\vlc.exe" --started-from-file "%1"'
147   WriteRegStr HKCR "VLC$R0\DefaultIcon" "" '"$INSTDIR\vlc.exe",0'
148
149 ;;; Vista Only part
150   ; Vista and above detection
151   ReadRegStr $R1 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
152   StrCpy $R2 $R1 1
153   StrCmp $R2 '6' ForVista ToEnd
154 ForVista:
155   WriteRegStr HKLM "Software\Clients\Media\VLC\Capabilities\FileAssociations" "$R0" "VLC$R0"
156
157 ToEnd:
158 FunctionEnd
159
160 ;; Function that removes one extension that VLC owns.
161 Function un.RegisterExtension
162   ;start of restore script
163   ReadRegStr $1 HKCR "$R0" ""
164   StrCmp $1 "VLC$R0" 0 NoOwn ; only do this if we own it
165     ; Read the old value from Backup
166     ReadRegStr $1 HKCR "$R0" "VLC.backup"
167     StrCmp $1 "" 0 Restore ; if backup="" then delete the whole key
168       DeleteRegKey HKCR "$R0"
169     Goto NoOwn
170 Restore:
171       WriteRegStr HKCR "$R0" "" $1
172       DeleteRegValue HKCR "$R0" "VLC.backup"
173 NoOwn:
174     DeleteRegKey HKCR "VLC$R0" ;Delete key with association settings
175     DeleteRegKey HKLM "Software\Clients\Media\VLC\Capabilities\FileAssociations\VLC$R0" ; for vista
176 FunctionEnd
177
178 !macro RegisterExtensionSection EXT
179   Section ${EXT}
180     SectionIn 1 3
181     Push $R0
182     StrCpy $R0 ${EXT}
183     Call RegisterExtension
184     Pop $R0
185   SectionEnd
186 !macroend
187
188 !macro UnRegisterExtensionSection EXT
189   Push $R0
190   StrCpy $R0 ${EXT}
191   Call un.RegisterExtension
192   Pop $R0
193 !macroend
194
195 !macro WriteRegStrSupportedTypes EXT
196   WriteRegStr HKCR Applications\vlc.exe\SupportedTypes ${EXT} ""
197 !macroend
198
199 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
200 ; Extension lists  Macros                    ;
201 ; Those macros calls the previous functions  ;
202 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
203
204 !macro MacroAudioExtensions _action
205   !insertmacro ${_action} ".a52"
206   !insertmacro ${_action} ".aac"
207   !insertmacro ${_action} ".ac3"
208   !insertmacro ${_action} ".aob"
209   !insertmacro ${_action} ".dts"
210   !insertmacro ${_action} ".flac"
211   !insertmacro ${_action} ".m4a"
212   !insertmacro ${_action} ".m4p"
213   !insertmacro ${_action} ".mka"
214   !insertmacro ${_action} ".mod"
215   !insertmacro ${_action} ".mp1"
216   !insertmacro ${_action} ".mp2"
217   !insertmacro ${_action} ".mp3"
218   !insertmacro ${_action} ".oma"
219   !insertmacro ${_action} ".oga"
220   !insertmacro ${_action} ".spx"
221   !insertmacro ${_action} ".wav"
222   !insertmacro ${_action} ".wma"
223   !insertmacro ${_action} ".wv"
224   !insertmacro ${_action} ".xm"
225 !macroend
226
227 !macro MacroVideoExtensions _action
228   !insertmacro ${_action} ".asf"
229   !insertmacro ${_action} ".avi"
230   !insertmacro ${_action} ".divx"
231   !insertmacro ${_action} ".dv"
232   !insertmacro ${_action} ".flv"
233   !insertmacro ${_action} ".gxf"
234   !insertmacro ${_action} ".m1v"
235   !insertmacro ${_action} ".m2v"
236   !insertmacro ${_action} ".m2ts"
237   !insertmacro ${_action} ".m4v"
238   !insertmacro ${_action} ".mkv"
239   !insertmacro ${_action} ".mov"
240   !insertmacro ${_action} ".mp4"
241   !insertmacro ${_action} ".mpeg"
242   !insertmacro ${_action} ".mpeg1"
243   !insertmacro ${_action} ".mpeg2"
244   !insertmacro ${_action} ".mpeg4"
245   !insertmacro ${_action} ".mpg"
246   !insertmacro ${_action} ".mts"
247   !insertmacro ${_action} ".mxf"
248   !insertmacro ${_action} ".nuv"
249   !insertmacro ${_action} ".ogg"
250   !insertmacro ${_action} ".ogm"
251   !insertmacro ${_action} ".ogx"
252   !insertmacro ${_action} ".ogv"
253   !insertmacro ${_action} ".rmvb"
254   !insertmacro ${_action} ".ts"
255   !insertmacro ${_action} ".vob"
256   !insertmacro ${_action} ".wmv"
257 !macroend
258
259 !macro MacroOtherExtensions _action
260   !insertmacro ${_action} ".asx"
261   !insertmacro ${_action} ".bin"
262   !insertmacro ${_action} ".cue"
263   !insertmacro ${_action} ".ifo"
264   !insertmacro ${_action} ".m3u"
265   !insertmacro ${_action} ".pls"
266   !insertmacro ${_action} ".vlc"
267   !insertmacro ${_action} ".xspf"
268 !macroend
269
270 ; One macro to rule them all
271 !macro MacroAllExtensions _action
272   !insertmacro MacroAudioExtensions ${_action}
273   !insertmacro MacroVideoExtensions ${_action}
274   !insertmacro MacroOtherExtensions ${_action}
275 !macroend
276
277 ;;;;;;;;;;;;;;;;;;;;;;;;;;;
278 ; 2. Context menu entries ;
279 ;;;;;;;;;;;;;;;;;;;;;;;;;;;
280
281 ; Generic function for adding the context menu for one ext.
282 !macro AddContextMenuExt EXT
283   WriteRegStr HKCR ${EXT}\shell\PlayWithVLC "" $ContextMenuEntry_PlayWith
284   WriteRegStr HKCR ${EXT}\shell\PlayWithVLC\command "" '"$INSTDIR\vlc.exe" --started-from-file --no-playlist-enqueue "%1"'
285
286   WriteRegStr HKCR ${EXT}\shell\AddToPlaylistVLC "" $ContextMenuEntry_AddToPlaylist
287   WriteRegStr HKCR ${EXT}\shell\AddToPlaylistVLC\command "" '"$INSTDIR\vlc.exe" --started-from-file --playlist-enqueue "%1"'
288 !macroend
289
290 !macro AddContextMenu EXT
291   Push $R0
292   ReadRegStr $R0 HKCR ${EXT} ""
293   !insertmacro AddContextMenuExt $R0
294   Pop $R0
295 !macroend
296
297 !macro DeleteContextMenuExt EXT
298   DeleteRegKey HKCR ${EXT}\shell\PlayWithVLC
299   DeleteRegKey HKCR ${EXT}\shell\AddToPlaylistVLC
300 !macroend
301
302 !macro DeleteContextMenu EXT
303   Push $R0
304   ReadRegStr $R0 HKCR ${EXT} ""
305   !insertmacro DeleteContextMenuExt $R0
306   Pop $R0
307 !macroend
308
309 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
310 ; 3. Delete prefs and cache ;
311 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
312
313 !macro delprefs
314   StrCpy $0 0
315   !define Index 'Line${__LINE__}'
316   "${Index}-Loop:"
317   ; FIXME
318   ; this will loop through all the logged users and "virtual" windows users
319   ; (it looks like users are only present in HKEY_USERS when they are logged in)
320     ClearErrors
321     EnumRegKey $1 HKU "" $0
322     StrCmp $1 "" "${Index}-End"
323     IntOp $0 $0 + 1
324     ReadRegStr $2 HKU "$1\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" AppData
325     StrCmp $2 "" "${Index}-Loop"
326     RMDir /r "$2\vlc"
327     Goto "${Index}-Loop"
328   "${Index}-End:"
329   !undef Index
330 !macroend
331
332 ;;;;;;;;;;;;;;;
333 ; 4. Logging  ;
334 ;;;;;;;;;;;;;;;
335 Var UninstallLog
336 !macro OpenUninstallLog
337   FileOpen $UninstallLog "$INSTDIR\uninstall.log" a
338   FileSeek $UninstallLog 0 END
339 !macroend
340
341 !macro CloseUninstallLog
342   FileClose $UninstallLog
343   SetFileAttributes "$INSTDIR\uninstall.log" HIDDEN
344 !macroend
345
346 ;;;;;;;;;;;;;;;;;;;;
347 ; 5. Installations ;
348 ;;;;;;;;;;;;;;;;;;;;
349 !macro InstallFile FILEREGEX
350   File "${FILEREGEX}"
351   !define Index 'Line${__LINE__}'
352   FindFirst $0 $1 "$INSTDIR\${FILEREGEX}"
353   StrCmp $0 "" "${Index}-End"
354   "${Index}-Loop:"
355     StrCmp $1 "" "${Index}-End"
356     FileWrite $UninstallLog "$1$\r$\n"
357     FindNext $0 $1
358     Goto "${Index}-Loop"
359   "${Index}-End:"
360   !undef Index
361 !macroend
362
363 !macro InstallFolder FOLDER
364   File /r "${FOLDER}"
365   Push "${FOLDER}"
366   Call InstallFolderInternal
367 !macroend
368
369 Function InstallFolderInternal
370   Pop $9
371   !define Index 'Line${__LINE__}'
372   FindFirst $0 $1 "$INSTDIR\$9\*"
373   StrCmp $0 "" "${Index}-End"
374   "${Index}-Loop:"
375     StrCmp $1 "" "${Index}-End"
376     StrCmp $1 "." "${Index}-Next"
377     StrCmp $1 ".." "${Index}-Next"
378     IfFileExists "$9\$1\*" 0 "${Index}-Write"
379       Push $0
380       Push $9
381       Push "$9\$1"
382       Call InstallFolderInternal
383       Pop $9
384       Pop $0
385       Goto "${Index}-Next"
386     "${Index}-Write:"
387     FileWrite $UninstallLog "$9\$1$\r$\n"
388     "${Index}-Next:"
389     FindNext $0 $1
390     Goto "${Index}-Loop"
391   "${Index}-End:"
392   !undef Index
393 FunctionEnd
394 ;;; End of Macros
395
396
397 ;;;;;;;;;;;;;;;;;;;;;;
398 ; Installer sections ;
399 ; The CORE of the    ;
400 ; installer          ;
401 ;;;;;;;;;;;;;;;;;;;;;;
402
403 Section $Name_Section01 SEC01
404   SectionIn 1 2 3 RO
405   SetShellVarContext all
406   SetOutPath "$INSTDIR"
407
408   !insertmacro OpenUninstallLog
409
410   ; VLC.exe, libvlc.dll
411   !insertmacro InstallFile vlc.exe
412   !insertmacro InstallFile vlc.exe.manifest
413
414   ; All dlls
415   !insertmacro InstallFile *.dll
416
417   ; Text files
418   !insertmacro InstallFile *.txt
419
420   ; Subfolders
421   !insertmacro InstallFolder plugins
422   !insertmacro InstallFolder locale
423 @BUILD_OSDMENU_TRUE@ !insertmacro InstallFolder osdmenu
424 @BUILD_SKINS_TRUE@   !insertmacro InstallFolder skins
425 @BUILD_HTTPD_TRUE@   !insertmacro InstallFolder http
426 @BUILD_LUA_TRUE@     !insertmacro InstallFolder lua
427
428
429   ; URLs
430   WriteIniStr "$INSTDIR\${PRODUCT_GROUP} Website.url" "InternetShortcut" "URL" \
431     "${PRODUCT_WEB_SITE}"
432   FileWrite $UninstallLog "${PRODUCT_GROUP} Website.url$\r$\n"
433   WriteIniStr "$INSTDIR\Documentation.url" "InternetShortcut" "URL" \
434     "${PRODUCT_WEB_SITE}/doc/"
435   FileWrite $UninstallLog "Documentation.url$\r$\n"
436   WriteIniStr "$INSTDIR\New_Skins.url" "InternetShortcut" "URL" \
437     "${PRODUCT_WEB_SITE}/vlc/skins.php"
438   FileWrite $UninstallLog "New_Skins.url$\r$\n"
439
440   !insertmacro CloseUninstallLog
441
442   ; Add VLC to "recomended programs" for the following extensions
443   WriteRegStr HKCR Applications\vlc.exe "" ""
444   WriteRegStr HKCR Applications\vlc.exe "FriendlyAppName" "VLC media player"
445   WriteRegStr HKCR Applications\vlc.exe\shell\Open "" $ContextMenuEntry_PlayWith
446   WriteRegStr HKCR Applications\vlc.exe\shell\Open\command "" \
447     '"$INSTDIR\vlc.exe" --started-from-file "%1"'
448   !insertmacro MacroAllExtensions WriteRegStrSupportedTypes
449
450 ; Windows default programs Registration
451   ; Vista and above detection
452   ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
453   StrCpy $R1 $R0 1
454   StrCmp $R1 '6' lbl_vista lbl_done
455
456   lbl_vista:
457   WriteRegStr HKLM "Software\RegisteredApplications" "VLC" "Software\Clients\Media\VLC\Capabilities"
458   WriteRegStr HKLM "Software\Clients\Media\VLC\Capabilities" "ApplicationName" "VLC media player"
459   WriteRegStr HKLM "Software\Clients\Media\VLC\Capabilities" "ApplicationDescription" "VLC - The video swiss knife"
460
461   lbl_done:
462 SectionEnd
463
464 Section $Name_Section02a SEC02a
465   SectionIn 1 2 3
466   CreateDirectory "$SMPROGRAMS\VideoLAN"
467   CreateDirectory "$SMPROGRAMS\VideoLAN\Quick Settings"
468   CreateDirectory "$SMPROGRAMS\VideoLAN\Quick Settings\Audio"
469   CreateShortCut "$SMPROGRAMS\VideoLAN\Quick Settings\Audio\Set Audio mode to DirectX (default).lnk" \
470     "$INSTDIR\vlc.exe" "--aout aout_directx --save-config vlc://quit"
471   CreateShortCut "$SMPROGRAMS\VideoLAN\Quick Settings\Audio\Set Audio mode to Waveout.lnk" \
472     "$INSTDIR\vlc.exe" "--aout waveout --save-config vlc://quit"
473   CreateDirectory "$SMPROGRAMS\VideoLAN\Quick Settings\Interface"
474 @BUILD_SKINS_TRUE@  CreateShortCut "$SMPROGRAMS\VideoLAN\Quick Settings\Interface\Set Main Interface to Skinnable.lnk" \
475 @BUILD_SKINS_TRUE@    "$INSTDIR\vlc.exe" "-I skins --save-config vlc://quit"
476   CreateShortCut "$SMPROGRAMS\VideoLAN\Quick Settings\Interface\Set Main Interface to Qt (default).lnk" \
477     "$INSTDIR\vlc.exe" "-I qt --save-config vlc://quit"
478   CreateDirectory "$SMPROGRAMS\VideoLAN\Quick Settings\Video"
479   ; FIXME add detection for Vista. Direct3D will be default there, for all others it's DirectX
480   CreateShortCut "$SMPROGRAMS\VideoLAN\Quick Settings\Video\Set Video mode to Direct3D.lnk" \
481     "$INSTDIR\vlc.exe" "--vout direct3d --overlay --directx-hw-yuv --save-config vlc://quit"
482   CreateShortCut "$SMPROGRAMS\VideoLAN\Quick Settings\Video\Set Video mode to Direct3D (no hardware acceleration).lnk" \
483     "$INSTDIR\vlc.exe" "--vout direct3d --overlay --no-directx-hw-yuv --save-config vlc://quit"
484   CreateShortCut "$SMPROGRAMS\VideoLAN\Quick Settings\Video\Set Video mode to DirectX.lnk" \
485     "$INSTDIR\vlc.exe" "--vout directx --overlay --directx-hw-yuv --save-config vlc://quit"
486   CreateShortCut "$SMPROGRAMS\VideoLAN\Quick Settings\Video\Set Video mode to DirectX (no hardware acceleration).lnk" \
487     "$INSTDIR\vlc.exe" "--vout directx --no-overlay --no-directx-hw-yuv --save-config vlc://quit"
488   CreateShortCut "$SMPROGRAMS\VideoLAN\Quick Settings\Video\Set Video mode to DirectX (no video overlay).lnk" \
489     "$INSTDIR\vlc.exe" "--vout directx --no-overlay --directx-hw-yuv --save-config vlc://quit"
490   CreateShortCut "$SMPROGRAMS\VideoLAN\Quick Settings\Video\Set Video mode to OpenGL.lnk" \
491     "$INSTDIR\vlc.exe" "--vout opengl --overlay --save-config vlc://quit"
492   CreateShortCut "$SMPROGRAMS\VideoLAN\Quick Settings\Reset VLC media player preferences and cache files.lnk" \
493     "$INSTDIR\vlc.exe" "--reset-config --reset-plugins-cache vlc://quit"
494   CreateShortCut "$SMPROGRAMS\VideoLAN\Documentation.lnk" \
495     "$INSTDIR\Documentation.url"
496   CreateShortCut "$SMPROGRAMS\VideoLAN\Release Notes.lnk" \
497     "$INSTDIR\NEWS.txt" ""
498   CreateShortCut "$SMPROGRAMS\VideoLAN\${PRODUCT_GROUP} Website.lnk" \
499     "$INSTDIR\${PRODUCT_GROUP} Website.url"
500   CreateShortCut "$SMPROGRAMS\VideoLAN\VLC media player.lnk" \
501     "$INSTDIR\vlc.exe" ""
502 SectionEnd
503
504 Section $Name_Section02b SEC02b
505   SectionIn 1 2 3
506   CreateShortCut "$DESKTOP\VLC media player.lnk" \
507     "$INSTDIR\vlc.exe" ""
508 SectionEnd
509
510 !ifdef INSTALL_MOZILLA
511 Section /o $Name_Section03 SEC03
512   SectionIn 3
513
514   SetOutPath "$INSTDIR"
515   !insertmacro OpenUninstallLog
516   !insertmacro InstallFile mozilla\npvlc.dll
517   !insertmacro InstallFile mozilla\npvlc.dll.manifest
518   !insertmacro CloseUninstallLog
519
520   !define Moz "SOFTWARE\MozillaPlugins\@videolan.org/vlc,version=${VERSION}"
521   WriteRegStr HKLM ${Moz} "Description" "VLC Multimedia Plugin"
522   WriteRegStr HKLM ${Moz} "Path" "$INSTDIR\npvlc.dll"
523   WriteRegStr HKLM ${Moz} "Product" "VLC media player"
524   WriteRegStr HKLM ${Moz} "Vendor" "VideoLAN"
525   WriteRegStr HKLM ${Moz} "Version" "${VERSION}"
526
527  ; for very old version of mozilla, these lines may be needed
528  ;Push $R0
529  ;Push $R1
530  ;Push $R2
531
532  ;!define Index 'Line${__LINE__}'
533  ;StrCpy $R1 "0"
534
535  ;"${Index}-Loop:"
536
537  ;  ; Check for Key
538  ;  EnumRegKey $R0 HKLM "SOFTWARE\Mozilla" "$R1"
539  ;  StrCmp $R0 "" "${Index}-End"
540  ;  IntOp $R1 $R1 + 1
541  ;  ReadRegStr $R2 HKLM "SOFTWARE\Mozilla\$R0\Extensions" "Plugins"
542  ;  StrCmp $R2 "" "${Index}-Loop" ""
543
544  ;  CopyFiles "$INSTDIR\npvlc.dll" "$R2"
545  ;  !ifdef LIBVLC_DLL
546  ;  CopyFiles ${LIBVLC_DLL} "$R2"
547  ;  !endif
548  ;  !ifdef LIBVLC_CONTROL_DLL
549  ;  CopyFiles ${LIBVLC_CONTROL_DLL} "$R2"
550  ;  !endif
551  ;  Goto "${Index}-Loop"
552
553  ;"${Index}-End:"
554  ;!undef Index
555
556 SectionEnd
557 !endif
558
559 !ifdef INSTALL_ACTIVEX
560 Section $Name_Section04 SEC04
561   SectionIn 3
562   SetOutPath "$INSTDIR"
563   !insertmacro OpenUninstallLog
564   !insertmacro InstallFile activex\axvlc.dll
565   !insertmacro InstallFile activex\axvlc.dll.manifest
566   !insertmacro CloseUninstallLog
567   RegDLL "$INSTDIR\axvlc.dll"
568 SectionEnd
569 !endif
570
571
572 Section $Name_Section05 SEC05
573   SectionIn 1 2 3
574   WriteRegStr HKCR "AudioCD\shell\PlayWithVLC" "" $ContextMenuEntry_PlayWith
575   WriteRegStr HKCR "AudioCD\shell\PlayWithVLC\command" "" \
576     '"$INSTDIR\vlc.exe" --started-from-file cdda://%1'
577   WriteRegStr HKCR "DVD\shell\PlayWithVLC" "" $ContextMenuEntry_PlayWith
578   WriteRegStr HKCR "DVD\shell\PlayWithVLC\command" "" \
579     '"$INSTDIR\vlc.exe" --started-from-file dvd://%1'
580
581   WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\PlayDVDMovieOnArrival" "VLCPlayDVDMovieOnArrival" ""
582   WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayDVDMovieOnArrival" "Action" $Action_OnArrivalDVD
583   WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayDVDMovieOnArrival" "DefaultIcon" '"$INSTDIR\vlc.exe",0'
584   WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayDVDMovieOnArrival" "InvokeProgID" "VLC.DVDMovie"
585   WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayDVDMovieOnArrival" "InvokeVerb" "play"
586   WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayDVDMovieOnArrival" "Provider" "VideoLAN VLC media player"
587
588   WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\PlayCDAudioOnArrival" "VLCPlayCDAudioOnArrival" ""
589   WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayCDAudioOnArrival" "Action" $Action_OnArrivalAudioCD
590   WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayCDAudioOnArrival" "DefaultIcon" '"$INSTDIR\vlc.exe",0'
591   WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayCDAudioOnArrival" "InvokeProgID" "VLC.CDAudio"
592   WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayCDAudioOnArrival" "InvokeVerb" "play"
593   WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayCDAudioOnArrival" "Provider" "VideoLAN VLC media player"
594   WriteRegStr HKCR "VLC.DVDMovie" "" "VLC DVD Movie"
595   WriteRegStr HKCR "VLC.DVDMovie\shell" "" "Open"
596   WriteRegStr HKCR "VLC.DVDMovie\shell\Open\command" "" \
597     '"$INSTDIR\vlc.exe" --started-from-file dvd://%1'
598   WriteRegStr HKCR "VLC.DVDMovie\DefaultIcon" "" '"$INSTDIR\vlc.exe",0'
599   WriteRegStr HKCR "VLC.CDAudio" "" "VLC CD Audio"
600   WriteRegStr HKCR "VLC.CDAudio\shell" "" "Open"
601   WriteRegStr HKCR "VLC.CDAudio\shell\Open\command" "" \
602     '"$INSTDIR\vlc.exe" --started-from-file cdda://%1'
603   WriteRegStr HKCR "VLC.CDAudio\DefaultIcon" "" '"$INSTDIR\vlc.exe",0'
604
605 SectionEnd
606
607
608 SectionGroup /e !$Name_Section06 SEC06
609   SectionGroup $Name_SectionGroupAudio
610     !insertmacro MacroAudioExtensions RegisterExtensionSection
611   SectionGroupEnd
612   SectionGroup $Name_SectionGroupVideo
613     !insertmacro MacroVideoExtensions RegisterExtensionSection
614   SectionGroupEnd
615   SectionGroup $Name_SectionGroupOther
616     !insertmacro MacroOtherExtensions RegisterExtensionSection
617   SectionGroupEnd
618 SectionGroupEnd
619
620 Section $Name_Section07 SEC07
621   SectionIn 1 3
622   !insertmacro MacroAllExtensions AddContextMenu
623   !insertmacro AddContextMenuExt "Directory"
624 SectionEnd
625
626 Section $Name_Section08 SEC08
627   !insertmacro delprefs
628 SectionEnd
629
630 ; Installer section descriptions
631 !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
632   !insertmacro MUI_DESCRIPTION_TEXT ${SEC01} $Desc_Section01
633   !insertmacro MUI_DESCRIPTION_TEXT ${SEC02a} $Desc_Section02a
634   !insertmacro MUI_DESCRIPTION_TEXT ${SEC02b} $Desc_Section02b
635 @BUILD_MOZILLA_TRUE@ !insertmacro MUI_DESCRIPTION_TEXT ${SEC03} $Desc_Section03
636 @BUILD_ACTIVEX_TRUE@ !insertmacro MUI_DESCRIPTION_TEXT ${SEC04} $Desc_Section04
637   !insertmacro MUI_DESCRIPTION_TEXT ${SEC05} $Desc_Section05
638   !insertmacro MUI_DESCRIPTION_TEXT ${SEC06} $Desc_Section06
639   !insertmacro MUI_DESCRIPTION_TEXT ${SEC07} $Desc_Section07
640   !insertmacro MUI_DESCRIPTION_TEXT ${SEC08} $Desc_Section08
641 !insertmacro MUI_FUNCTION_DESCRIPTION_END
642
643 ;;; Start function
644 Function .onInit
645   !insertmacro MUI_LANGDLL_DISPLAY
646
647   !include "languages\english.nsh"
648   StrCmp $LANGUAGE ${LANG_FRENCH} French 0
649   StrCmp $LANGUAGE ${LANG_GERMAN} German 0
650   StrCmp $LANGUAGE ${LANG_ITALIAN} Italian 0
651   StrCmp $LANGUAGE ${LANG_HUNGARIAN} Hungarian 0
652   StrCmp $LANGUAGE ${LANG_ROMANIAN} Romanian 0
653   StrCmp $LANGUAGE ${LANG_CATALAN} Catalan 0
654   StrCmp $LANGUAGE ${LANG_BULGARIAN} Bulgarian 0
655   StrCmp $LANGUAGE ${LANG_SLOVAK} Slovak 0
656   StrCmp $LANGUAGE ${LANG_POLISH} Polish 0
657   StrCmp $LANGUAGE ${LANG_DUTCH} Dutch 0
658   StrCmp $LANGUAGE ${LANG_SIMPCHINESE} SChinese 0
659   StrCmp $LANGUAGE ${LANG_FINNISH} Finnish 0
660   StrCmp $LANGUAGE ${LANG_PORTUGUESEBR} Brazilian EndLanguageCmp
661   French:
662   !include "languages\french.nsh"
663   Goto EndLanguageCmp
664   German:
665   !include "languages\german.nsh"
666   Goto EndLanguageCmp
667   Italian:
668   !include "languages\italian.nsh"
669   Goto EndLanguageCmp
670   Hungarian:
671   !include "languages\hungarian.nsh"
672   Goto EndLanguageCmp
673   Romanian:
674   !include "languages\romanian.nsh"
675   Goto EndLanguageCmp
676   Catalan:
677   !include "languages\catalan.nsh"
678   Goto EndLanguageCmp
679   Bulgarian:
680   !include "languages\bulgarian.nsh"
681   Goto EndLanguageCmp
682   Slovak:
683   !include "languages\slovak.nsh"
684   Goto EndLanguageCmp
685   Polish:
686   !include "languages\polish.nsh"
687   Goto EndLanguageCmp
688   Dutch:
689   !include "languages\dutch.nsh"
690   Goto EndLanguageCmp
691   Schinese:
692   !include "languages\schinese.nsh"
693   Goto EndLanguageCmp
694   Finnish:
695   !include "languages\finnish.nsh"
696   Goto EndLanguageCmp
697   Brazilian:
698   !include "languages\brazilian_portuguese.nsh"
699   EndLanguageCmp:
700
701   ReadRegStr $R0  ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" \
702   "UninstallString"
703   StrCmp $R0 "" done
704
705   MessageBox MB_YESNO|MB_ICONEXCLAMATION $Message_AlreadyInstalled IDNO done
706
707   ;Run the uninstaller
708   ;uninst:
709     ClearErrors
710     ExecWait '$R0 _?=$INSTDIR' ;Do not copy the uninstaller to a temp file
711   done:
712
713 FunctionEnd
714
715 ;; End function
716 Section -Post
717   WriteUninstaller "$INSTDIR\uninstall.exe"
718   WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "InstallDir" $INSTDIR
719   WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "Version" "${VERSION}"
720   WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\vlc.exe"
721
722   WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" \
723     "DisplayName" "$(^Name)"
724   WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" \
725     "UninstallString" "$INSTDIR\uninstall.exe"
726   WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" \
727     "InstallLocation" "$INSTDIR"
728   WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" \
729     "DisplayIcon" "$INSTDIR\vlc.exe"
730   WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" \
731     "DisplayVersion" "${PRODUCT_VERSION}"
732   WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" \
733     "URLInfoAbout" "${PRODUCT_WEB_SITE}"
734   WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" \
735     "Publisher" "${PRODUCT_PUBLISHER}"
736   WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" \
737     "VersionMajor"  "@VERSION_MAJOR@"
738   WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" \
739     "VersionMinor" "@VERSION_MINOR@"
740 SectionEnd
741
742 ;;;;;;;;;;;;;;;;;;;;;;;;
743 ; Uninstaller sections ;
744 ;;;;;;;;;;;;;;;;;;;;;;;;
745
746 ; TrimNewlines (copied from NSIS documentation)
747 ; input, top of stack  (e.g. whatever$\r$\n)
748 ; output, top of stack (replaces, with e.g. whatever)
749 ; modifies no other variables.
750
751 Function un.TrimNewlines
752  Exch $R0
753  Push $R1
754  Push $R2
755  StrCpy $R1 0
756
757  loop:
758    IntOp $R1 $R1 - 1
759    StrCpy $R2 $R0 1 $R1
760    StrCmp $R2 "$\r" loop
761    StrCmp $R2 "$\n" loop
762    IntOp $R1 $R1 + 1
763    IntCmp $R1 0 no_trim_needed
764    StrCpy $R0 $R0 $R1
765
766  no_trim_needed:
767    Pop $R2
768    Pop $R1
769    Exch $R0
770 FunctionEnd
771
772 Function un.RemoveEmptyDirs
773   Pop $9
774   !define Index 'Line${__LINE__}'
775   FindFirst $0 $1 "$INSTDIR$9*"
776   StrCmp $0 "" "${Index}-End"
777   "${Index}-Loop:"
778     StrCmp $1 "" "${Index}-End"
779     StrCmp $1 "." "${Index}-Next"
780     StrCmp $1 ".." "${Index}-Next"
781       Push $0
782       Push $1
783       Push $9
784       Push "$9$1\"
785       Call un.RemoveEmptyDirs
786       Pop $9
787       Pop $1
788       Pop $0
789     "${Index}-Remove:"
790     RMDir "$INSTDIR$9$1"
791     "${Index}-Next:"
792     FindNext $0 $1
793     Goto "${Index}-Loop"
794   "${Index}-End:"
795   FindClose $0
796   !undef Index
797 FunctionEnd
798
799 Section "un.$Name_Section91" SEC91
800   SectionIn 1 2 3 RO
801   SetShellVarContext all
802
803   !insertmacro MacroAllExtensions DeleteContextMenu
804   !insertmacro MacroAllExtensions UnRegisterExtensionSection
805   !insertmacro DeleteContextMenuExt "Directory"
806
807   ;remove activex plugin
808   UnRegDLL "$INSTDIR\axvlc.dll"
809   Delete /REBOOTOK "$INSTDIR\axvlc.dll"
810   Delete /REBOOTOK "$INSTDIR\axvlc.dll.manifest"
811
812   ;remove mozilla plugin
813   Push $R0
814   Push $R1
815   Push $R2
816
817   !define Index 'Line${__LINE__}'
818   StrCpy $R1 "0"
819
820   "${Index}-Loop:"
821
822     ; Check for Key
823     EnumRegKey $R0 HKLM "SOFTWARE\Mozilla" "$R1"
824     StrCmp $R0 "" "${Index}-End"
825     IntOp $R1 $R1 + 1
826     ReadRegStr $R2 HKLM "SOFTWARE\Mozilla\$R0\Extensions" "Plugins"
827     StrCmp $R2 "" "${Index}-Loop" ""
828
829     ; old files (0.8.5 and before) that may be lying around
830     Delete /REBOOTOK "$R2\npvlc.dll"
831     Delete /REBOOTOK "$R2\libvlc.dll"
832     Delete /REBOOTOK "$R2\vlcintf.xpt"
833     Goto "${Index}-Loop"
834
835   "${Index}-End:"
836   !undef Index
837   Delete /REBOOTOK "$INSTDIR\npvlc.dll"
838   Delete /REBOOTOK "$INSTDIR\npvlc.dll.manifest"
839
840   RMDir "$SMPROGRAMS\VideoLAN"
841   RMDir /r $SMPROGRAMS\VideoLAN
842
843   FileOpen $UninstallLog "$INSTDIR\uninstall.log" r
844   UninstallLoop:
845     ClearErrors
846     FileRead $UninstallLog $R0
847     IfErrors UninstallEnd
848     Push $R0
849     Call un.TrimNewLines
850     Pop $R0
851     Delete "$INSTDIR\$R0"
852     Goto UninstallLoop
853   UninstallEnd:
854   FileClose $UninstallLog
855   Delete "$INSTDIR\uninstall.log"
856   Delete "$INSTDIR\uninstall.exe"
857   Push "\"
858   Call un.RemoveEmptyDirs
859   RMDir "$INSTDIR"
860
861   DeleteRegKey HKLM Software\VideoLAN
862
863   DeleteRegKey HKCR Applications\vlc.exe
864   DeleteRegKey HKCR AudioCD\shell\PlayWithVLC
865   DeleteRegKey HKCR DVD\shell\PlayWithVLC
866   DeleteRegValue HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\PlayDVDMovieOnArrival" "VLCPlayDVDMovieOnArrival"
867   DeleteRegKey HKLM Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayDVDMovieOnArrival
868   DeleteRegValue HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\PlayCDAudioOnArrival" "VLCPlayCDAudioOnArrival"
869   DeleteRegKey HKLM Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\VLCPlayCDAudioOnArrival
870   DeleteRegKey HKLM Software\Clients\Media\VLC
871   DeleteRegKey HKCR "VLC.MediaFile"
872
873   DeleteRegKey HKLM \
874     "SOFTWARE\MozillaPlugins\@videolan.org/vlc,version=${VERSION}"
875
876   DeleteRegKey HKLM \
877     "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
878
879   Delete "$DESKTOP\VLC media player.lnk"
880
881   DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
882   DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
883   SetAutoClose true
884 SectionEnd
885
886 Section /o "un.$Name_Section92" SEC92
887   !insertmacro delprefs
888 SectionEnd
889
890 ; Uninstaller section descriptions
891 !insertmacro MUI_UNFUNCTION_DESCRIPTION_BEGIN
892   !insertmacro MUI_DESCRIPTION_TEXT ${SEC91} $Desc_Section91
893   !insertmacro MUI_DESCRIPTION_TEXT ${SEC92} $Desc_Section92
894 !insertmacro MUI_UNFUNCTION_DESCRIPTION_END
895
896 ;Function un.onUninstSuccess
897 ;  HideWindow
898 ;  MessageBox MB_ICONINFORMATION|MB_OK \
899 ;    "$(^Name) was successfully removed from your computer."
900 ;FunctionEnd
901
902 Function un.onInit
903   !insertmacro MUI_UNGETLANGUAGE
904
905   !include "languages\english.nsh"
906   StrCmp $LANGUAGE ${LANG_FRENCH} French 0
907   StrCmp $LANGUAGE ${LANG_GERMAN} German 0
908   StrCmp $LANGUAGE ${LANG_ITALIAN} Italian 0
909   StrCmp $LANGUAGE ${LANG_HUNGARIAN} Hungarian 0
910   StrCmp $LANGUAGE ${LANG_ROMANIAN} Romanian 0
911   StrCmp $LANGUAGE ${LANG_CATALAN} Catalan 0
912   StrCmp $LANGUAGE ${LANG_BULGARIAN} Bulgarian 0
913   StrCmp $LANGUAGE ${LANG_SLOVAK} Slovak 0
914   StrCmp $LANGUAGE ${LANG_POLISH} Polish 0
915   StrCmp $LANGUAGE ${LANG_DUTCH} Dutch 0
916   StrCmp $LANGUAGE ${LANG_SIMPCHINESE} SChinese 0
917   StrCmp $LANGUAGE ${LANG_FINNISH} Finnish 0
918   StrCmp $LANGUAGE ${LANG_PORTUGUESEBR} Brazilian EndLanguageCmp
919   French:
920   !include "languages\french.nsh"
921   Goto EndLanguageCmp
922   German:
923   !include "languages\german.nsh"
924   Goto EndLanguageCmp
925   Italian:
926   !include "languages\italian.nsh"
927   Goto EndLanguageCmp
928   Hungarian:
929   !include "languages\hungarian.nsh"
930   Goto EndLanguageCmp
931   Romanian:
932   !include "languages\romanian.nsh"
933   Goto EndLanguageCmp
934   Catalan:
935   !include "languages\catalan.nsh"
936   Goto EndLanguageCmp
937   Bulgarian:
938   !include "languages\bulgarian.nsh"
939   Goto EndLanguageCmp
940   Slovak:
941   !include "languages\slovak.nsh"
942   Goto EndLanguageCmp
943   Polish:
944   !include "languages\polish.nsh"
945   Goto EndLanguageCmp
946   Dutch:
947   !include "languages\dutch.nsh"
948   Goto EndLanguageCmp
949   Schinese:
950   !include "languages\schinese.nsh"
951   Goto EndLanguageCmp
952   Finnish:
953   !include "languages\finnish.nsh"
954   Goto EndLanguageCmp
955   Brazilian:
956   !include "languages\brazilian_portuguese.nsh"
957   EndLanguageCmp:
958
959 FunctionEnd