Subversion Repositories autosfx

Rev

Rev 4 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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