Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Self Extracting zip
stu265
Newbie

Posts: 1
Registered: 1/6/2005
Member Is Offline
posted on 1/6/2005 at 07:05 PM Reply With Quote
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.
View User's Profile View All Posts By User U2U Member
wit
Member

Posts: 23
Registered: 11/19/2004
Member Is Offline
posted on 7/1/2005 at 06:50 PM Reply With Quote

Could you please provide the code you used to create SFX zip archive?
View User's Profile View All Posts By User U2U Member
fessen
Newbie

Posts: 1
Registered: 10/2/2006
Member Is Offline
posted on 10/2/2006 at 06:00 AM Reply With Quote
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
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 10/2/2006 at 10:52 PM Reply With Quote

Recently there was an update to the Zip component. All interested please submit support tickets with the update requests.
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Free Download Free Download
Product Documentation Documentation
Documenation Page
Code Samples
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004