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.
Cached 7zip files and triggering a fresh download strats?
Re: Cached 7zip files and triggering a fresh download strats
Hi,
A) You can simply use the Get Environment MSIcode command to get that variable.
B) You cannot change the location of the cache.
C) You again cannot do this - however you can trigger an update by calling the setup with the /update flag.
D) You can run your own DLL anytime using the Call DLL Function MSIcode command.
A) You can simply use the Get Environment MSIcode command to get that variable.
B) You cannot change the location of the cache.
C) You again cannot do this - however you can trigger an update by calling the setup with the /update flag.
D) You can run your own DLL anytime using the Call DLL Function MSIcode command.
Aviv Giladi
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: Cached 7zip files and triggering a fresh download strats
I ended up using option D. I had to use the Windows API to cause the 7zip to be deleted right away or it was only queued to delete some time later. Also I had to remove the cached install files to guarantee that every install would download a fresh 7zip. I would have preferred the installer to check if the 7zip online was newer than the cached one but this workaround works. Thanks for all the help.
I also tested local paths by using local browser urls to see if the installer would find an alternate 7zip in a path as in a sub folder on a CD. (file:///d:/SetupLocal/xxxxx.7zip)
I thought that I was told that this would not work in another tread but I tested it and it seemed worked fine except it does not cache.
Question: The manual says that the installer will check each Web Media Block URL in order and if one fails then it will move to the next. Will this work like the manual says all of the time? This way my newer Web based Web Media Block will be used if the internet is up and the sub folder CD based one will only be used on fail of the internet.
I also tested local paths by using local browser urls to see if the installer would find an alternate 7zip in a path as in a sub folder on a CD. (file:///d:/SetupLocal/xxxxx.7zip)
I thought that I was told that this would not work in another tread but I tested it and it seemed worked fine except it does not cache.
Question: The manual says that the installer will check each Web Media Block URL in order and if one fails then it will move to the next. Will this work like the manual says all of the time? This way my newer Web based Web Media Block will be used if the internet is up and the sub folder CD based one will only be used on fail of the internet.
Re: Cached 7zip files and triggering a fresh download strats
Hi,
Yes - that could be a solution. Please give it a try and report back!
Yes - that could be a solution. Please give it a try and report back!
Aviv Giladi
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: Cached 7zip files and triggering a fresh download strats
Hi
I am having the same problem. My new 7zip files i have uploaded are not being downloaded if i have previously installed the application. I have read the 'solution' which seems cumbersome. Is there no way of telling InstallAware to download the files from the website every time and never use the cached version?
Thanks
Andrew
I am having the same problem. My new 7zip files i have uploaded are not being downloaded if i have previously installed the application. I have read the 'solution' which seems cumbersome. Is there no way of telling InstallAware to download the files from the website every time and never use the cached version?
Thanks
Andrew
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Cached 7zip files and triggering a fresh download strats
Dear Andrew,
if you distribute an update of your package (which uninstalls first your previous product), all your web media blocks will be downloaded once again.
Of course, I am not referring to runtimes packages distributed as web media block.
These ones, if are already installed are not downloaded again.
Hope this helps you.
Regards.
if you distribute an update of your package (which uninstalls first your previous product), all your web media blocks will be downloaded once again.
Of course, I am not referring to runtimes packages distributed as web media block.
These ones, if are already installed are not downloaded again.
Hope this helps you.
Regards.
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: Cached 7zip files and triggering a fresh download strats
Thanks for the extra information. I will look into that.
Who is online
Users browsing this forum: No registered users and 125 guests