Home Forums .NET libraries Xceed Zip & Real-Time Zip for .NET Self-exctracting file and DefaultCompressionMethod

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #19841 |

    Hi,

    I have been successful in creating a self-extracting zip file using the default settings. If I change the DefaultCompressionMethod to BWT or BZip2 the exe no longer works. The exe just hangs on the “Overall Progress” dialog. Does the self-extracting exe support these two methods? Is there something else I need to do? Below is a sample of the code used to create the exe. Thank you!

    Dim zip As New ZipArchive(New DiskFile(zipName))
    Dim sfx As New XceedSfxPrefix(New DiskFile(“C:\Program Files\Xceed Components\Bin\Sfx\xcdsfx32.bin”))

    sfx.DefaultDestinationFolder = “<TempFolder>”
    sfx.ExistingFileBehavior = ExistingFileBehavior.OverwriteAlways
    sfx.ExecuteAfter.Add(Xceed.Zip.Sfx.Variables.DestinationFolder & “\\MyProgram.exe|” & “/j:””” & Xceed.Zip.Sfx.Variables.DestinationFolder & “\MyDB.mdb”””)
    sfx.DialogMessages(DialogMessages.DestinationFolder) = String.Empty
    sfx.DialogMessages(DialogMessages.Introduction) = “Welcome to the MyProjam setup. This program will copy some files to your system and then prompt you for the name of the SQL server you want to install the database on.”
    sfx.DialogStrings(DialogStrings.Title) = “MyProgram Setup”

    zip.BeginUpdate()
    zip.SfxPrefix = sfx
    zip.DefaultCompressionMethod = Xceed.Compression.CompressionMethod.BZip2
    zip.EndUpdate()

    UpdateStatus(SS, “Adding mdb to package.”)

    Dim zipFile As New DiskFile(AppDomain.CurrentDomain.BaseDirectory & “\some.mdb”)
    zipFile.CopyTo(zip, True)
    )

    Imported from legacy forums. Posted by Richard (had 2321 views)

    Xceed Support
    Member
    Post count: 5658

    I tried your code and the way you proceed is correct.

    Our self-extractor only supports the “Deflated” and the “Stored” methods. We will change the documentation accordingly.

    Imported from legacy forums. Posted by CharlesB (had 3106 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.