Home › Forums › .NET libraries › Xceed Zip & Real-Time Zip for .NET › Launching a file after self extraction…
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:
I get into windows setup.
Any suggestions as to what I am doing wrong?
Imported from legacy forums. Posted by Truth (had 2965 views)
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)