Subversion Repositories autosfx

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6 daniel-mar 1
 
2
VIATHINKSOFT AUTOSFX
3
====================
4
 
5
Benefits
6
--------
7
 
8
* Compatible with WinRAR and other software (Stub is small enough)
9
* Compatible with Linux' UnZip (No Warnings!)
10
* Compatible with AuthentiCode
11
* Compatible with Windows 7
12
* Compatible with Windows 95
13
* Accepts encrypted files (currently only ZIP 2.0 Standard)
14
 
15
Currently not supported
16
-----------------------
17
 
18
* AES-Encryption (128, 256 Bit)
19
 
20
Current overhead
21
----------------
22
 
23
458 KB (Delphi 2006)
24
 
25
Cancel
26
------
27
 
28
Press ESC to cancel.
29
 
30
The program waits 1 second before starting extraction (Prevention of malicious
31
AutoRun's, which call the creator SFX in an infinite loop)
32
 
33
Structure of a ViaThinkSoft AutoSFX Archive
34
-------------------------------------------
35
 
36
1. Extractor [UPX'ed]
37
   includes DelZip190.dll (B4) as Resource
38
2. ZIP (Offset adjusted)
39
   File comment includes "ViaThinkSoft AutoSFX Archive"
40
3. Optional: Authenticode Certificate
41
 
42
Process
43
-------
44
 
45
1. Extract DelZip DLL into TempDir
46
2. Extract contents directly
47
3. Open the extracted data and/or execute special AutoRun.inf (see below)
48
4. Delete the DLL from TempDir
49
 
50
Behavior
51
--------
52
 
53
ZIP has 1 file
54
	=> Extract DIRECTLY in the specified directory
55
	Is it a directory?
56
		=> Open the new directory in Windows Explorer
57
	is it a file?
58
		=> Open Windows Explorer and select the new file.
59
ZIP has 2+ files
60
	=> Create a directory with the name of the SFX and extract into it
61
	=> Open the new created directory in Windows Explorer
62
 
63
Semantic archive comment
64
------------------------
65
 
66
The extractor looks into the file comment to determinate the behavior
67
while unzipping. YOU can influence the behavior when creating your
68
ZIP files.
69
 
70
Following switches are possible:
71
 
72
  C_ASFX_CB_OVR = 'AutoSFX Conflict Behavior: Overwrite all';
73
  C_ASFX_CB_NEW = 'AutoSFX Conflict Behavior: Overwrite older';
74
  C_ASFX_CB_ASK = 'AutoSFX Conflict Behavior: Ask';
75
  C_ASFX_CB_AVO = 'AutoSFX Conflict Behavior: Avoid'; (default)
76
 
77
  C_ASFX_CP_BEF = 'AutoSFX Comment Presentation: Before extracting';
78
  C_ASFX_CP_AFT = 'AutoSFX Comment Presentation: After extracting';
79
  C_ASFX_CP_NON = 'AutoSFX Comment Presentation: None'; (default)
80
 
81
  C_ASFX_FC_THS = 'AutoSFX Extraction Target: Extract here'; (default)
82
  C_ASFX_FC_DSK = 'AutoSFX Extraction Target: Extract to Desktop';
83
  C_ASFX_FC_ASK = 'AutoSFX Extraction Target: Choose directory';
84
 
85
Note: If you are running the SFX from a CD-Rom, a write-protected
86
directory or a flobby (doesn't matter if it is write-protected!),
87
the extraction "Here" will be ignored and converted into "Desktop".
88
 
89
Note: "Avoid" means that an alternative file/foldername will be
90
determinated.
91
 
92
Special AutoRun.inf
93
-------------------
94
 
95
    [AutoSFX]
96
    Operation=open			; Part of ShellExecute. Usually 'open' or 'runass' (e.g. for admin privilegies)
97
    FileName=AutoRun.exe		; The filename to be executed
98
    Parameters=			; Optional parameters
99
    Directory=			; Optional Working directory
100
    ShowCmd=			; (See MSDN Reference) Usually WS_NORMAL or WS_HIDE
101
    OpenUnzippedContent=true	; After we have opened the application, should we still show the extracted data in Windows Explorer? (Default behavior if not AutoRun is set)
102
 
103
More information about the first 5 values:
104
http://msdn.microsoft.com/en-us/library/bb762153(VS.85).aspx