Welcome to the Xceed Community Sign in | Join | Help
Community Search  

Zip for .NET w/self extr used in VB.net

Sort Posts: Previous Next
  •  11-06-2007, 3:44 PM Post no. 6460

    Zip for .NET w/self extr used in VB.net

    I cant figure out how to use the "Display a License Agreement" feature. Does anyone have any code examples?
  •  11-06-2007, 5:11 PM Post no. 6461 in reply to 6460

    Re: Zip for .NET w/self extr used in VB.net

    Here is some sample code to accomplish that:

    <code>
    Private Shared Sub SFXLicenseAgreementForum10445()
    Dim zip As New ZipArchive(New DiskFile("D:\Forum10445\MySelfExtract.exe"))

    Dim sfx As New XceedSfxPrefix(New DiskFile("C:\Program Files\Xceed Components\Bin\Sfx\xcdsfx32.bin"))
    sfx.DefaultDestinationFolder = "D:\Dump\"
    sfx.ExistingFileBehavior = ExistingFileBehavior.OverwriteAlways

    sfx.DialogMessages(DialogMessages.License) = "This is the license agreement"

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

    Dim zipFile As New DiskFile("D:\Test.txt")
    zipFile.CopyTo(zip, True)
    End Sub
    </code>
    Charles Bérubé-Rémillard
    Technical Support
    Xceed Software Inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.