Home Forums General Installation & other Zip for .NET w/self extr used in VB.net

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

    I cant figure out how to use the “Display a License Agreement” feature. Does anyone have any code examples?

    Imported from legacy forums. Posted by Douglas (had 4797 views)

    Xceed Support
    Member
    Post count: 5658

    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>

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

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