Home Forums .NET libraries Xceed Zip & Real-Time Zip for .NET Launching a file after self extraction…

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

    I’m using the 20 day demo for the .zip component.

    I’m trying to lauch an exe that I have zipped and am self extracting. I have tried the following syntax:

    EXEPrefix.ExecuteAfter.Add(Xceed.Zip.Sfx.Variables.SfxFolder + “\\setup.exe”);
    EXEPrefix.ExecuteAfter.Add(Xceed.Zip.Sfx.Variables.SfxFolder + “setup.exe”);
    EXEPrefix.ExecuteAfter.Add(Xceed.Zip.Sfx.Variables.TempFolder + “\\ABC\\setup.exe”);
    EXEPrefix.ExecuteAfter.Add(Xceed.Zip.Sfx.Variables.TempFolder + “ABC\\setup.exe”);
    EXEPrefix.ExecuteAfter.Add(“%temp%\\ABC\\setup.exe”);

    But nothing launches the setup after extraction.

    If I go with:

    EXEPrefix.ExecuteAfter.Add(setup.exe”);

    I get into windows setup.

    Any suggestions as to what I am doing wrong?

    Thanks,

    Carl.

    Imported from legacy forums. Posted by Truth (had 2965 views)

    User (Old forums)
    Member
    Post count: 23064

    Hello Truth.

    You must use Xceed.Zip.Sfx.Variables.DestinationFolder. This is the folder where the files are unzipped by the SFX. If your setup.exe file is zipped with a path (e.g. “ABC”), you would use:

    Xceed.Zip.Sfx.Variables.DestinationFolder + “\\ABC\\setup.exe”

    If you zip it directly in the zip file’s root, it would be:

    Xceed.Zip.Sfx.Variables.DestinationFolder + “\\setup.exe”

    Imported from legacy forums. Posted by Martin (had 3818 views)

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