Cached 7zip files and triggering a fresh download strats?
Posted: Wed Dec 07, 2011 5:18 pm
My CD based install points to a URL with a single 7zip file that has my 5 exe files. This works fine.
I noticed that on a second install that it uses the cashed version even though the web based version is newer. If I clear the IE cache then it works fine but I do not want to have to have my customers do that step.
Here is what I want to try:
A) I could try to write code to remove the Cached copy at the end of the install (Vista / 7 might not like that).
I found the 7zip here: "%USERPROFILE%\Temporary Internet Files\" I tested deleting the 7zip in a command window and it worked.
How do I read the Windows Virtual Path %USERPROFILE% into a variable so I can use it in the path for the "Recursively Delete Files" command?
B) Try to change the cache location if you allow? Then easily delete the old 7zip when I want the new 7Zip to download.
C) Force trigger a new download of the 7zip. How do I do this? Can I use the monitored update.ini?
D) Run my own App before the install or DLL during to remove the cached copy. (This might be the easy solution!)
Thanks, I almost got it but need a little more advise.
I noticed that on a second install that it uses the cashed version even though the web based version is newer. If I clear the IE cache then it works fine but I do not want to have to have my customers do that step.
Here is what I want to try:
A) I could try to write code to remove the Cached copy at the end of the install (Vista / 7 might not like that).
I found the 7zip here: "%USERPROFILE%\Temporary Internet Files\" I tested deleting the 7zip in a command window and it worked.
How do I read the Windows Virtual Path %USERPROFILE% into a variable so I can use it in the path for the "Recursively Delete Files" command?
B) Try to change the cache location if you allow? Then easily delete the old 7zip when I want the new 7Zip to download.
C) Force trigger a new download of the 7zip. How do I do this? Can I use the monitored update.ini?
D) Run my own App before the install or DLL during to remove the cached copy. (This might be the easy solution!)
Thanks, I almost got it but need a little more advise.