]> git.sesse.net Git - vlc/blobdiff - extras/package/win32/vlc.win32.nsi.in
Win32: fix the path to the plugins cache
[vlc] / extras / package / win32 / vlc.win32.nsi.in
index aba00fa426801e9f2063fc098e05584a9f04e5ae..0c91243e4aafcafa225103cb384f92723e962282 100644 (file)
@@ -326,21 +326,9 @@ FunctionEnd
 !macroend
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-; 3. Delete prefs and cache ;
+; 3. Delete prefs           ;
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 
-Function ExecCacheGen
-  ExecWait "$INSTDIR\vlc-cache-gen.exe $APPDATA\VideoLAN\VLC"
-FunctionEnd
-
-!macro gencache
-  SetShellVarContext all
-  CreateDirectory "$APPDATA\VideoLAN"
-  CreateDirectory "$APPDATA\VideoLAN\VLC"
-  !insertmacro UAC.CallFunctionAsUser ExecCacheGen
-  SetShellVarContext current
-!macroend
-
 !macro delprefs
   StrCpy $0 0
   !define Index 'Line${__LINE__}'
@@ -459,7 +447,7 @@ Section $Name_Section01 SEC01
 @BUILD_SKINS_TRUE@   !insertmacro InstallFolder skins
 @BUILD_HTTPD_TRUE@   !insertmacro InstallFolder http
 @BUILD_LUA_TRUE@     !insertmacro InstallFolder lua
-  !insertmacro gencache
+  ExecWait "$INSTDIR\vlc-cache-gen.exe $INSTDIR\plugins"
 
 
   ; URLs