Many AppV client issue’s are solved by clearing the virtual application cache. Also while troubleshooting sequenced applications whipping the cache is a common task. Here are several possibilities to clear the Softgrid cache.
First, get a list of all AppV applications:
sftmime query obj:app /short
Remove all applications from the cache:
sftmime.exe remove obj:app /global /complete
Remove a specific application from the cache:
sftmime.exe remove app:”applicationName” /complete
Or if you need to wipe the complete cache, set the Registry State key to zero:
Changing the State key to zero, and reboot the machine. This will completely clear the file system cache.
Update: I had to clear the User Cache for a specific application only, let’s call it “MyApp v1.0”. Using some batch- and OSD-scripting I was getting there.
SET _Path=C:\Users\%username%\AppData\Roaming\SoftGrid Client\%appDir%
:: ### CHECK ###
If exist “%_logfile%” goto SKIP
:: ### REMOVE MyApp USER CACHE ###
If exist “%_Path%” rd “%_Path%” /S /Q
echo MyApp v1.0 AppV user cache cleared >> “%_logfile%”
echo Script already did his job before, quitting ..
echo End script
OSD-script (to launch the batch script);
<SCRIPT EVENT=”LAUNCH” TIMING=”PRE” PROTECT=”FALSE” WAIT=”TRUE” TIMEOUT=”0″>