Indigo Rose Software
  #1  
Old 09-21-2004
Brett's Avatar
Brett Brett is offline
Indigo Rose Staff Member
 
Join Date: Jan 2000
Posts: 2,001
Thumbs up Screen: Download File Progress

Screen: Download File Progress
Last Revision: September 21, 2004 (001)

Overview
This screen downloads a file from the Internet on a progress bars screen. Full progress and statistics are displayed during the download. The Cancel button cancels the download. As well as being useful in your projects, this screen will also teach you how to:
  • Use the HTTP.Download action
  • Use a callback function during a download
  • Generally use the progress screens

Author Information
This screen was created for use by registered owners of Setup Factory 7.0 by Brett Kapilik. Indigo Rose Corporation does not provide support for any 3rd party screens or addons.

Installation Instructions
To make this screen available to your Setup Factory 7.0 projects, follow the steps below:
  1. Close Setup Factory 7.0, if it is running.
  2. Browse to the folder where Setup Factory 7.0 is installed on your system. By default it is C:\Program Files\Setup Factory 7.0.
  3. Locate the "Screens" folder.
  4. Unzip the contents of Download_File_Progress.zip (see bottom of article) into the Setup Factory 7.0 Screens folder, making sure you preserve the folder structure.
  5. Restart Setup Factory 7.0.
To use this new screen in your project, select Project > Screens from the main menu and click the Before Installing or After Installing tab. Click the Add button and select "Download File Progress" from the screen gallery.

Next, double click the screen and then click the Actions tab. Go to the On Preload event and set the strSourceURL, strDestinationFile and bIsBinaryFile variables.

You should now be able to build and test the screen.

Screen Name: Download File Progress
Type: Setup Factory 7.0 Screen
Created By: Brett Kapilik

Comments? Please post them here.
Attached Images
File Type: jpg download_progress_ss.jpg (55.1 KB, 685 views)
Attached Files
File Type: zip Download_File_Progress.zip (2.8 KB, 847 views)

Last edited by Brett; 09-21-2004 at 04:09 PM.
Reply With Quote
  #2  
Old 03-23-2005
rctshine rctshine is offline
Forum Member
 
Join Date: Mar 2005
Posts: 103
Is there a way to have this download more than one file on this screen?
Reply With Quote
  #3  
Old 04-02-2005
Tek Tek is offline
Forum Member
 
Join Date: Mar 2004
Location: Toronto, ON CANADA
Posts: 691
You should be able to use any of the 'Download Multiple Files' screens already built into TU2 to accomplish this.
Reply With Quote
  #4  
Old 04-12-2005
cyberops cyberops is offline
Forum Member
 
Join Date: Apr 2005
Posts: 3
just a simple question, im using this download and i love it but is it possible where the path is to store it to have it so it download to the current location of the setup ???? i hope someone knows what i mean.
Reply With Quote
  #5  
Old 04-12-2005
Eagle Eagle is offline
Indigo Rose Customer
 
Join Date: Mar 2005
Location: WA 'wait a while' - Australia
Posts: 827
the Lua builtin variable _SourceFolder will return the full Folder path to mysetup.exe.

find the action in the download script that sets the destination path
and change it to for eg: _SourceFolder.."\\mydest.ext"

or _TempLaunchFolder.."\\.... will dload to where irsetup.exe is running.

HTH

..another thing to consider when dloading to dests is to perform a
drive.getfreespace check

look it up in actions ..you can use the dest folder full path if ya like.

Last edited by Eagle; 04-12-2005 at 09:52 PM.
Reply With Quote
  #6  
Old 04-12-2005
cyberops cyberops is offline
Forum Member
 
Join Date: Apr 2005
Posts: 3
thanks, apreciate it.
Reply With Quote
  #7  
Old 04-12-2005
Eagle Eagle is offline
Indigo Rose Customer
 
Join Date: Mar 2005
Location: WA 'wait a while' - Australia
Posts: 827
have fun
Reply With Quote
  #8  
Old 12-28-2006
wasim21k's Avatar
wasim21k wasim21k is offline
Forum Member
 
Join Date: Oct 2006
Posts: 209
Smile thanx m8

thanks m8 was looking for working example you solved my very big problem
Reply With Quote
  #9  
Old 01-07-2007
Shivansps Shivansps is offline
Forum Member
 
Join Date: Jan 2007
Posts: 12
I think that I found a bug, the actions in "on finish" also happen when the download is canceled.
Reply With Quote
  #10  
Old 01-07-2007
Shivansps Shivansps is offline
Forum Member
 
Join Date: Jan 2007
Posts: 12
and, there is any way to download the file to %AppFolder%//*?
Reply With Quote
  #11  
Old 01-11-2007
jassing's Avatar
jassing jassing is offline
Indigo Rose Customer
 
Join Date: Jan 2001
Location: Anderson Island, WA, USA
Posts: 1,899
Quote:
Originally Posted by Shivansps View Post
and, there is any way to download the file to %AppFolder%//*?
In the OnStart
change
Code:
strDestinationFile = _TempFolder.."\\myfile.zip";
to reflect any folder you want!

Code:
strDestinationFile = SessionVar.Expand("%AppFolder%\\myfile.zip");
__________________

Last edited by jassing; 01-11-2007 at 08:11 PM. Reason: Forgot a quote
Reply With Quote
  #12  
Old 01-12-2007
Shivansps Shivansps is offline
Forum Member
 
Join Date: Jan 2007
Posts: 12
oh, thanxs.
Reply With Quote
  #13  
Old 01-13-2007
Shivansps Shivansps is offline
Forum Member
 
Join Date: Jan 2007
Posts: 12
I just noticed if the file was already download before and their are at the "strDestinationFile", when the programs starts to download it again their just override the fully downloaded file by the "downloading one", who is incomplete.

There is any way to avoid this?, maybe disable the override or something, or a warning or something that gives you a chance to abort the download before the file be deleted.
Reply With Quote
  #14  
Old 01-13-2007
jassing's Avatar
jassing jassing is offline
Indigo Rose Customer
 
Join Date: Jan 2001
Location: Anderson Island, WA, USA
Posts: 1,899
Quote:
Originally Posted by Shivansps View Post
I just noticed if the file was already download before and their are at the "strDestinationFile", when the programs starts to download it again their just override the fully downloaded file by the "downloading one", who is incomplete.

There is any way to avoid this?, maybe disable the override or something, or a warning or something that gives you a chance to abort the download before the file be deleted.
Go ahead and check if the file is there -- if it is; don't do the do the actual download -- or better yet; offer a dialog to say "it's there; would you like to re-download?" and then delete the file prior to starting the download.
__________________
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO: Download and Install Files from the Web Support Setup Factory 6.0 Knowledge Base 0 10-23-2002 02:16 PM
HOWTO: Install a Screen Saver Support Setup Factory 6.0 Knowledge Base 0 09-27-2002 02:35 PM
Progress Screen csd214 Setup Factory 6.0 4 02-13-2002 03:00 PM
SUF6002: Progress Screen without User Interaction Hajo Setup Factory 6.0 0 12-15-2001 08:27 PM
Install only into one of several directories with specific existing file? RichardShaw Setup Factory 5.0 0 08-17-2000 03:29 PM


All times are GMT -6. The time now is 08:06 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software