Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2005
    Location
    Indianaoplis, IN USA
    Posts
    127

    Progress Screen (not dlg) for creating Zips

    I've currently got a setup util that can create a zip file during the install process. It currently shows several small dialog boxes with status bars as they zip.

    Pretty straightforward, I know, but here is the code
    Code:
    Zip.Add(SessionVar.Expand("%AppFolder%\\Backup.zip"), FileTable, false, "", 5, nil, true);
    I'd like to use a 2-bar Progress Screen (Top for total progress, Bottom for individual files) instead of the dialog boxes. I'm not quite savvy enough yet to figure out how to make this happen. Do I need to write a Function to do it? Honestly, I'm not sure how to identify the Control ID for the progress bars when I add them to the Screens list.

    Basically I've hit my first wall, and I'm hoping someone here can point me in the right direction.

    Thanks!
    Last edited by HMMurdock; 03-08-2005 at 01:50 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    Indianaoplis, IN USA
    Posts
    127
    Well, I'm flailing along at this, and here is what I have so far. I've got progress bars, but they aren't quite working right...

    Here's the function I'm using:
    Code:
    function fcnZipCallback(String,Percent)
    SessionVar.Set("%DBFileName%", String)
        if(bCancelled)then
        -- Abort the download...
            return false;
        end
        DlgStaticText.SetProperties(CTRL_STATICTEXT_LABEL_01,{Text= "Backup Status"});
        DlgStaticText.SetProperties(CTRL_STATICTEXT_LABEL_02,{Text= SessionVar.Expand("%DBFileName%")});
    
        if(Percent > 0)then
            TotalComplete = TotalComplete + (Percent / 8);
        end
    
        DlgProgressBar.SetPos(CTRL_PROGRESS_BAR_01,TotalComplete);
        DlgProgressBar.SetPos(CTRL_PROGRESS_BAR_02,Percent);
    
        return true;
    end
    My top Status bar isn't working (properly) it seems to advance faster than the bottom. (it should advance at 1/8th the speed of the bottom, as it's zipping 8 files in total)

    The bottom status bar works great, but it's not displaying the filenames. (interetingly enough, I accidentally had it on the top bar, and it worked fine there... moved it to the bottom... now I get nothing)

    I'll continue to play around with it, but if anyone sees any obvious mistakes I'll happily take any input.

    Thanks

Similar Threads

  1. Screen: Download File Progress
    By Brett in forum Setup Factory 8.0 Examples
    Replies: 13
    Last Post: 01-13-2007, 09:24 PM
  2. HOWTO: Make a Media Player Object Go Full Screen
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-23-2002, 11:23 AM
  3. 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
  4. Progress Screen
    By csd214 in forum Setup Factory 6.0
    Replies: 4
    Last Post: 02-13-2002, 02:00 PM
  5. SUF6002: Progress Screen without User Interaction
    By Hajo in forum Setup Factory 6.0
    Replies: 0
    Last Post: 12-15-2001, 07:27 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