??????? ????????????????? ??????? SFX
Aspose.zip ????????? ????????? ???????????????? (SFX) ?????. ??? ?????? ??? Zipple File, ??????? ????? ?????????? ????? ?????. Exe. ?? ?????? ??????????? ???????????? ????? ?????????????, ?????? ??????? ???.
???????? ???????????????? ?????
??????? ??????????????? ???????? ????????? SelfExtractorOptions ? ????????? ??? ArchivesaveOptions ??? ??????????.
1try (fileOutputStream ZipFile = new FileOutputStream ("archive.exe")) {
2 ?????????? (Archive Archive = new Archive ()) {
3 archive.createEntry ("entry.bin", "data.bin");
4 ArchivesaveOptions Options = new ArchivesaveOptions ();
5 Options.SetShipxTractorOptions (New SelfExtractorOptions ());
6 archive.save (zipfile, ?????);
7 }
8} catch (ioException ex) {
9}?????? ????????????????? ??????
?????, ??????? ?? ???????????, ???????? ??????????? ? ??????? .NET Framework 2.0 ??? ???? ??? ???????. ????? ????? ???????? Windows Vista ? ????.
?? ?????? ????????? ??? ??? ??????? ????????? ? ??????? ???????? ?????? ??? ????????? ?? ????? ????????? ????????? ??????.
???? ?? ?????? ?????? ?????????? ?????????????, ??????? ????? ????????? ?????? -AutoExtract. ???????:
1C:\>archive.exe -autoExtract -password:T0p$ecret????????? ????????? ?????? ??? ????????????????? ??????
| Option | Meaning | Sample |
|---|---|---|
| -autoExtract | Primary option - without it decompression does not start. Extraction starts automatically, other options apply. | sfx.exe -autoExtract |
| -autoClose | Window closes when the extraction is complete. This option only makes sense if -autoExtract option is present. | sfx.exe -autoExtract -autoClose |
| -forceOverwrite | Overwrites all existing files without prompt if there are any. This option only makes sense if -autoExtract option present. | sfx.exe -autoExtract -forceOverwrite |
| -password: | Provides a password to encrypted entries. This option only makes sense if -autoExtract option is present. If you have spaces within the password quote it. | sfx.exe -autoExtract -password:T0p$ecret |
| -destination: | Extracts files to the supplied directory. This option only makes sense if -autoExtract option is present. If you have spaces within the path quote it. | sfx.exe -autoExtract -destination:"C:\My Documents" |
?? ?????? ???????????? ??? ????????? ??? ????????? ????????? ??????? ? Windows.