Cached 7zip files and triggering a fresh download strats?

Got a problem you cannot solve? Try here.
craigism
Posts: 9
Joined: Sun Nov 27, 2011 10:29 pm

Cached 7zip files and triggering a fresh download strats?

Postby craigism » 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.

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Cached 7zip files and triggering a fresh download strats

Postby giaviv » Thu Dec 08, 2011 4:37 am

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.
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

craigism
Posts: 9
Joined: Sun Nov 27, 2011 10:29 pm

Re: Cached 7zip files and triggering a fresh download strats

Postby craigism » Thu Dec 08, 2011 6:23 pm

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.

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Cached 7zip files and triggering a fresh download strats

Postby giaviv » Fri Dec 09, 2011 9:39 pm

Hi,

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

agrogers
Posts: 21
Joined: Fri Jul 04, 2008 12:09 am
Location: Australia
Contact:

Re: Cached 7zip files and triggering a fresh download strats

Postby agrogers » Sun Mar 03, 2013 4:56 am

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

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Cached 7zip files and triggering a fresh download strats

Postby FrancescoT » Mon Mar 04, 2013 12:36 pm

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.
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

agrogers
Posts: 21
Joined: Fri Jul 04, 2008 12:09 am
Location: Australia
Contact:

Re: Cached 7zip files and triggering a fresh download strats

Postby agrogers » Mon Mar 04, 2013 5:52 pm

Thanks for the extra information. I will look into that.


Return to “Technical Support”

Who is online

Users browsing this forum: Baidu [Spider] and 96 guests