Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2007
    Posts
    5

    File Size during install...

    I don't like the default "Stages" progress bar. I offer the option to copy a lot of big PDF's to the user's hard drive, and the progress bar doesn't show valid information during the copy stage, and customers wonder if it has locked up, etc.

    I have since switched it over to showing the install progress per file (fairly easy via e_CurrentItemPct), however, I would really like to upgrade it with 2 tweaks.

    1) I would like to only update the per-file progress bar if the current file's size is > 1MB so that it doesn't blink a lot for small files, but still shows ones taking >2 seconds to install/copy. How can I tell the size of the current file being installed?

    2) Is there a way to have the primary progress bar show the percentage of total bytes installed vs total bytes to install? At that point, I don't care what "stage" it's in.

  2. #2
    Join Date
    Dec 2007
    Posts
    5
    At the minimum, can I get a count of "external" files there are, and I can at least show '5 of 135 PDF files' to show how far there is to go?

  3. #3
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    You can code it however you want -- so you can have it display progress bars any any text you want at your whim....

    as for how to get a file's size... if you're using external files; you can just inspect the file at runtime... if you're using internal files; "off the top of my head" the answer is no... I know this was a request of mine sometime ago to include the file's sizes (compressed/uncompressed) with SetupData.GetFileList() results....

    I would think your best bet is to change your "while installing" screen to a dual progress bar screen; this shows progress "overall" and "per file" so you can see that something is happening.


    (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)

  4. #4
    Join Date
    Dec 2007
    Posts
    5
    Quote Originally Posted by jassing View Post
    You can code it however you want -- so you can have it display progress bars any any text you want at your whim....
    I figured there was a way, but I don't know how, hence this thread.

    Quote Originally Posted by jassing View Post
    as for how to get a file's size... if you're using external files; you can just inspect the file at runtime... if you're using internal files; "off the top of my head" the answer is no... I know this was a request of mine sometime ago to include the file's sizes (compressed/uncompressed) with SetupData.GetFileList() results....
    External files. Ok, so I found an example of getting sum of total bytes of files I will need to copy, and am looking at updating the overall progress bar based on bytes copied for multiple files.

    Quote Originally Posted by jassing View Post
    I would think your best bet is to change your "while installing" screen to a dual progress bar screen; this shows progress "overall" and "per file" so you can see that something is happening.
    I think I will, but I don't like their default "stages" for the top bar. I want it to reflect % of total file bytes copied/to be copied.

    Right now in the "On Preload" of the "While Installing" dialog, I am trying to find all files, and add up their sizes.

    But, I'm not sure how to then use that number to update the 'DlgProgressBar.SetPos(CTRL_PROGRESS_BAR_01, e_StagePct);' value with a percentage of overall bytes copied.

    When is that code executed? Every 1%? Every 1 second? I couldn't find anything on that in the help.

Posting Permissions

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