Indigo Rose Software
  #1  
Old 12-05-2005
Nagesh Nagesh is offline
Forum Member
 
Join Date: Sep 2005
Posts: 15
Ziping the files

Hi

I am able to zip the files using zip.add method. but when i used callback function it is not firing at all. Please help me .


Nagesh
  #2  
Old 12-05-2005
Brett's Avatar
Brett Brett is offline
Indigo Rose Staff Member
 
Join Date: Jan 2000
Posts: 2,001
Please post your script so that we can see what you have tried so far.
  #3  
Old 12-05-2005
Nagesh Nagesh is offline
Forum Member
 
Join Date: Sep 2005
Posts: 15
Quote:
Originally Posted by Brett
Please post your script so that we can see what you have tried so far.
I used code like this . the code is not working at all. Can you give me any clue
or any suggestin how to resolve this isssue

Nagesh

Zip.Add(_zipPath, tblFiles, true, "", 5, ZipCallback, true)
function ZipCallback(Message, Percent, Mode)

if(screen_globals.Cancelled) then
return false;
end

Dialog.Message("", "zipping");

if (Mode==ZIP_STATUS_MAJOR) then
-- Update the major status (the whole zip file's status)
DlgStaticText.SetProperties(CTRL_STATICTEXT_LABEL_ 01, {Text="zipping"});
DlgProgressBar.SetPos(CTRL_PROGRESS_BAR_01, Percent);
else
-- Update the minor status (the status of the current file being zipped)
DlgStaticText.SetProperties(CTRL_STATICTEXT_LABEL_ 02, {Text="zipped"});
DlgProgressBar.SetPos(CTRL_PROGRESS_BAR_01, Percent);
end
error = Application.GetLastError();
Dialog.Message("", _tblErrorMessages[error]);

return true;
end
  #4  
Old 12-05-2005
Mark's Avatar
Mark Mark is offline
Indigo Rose Staff Member
 
Join Date: Jun 2000
Location: Indigo Rose Software
Posts: 1,773
Hi Nagesh,

Try putting the call to Zip.Add() after your function. Since you are defining ZipCallback after the call to Zip.Add(), ZipCallback does not exist at the time you call Zip.Add().
__________________
MSI Factory The Next Generation Intelligent Setup Builder
  #5  
Old 12-05-2005
Nagesh Nagesh is offline
Forum Member
 
Join Date: Sep 2005
Posts: 15
Thanks

Nagesh
 

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
Unable to find software? NigelLacey Visual Patch 2.0 4 10-11-2005 11:35 AM
method to index/compare user's files for update? intel352 Setup Factory 6.0 0 01-15-2003 04:08 PM
INFO: Why Files are Renamed in the DATA Folder Support AutoPlay Media Studio 4.0 Examples 0 10-24-2002 04:36 PM
HOWTO: "Hide" Externally Referenced Files Support AutoPlay Media Studio 4.0 Examples 0 10-23-2002 04:19 PM
HOWTO: Remove Files that were Installed by a Patch or Alternate Source Support Setup Factory 6.0 Knowledge Base 0 09-24-2002 10:49 AM


All times are GMT -6. The time now is 05:08 AM.


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