; 3. Delete prefs and cache ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+!macro gencache
+ SetShellVarContext all
+ CreateDirectory "$APPDATA\\VideoLAN"
+ CreateDirectory "$APPDATA\\VideoLAN\\VLC"
+ ExecWait "$INSTDIR\vlc-cache-gen.exe $APPDATA\\VideoLAN\\VLC"
+ SetShellVarContext current
+!macroend
+
!macro delprefs
StrCpy $0 0
!define Index 'Line${__LINE__}'
Goto "${Index}-Loop"
"${Index}-End:"
!undef Index
+ SetShellVarContext all
+ RMDir /r "$APPDATA\\VideoLAN"
+ SetShellVarContext current
!macroend
;;;;;;;;;;;;;;;
; VLC.exe, libvlc.dll
!insertmacro InstallFile vlc.exe
!insertmacro InstallFile vlc.exe.manifest
+ !insertmacro InstallFile vlc-cache-gen.exe
; All dlls
!insertmacro InstallFile *.dll
@BUILD_SKINS_TRUE@ !insertmacro InstallFolder skins
@BUILD_HTTPD_TRUE@ !insertmacro InstallFolder http
@BUILD_LUA_TRUE@ !insertmacro InstallFolder lua
+ !insertmacro gencache
; URLs