Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 14 of 14
  1. #1
    Join Date
    Jan 2000
    Posts
    2,002

    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
    Attached Files
    Last edited by Brett; 09-21-2004 at 03:09 PM.

  2. #2
    Join Date
    Mar 2005
    Posts
    103
    Is there a way to have this download more than one file on this screen?

  3. #3
    Join Date
    Mar 2004
    Location
    Toronto, ON CANADA
    Posts
    696
    You should be able to use any of the 'Download Multiple Files' screens already built into TU2 to accomplish this.

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

  5. #5
    Join Date
    Mar 2005
    Location
    WA 'wait a while' - Australia
    Posts
    872
    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 08:52 PM.

  6. #6
    Join Date
    Apr 2005
    Posts
    3
    thanks, apreciate it.

  7. #7
    Join Date
    Mar 2005
    Location
    WA 'wait a while' - Australia
    Posts
    872
    have fun

  8. #8
    Join Date
    Oct 2006
    Posts
    209

    Smile thanx m8

    thanks m8 was looking for working example you solved my very big problem

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

  10. #10
    Join Date
    Jan 2007
    Posts
    12
    and, there is any way to download the file to %AppFolder%//*?

  11. #11
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    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 07:11 PM. Reason: Forgot a quote


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  12. #12
    Join Date
    Jan 2007
    Posts
    12
    oh, thanxs.

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

  14. #14
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    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.


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

Similar Threads

  1. HOWTO: Download and Install Files from the Web
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-23-2002, 01:16 PM
  2. HOWTO: Install a Screen Saver
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-27-2002, 01:35 PM
  3. Progress Screen
    By csd214 in forum Setup Factory 6.0
    Replies: 4
    Last Post: 02-13-2002, 02:00 PM
  4. SUF6002: Progress Screen without User Interaction
    By Hajo in forum Setup Factory 6.0
    Replies: 0
    Last Post: 12-15-2001, 07:27 PM
  5. Replies: 0
    Last Post: 08-17-2000, 02:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts