\r
Var UninstallLog\r
\r
+!macro OpenUninstallLog\r
+ FileOpen $UninstallLog "$INSTDIR\uninstall.log" w\r
+ FileSeek $UninstallLog 0 END\r
+!macroend\r
+\r
+!macro CloseUninstallLog\r
+ FileClose $UninstallLog\r
+ SetFileAttributes "$INSTDIR\uninstall.log" HIDDEN\r
+!macroend\r
+\r
!macro InstallFile FILEREGEX\r
File "${FILEREGEX}"\r
!define Index 'Line${__LINE__}'\r
SetShellVarContext all\r
SetOutPath "$INSTDIR"\r
\r
- FileOpen $UninstallLog "$INSTDIR\uninstall.log" w\r
- FileSeek $UninstallLog 0 END\r
+ !insertmacro OpenUninstallLog\r
\r
!insertmacro InstallFile vlc.exe\r
!insertmacro InstallFile vlc.exe.manifest\r
"${PRODUCT_WEB_SITE}/doc/"\r
FileWrite $UninstallLog "Documentation.url$\r$\n"\r
\r
- FileClose $UninstallLog\r
- SetFileAttributes "$INSTDIR\uninstall.log" HIDDEN\r
+ !insertmacro CloseUninstallLog\r
\r
; Add VLC to "recomended programs" for the following extensions\r
WriteRegStr HKCR Applications\vlc.exe "" ""\r
\r
Section /o "Mozilla plugin" SEC03\r
SectionIn 2 3\r
- File /r mozilla\r
+\r
+ !insertmacro OpenUninstallLog\r
+ !insertmacro InstallFolder mozilla\r
+ !insertmacro CloseUninstallLog\r
\r
; doesn't work. bug in mozilla/mozilla firefox or moz documentation (xpt file isn't loaded)\r
; see mozilla bugs 184506 and 159445\r
Section "ActiveX plugin" SEC04\r
SectionIn 2 3\r
SetOutPath "$INSTDIR"\r
- File activex\axvlc.dll\r
+ !insertmacro OpenUninstallLog\r
+ !insertmacro InstallFile activex\axvlc.dll\r
+ !insertmacro CloseUninstallLog\r
RegDLL "$INSTDIR\axvlc.dll"\r
SectionEnd\r
\r
Section "Context Menus" SEC05\r
- SectionIn 2 3\r
+ SectionIn 2\r
!insertmacro MacroAllExtensions AddContextMenu\r
!insertmacro AddContextMenu "Directory"\r
SectionEnd\r
SectionEnd\r
\r
Section /o "un.Delete preferences and cache" SEC92\r
+ SectionIn 2 3 RO\r
!insertmacro delprefs\r
SectionEnd\r
\r