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