stu265
Newbie
Posts: 1
Registered: 1/6/2005
Member Is Offline
|
| posted on 1/6/2005 at 07:05 PM |
|
|
Self Extracting zip
I've used the examples to create a self extracting zip but is there something I need to do to extract the files automatically? I get a corrupt
file message if I double click on the .exe that is created.
|
|
|
wit
Member
Posts: 24
Registered: 11/19/2004
Member Is Offline
|
| posted on 7/1/2005 at 06:50 PM |
|
|
Could you please provide the code you used to create SFX zip archive?
|
|
|
fessen
Newbie
Posts: 1
Registered: 10/2/2006
Member Is Offline
|
| posted on 10/2/2006 at 06:00 AM |
|
|
sfx
Hi guys,
i have the same problem.
zip file is created perfectly, but when clicking the created .exe it gives a warning : error reading archive.2
the code :
Set Zip = Server.CreateObject("SoftComplex.Zip")
zip.CompressMode = 9
'create temporary file name for output zip file
'response.write(Server.MapPath(".") & "<br>")
FileName = Zip.GetTempFileName(Server.MapPath(".") & "\clientfiles", session.SessionID , ".zip")
'response.write(filename & "<br>")
'create new zip file
Zip.New(FileName)
'set root folder
Zip.RootDirectory = Server.MapPath(".") & "\clientfiles"
'add files to archive
Zip.FileList.Add("*.*")
FileList = GetStringsText(Zip.FileList, "; ")
'save zip file
FileCount = Zip.Save
Zip.SFXDialogTitle = "helpdesk files are being extracted"
zip.SFXEnableAutoRun = true
Zip.SFXEnableFilesCustomSelection = False
Zip.SFXForceDefaultOverwriteAction = true
Zip.SFXRunCommandAfterExtraction = "internal.exe"
Zip.SFXEnableFileListControl = false
zip.SFXEnableCancel = false
Zip.SaveAsSFX("")
thnx
|
|
|
tigra
Administrator
Posts: 1869
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 10/2/2006 at 10:52 PM |
|
|
Recently there was an update to the Zip component. All interested please submit support tickets with the update requests.
|
|
|