OSDN Git Service

a4796a68c5aafa85f0224c046fb744a2b104df76
[sevenzip/7-Zip.git] / www.7-zip.org / faq.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">\r
2 <HTML><HEAD>\r
3 <META http-equiv="CONTENT-TYPE" content="TEXT/HTML; CHARSET=UTF-8">\r
4 <LINK href="/style.css" rel="stylesheet" type="text/css">\r
5 <TITLE>Frequently Asked Questions (FAQ)</TITLE>\r
6 <META name="keywords" content="7z, lzma, 7-zip, faq">\r
7 </HEAD>\r
8 <BODY>\r
9 <TABLE cellspacing=10 cellpadding=10 border=0 width="100%"><TR>\r
10 <TD class="MenuColumn" valign="top">\r
11 <TABLE cellpadding=2 cellspacing=0 border=0 width="100%">\r
12 <TR><TD><IMG width=110 height=63 src="/7ziplogo.png" alt="7-Zip" border=0></TD></TR>\r
13 <TR><TD><HR></TD></TR></TABLE>\r
14 <TABLE cellpadding="2" cellspacing="0" border="0">\r
15 <TR><TD><A href="./" class="MenuLink">Home</A></TD></TR>\r
16 <TR><TD><A href="7z.html" class="MenuLink">7z Format</A></TD></TR>\r
17 <TR><TD><A href="sdk.html" class="MenuLink">LZMA SDK</A></TD></TR>\r
18 <TR><TD><A href="download.html" class="MenuLink">Download</A></TD></TR>\r
19 <TR><TD><SPAN class="MenuCurrent">FAQ</SPAN></TD></TR>\r
20 <TR><TD><A href="support.html" class="MenuLink">Support</A></TD></TR>\r
21 <TR><TD><A href="links.html" class="MenuLink">Links</A></TD></TR>\r
22 </TABLE>\r
23 <TABLE cellpadding=2 cellspacing=0 border=0 width="100%">\r
24 <TR><TD><HR></TD></TR>\r
25 </TABLE>\r
26 \r
27 <form action="https://www.paypal.com/cgi-bin/webscr" method="post">\r
28 <input type="hidden" name="cmd" value="_s-xclick">\r
29 <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHLwYJKoZIhvcNAQcEoIIHIDCCBxwCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVV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MjIxMTkwNjIzWjAjBgkqhkiG9w0BCQQxFgQUL3zwPrNya0k6JChZKiBVElErxCUwDQYJKoZIhvcNAQEBBQAEgYA6iMCFHWYSQv+itFi1icdosBuz59TAUb1KFzI5j+xr2qxmGP1Z1j3ttSZtf8hSAmSJX/vk2J+1i4rUMf809L82wAb3G4HhpfpkHwMiTSntO4D1mXhpiWJ4o+Hy5aabPRWHN7uM4idaXKvvRhTPJmn/3v1e3iM9XoqVam0P3HYRbQ==-----END PKCS7-----\r
30 ">\r
31 <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">\r
32 <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">\r
33 </form>\r
34 \r
35 <P>\r
36 <B>English</B><BR>\r
37 <A href="http://sparanoid.com/lab/7z/">Chinese Simpl.</A><BR>\r
38 <A href="http://www.developershome.com/7-zip/">Chinese Trad.</A><BR>\r
39 <A href="http://7zip-eo.rnbastos.com/">Esperanto</A><BR>\r
40 <A href="http://www.spiroo.be/7zip/">French</A><BR>\r
41 <A href="http://www.7-zip.web.id/">Indonesian</A><BR>\r
42 <A href="http://sevenzip.sourceforge.jp/">Japanese</A><BR>\r
43 <A href="http://7-zip.org.pl/">Polish</A><BR>\r
44 <A href="http://7zip.rnbastos.com/">Portuguese Brazil</A><BR>\r
45 <A href="http://7zip-es.updatestar.com/">Spanish</A><BR>\r
46 <A href="http://7zip-thai.inetbridge.net/">Thai</A><BR>\r
47 <A href="http://7zip-vi.updatestar.com/">Vietnamese</A><BR>\r
48 </P>\r
49 \r
50 </TD>\r
51 <TD valign="top">\r
52 \r
53 <H1>Frequently Asked Questions (FAQ)</H1>\r
54 \r
55 <UL>\r
56   <LI><A href="#user_faq">User FAQ</A></LI>\r
57   <LI><A href="#developer_faq">Developer FAQ</A></LI>\r
58 </UL>\r
59 \r
60 <H2><a name="user_faq"></a>User FAQ</H2>\r
61 \r
62 <H4>Can I use 7-Zip in a commercial organization?</H4>\r
63 <P>Yes, 7-Zip is free software. You can use it on any computer. You don't need to \r
64 register or pay for 7-Zip.</P>\r
65 \r
66 <H4>How can I set file associations to 7-Zip in Windows 7 and Windows Vista?</H4>\r
67 <P>You must run 7-Zip File Manager in administrator mode. \r
68 Right-click the icon of 7-Zip File Manager, and then click <B>Run as administrator</B>.\r
69 Then you can change file associations and some other options.</P>\r
70 \r
71 <H4>Why 7z archives created by new version of 7-Zip can be larger than archives created by old version of 7-Zip?</H4>\r
72 \r
73 <P>New versions of 7-Zip (starting from version 15.06) use another file sorting \r
74 order by default for solid 7z archives.</P>\r
75 \r
76 <P>Old version of 7-Zip (before version 15.06) used file sorting "by type" ("by extension").</P>\r
77 <P>New version of 7-Zip supports two sorting orders:</P>\r
78 <UL>\r
79   <LI>sorting by name - default order.</LI>\r
80   <LI>sorting by type, if '<B>qs</B>' is specified in <B>Parameters</B> field in "Add to archive" window, \r
81      (or <B>-mqs</B> switch for command line version).</LI>\r
82 </UL>\r
83 \r
84 <P>You can get big difference in compression ratio for different sorting methods,\r
85 if dictionary size is smaller than total size of files.\r
86 If there are similar files in different folders, the sorting "by type" can provide \r
87 better compression ratio in some cases.</P>\r
88 \r
89 <P>Note that sorting "by type" has some drawbacks.\r
90 For example, NTFS volumes use sorting order "by name", so if an archive uses \r
91 another sorting, then the speed of some operations for files with unusual order \r
92 can fall on HDD devices (HDDs have low speed for "seek" operations).</P>\r
93 \r
94 <P>You can increase compression ratio with the following methods:</P>\r
95 <UL>\r
96   <LI>Increase dictionary size. It can help when 'qs' is not used.</LI>\r
97   <LI>Specify '<B>qs</B>' in <B>Parameters</B> field (or use <B>-mqs</B> switch for command line version).</LI>\r
98 </UL>\r
99 \r
100 <P>If you think that unusual file order is not problem for you, \r
101 and if better compression ratio with small dictionary is more important for you,\r
102 use '<B>qs</B>' mode.</P>\r
103 \r
104 <H4>Why can't 7-Zip open some ZIP archives?</H4>\r
105 <P>In 99% of these cases it means that the archive contains incorrect headers.\r
106 Other ZIP programs can open some archives with incorrect headers, since these programs \r
107 just ignore errors.</P>\r
108 <P>If you have such archive, please don't call the 7-Zip developers about it.\r
109 Instead try to find the program that was used to create the archive and inform the developers \r
110 of that program that their software is not ZIP-compatible.</P>\r
111 \r
112 <P>There are also some ZIP archives that were encoded with methods unsupported by 7-Zip,\r
113 for example, WAVPack (WinZip).</P>\r
114 \r
115 <H4>Why can't 7-Zip open some RAR archives?</H4>\r
116 <P>7-Zip 9.20 supports RAR 2/3/4 formats only and doesn't support RAR5 archives.\r
117 But latest versions of 7-Zip supports RAR5 archives.</P>\r
118 \r
119 <H4>Why does drag-and-drop archive extraction from 7-Zip to Explorer use temp files?</H4>\r
120 <P>7-Zip doesn't know folder path of drop target.\r
121 Only Windows Explorer knows exact drop target.\r
122 And Windows Explorer needs files (drag source) as decompressed files on disk.\r
123 So 7-Zip extracts files from archive to temp folder and then \r
124 7-Zip notifies Windows Explorer about paths of these temp files.\r
125 Then Windows  Explorer copies these files to drop target folder.</P>\r
126 \r
127 <P>To avoid temp file usage, you can use Extract command of 7-Zip or \r
128 drag-and-drop from 7-Zip to 7-Zip.</P>\r
129 \r
130 <H4>Why doesn't the command line version add files without extensions to an archive?</H4>\r
131 <P>You're probably using a *.* wildcard. 7-Zip doesn't use the operating system's wildcard mask parser, \r
132 and consequently treats *.* as any file that has an extension. \r
133 To process all files you must use the * wildcard instead or omit the wildcard altogether.</P>\r
134 \r
135 <H4>Why doesn't -r switch work as expected?</H4>\r
136 <P>In most cases you don't need -r switch.\r
137 7-Zip can compress subfolders even without -r switch.</P>\r
138 <P>Example 1:</P>\r
139 <PRE>  7z.exe a c:\a.7z "C:\Program Files"</PRE>\r
140 <P>compresses "C:\Program Files" completely, including all subfolders.</P>\r
141 <P>Example 2:</P>\r
142 <PRE>  7z.exe a -r c:\a.7z "C:\Program Files"</PRE>\r
143 <P>searches and compresses "Program Files" in all subfolders of C:\ (for example, in "C:\WINDOWS").</P>\r
144 If you need to compress only files with some extension, you can use -r switch:\r
145 <PRE>  7z a -r c:\a.zip c:\dir\*.txt </PRE>\r
146 <P>compresses all *.txt files from folder c:\dir\ and all it's subfolders.</P>\r
147 \r
148 <H4>How can I store full path of file in archive?</H4>\r
149 <P>7-Zip stores only relative paths of files (without drive letter prefix).\r
150 You can change current folder to folder that is common for \r
151 all files that you want to compress and then you can use relative paths:</P>\r
152 <PRE>\r
153   cd /D C:\dir1\\r
154   7z.exe a c:\a.7z file1.txt dir2\file2.txt\r
155 </PRE>\r
156 \r
157 <H4>Why can't 7-Zip use big dictionary in 32-bit Windows?</H4>\r
158 <P>32-bit Windows allocates only 2 GB of virtual space per one application. \r
159 Also that block of 2 GB can be fragmented (for example, by some DLL file), \r
160 so 7-Zip can't allocate one big contiguous block of virtual space.\r
161 There are no such limitations in 64-bit Windows. \r
162 So you can use any dictionary in Windows x64, if you have required amount of physical RAM.</P>\r
163 \r
164 <H4>How can I install 7-Zip in silent mode?</H4>\r
165 \r
166 <P>For exe installer: Use the "/S" parameter to do a silent installation and the "/D=dir" parameter \r
167 to specify the "output directory". These options are case-sensitive.</P>\r
168 \r
169 <P>For msi installer: Use the /q INSTALLDIR="C:\Program Files\7-Zip" parameters.</P>\r
170 \r
171 \r
172 <H4>How can I recover corrupted 7z archive?</H4>\r
173 \r
174 <P>There are some possible cases when archive is corrupted:\r
175 <UL>\r
176   <LI>You can open archive and you can see the list of files, but when you press \r
177       Extract or Test command, there are some errors: Data Error or CRC Error.\r
178   <LI>When you open archive, you get message "Can not open file 'a.7z' as archive"\r
179 </UL>\r
180 \r
181 <P>It's possible to recover some data. Read about recovering procedure:\r
182 \r
183 <P><A href="recover.html">Recover corrupted 7z archive</A></P>\r
184 \r
185 <BR><BR>\r
186 <H2><a name="developer_faq"></a>Developer FAQ</H2>\r
187 \r
188 <H4>Why are there linking errors when I compile 7-Zip or LZMA SDK with Visual C++ 6.0?</H4>\r
189 \r
190 <P>To compile sources you will need Visual C++ 6.0 or a later version. \r
191 Some files also require a new Platform SDK from microsoft.com:</P>\r
192 <A href="http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm"><B>\r
193 http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm</B></A>\r
194 or\r
195 <A href="http://www.microsoft.com/msdownload/platformsdk/sdkupdate/"><B>\r
196 http://www.microsoft.com/msdownload/platformsdk/sdkupdate/</B></A>\r
197 \r
198 <P>If you are using MSVC, specify the SDK directories at the top of the "Include files" and \r
199 "Library files" directory lists. These can be found under "Tools / Options / Directories".</P>\r
200 <P>The latest Platform SDK is not compatible with MSVC6. So you must use\r
201 Windows Server 2003 PSDK (February 2003) with MSVC6.</P>\r
202 \r
203 <H4>Can I use the EXE or DLL files from 7-Zip in a Commercial Application?</H4>\r
204 \r
205 <P>Yes, but you are required to specify in your documentation (1) that  \r
206 you used parts of the 7-Zip program, (2) that 7-Zip is licensed under the GNU LGPL license and \r
207 (3) you must give a link to www.7-zip.org, where the source code can be found.</P>\r
208 \r
209 <H4>How can I add support for 7z archives to my application?</H4>\r
210 \r
211 <P>One way is to use the 7z.dll or 7za.dll (available from sf.net for download). The 7za.dll \r
212 works via COM interfaces. It, however, doesn't use standard COM interfaces for \r
213 creating objects. You can find a small example in "CPP\7zip\UI\Client7z" folder \r
214 in the source code. A full example is \r
215 7-Zip itself, since 7-Zip works via this dll also. There are other applications \r
216 that use 7za.dll such as WinRAR, PowerArchiver and others.</P>\r
217 \r
218 <P>The other way is to call the command line version: 7za.exe.</P>\r
219 \r
220 <H4>Can I use the source code of 7-Zip in a commercial application?</H4>\r
221 \r
222 <P>Since 7-Zip is licensed under the GNU LGPL you must follow the rules of that license. \r
223 In brief, it means that any LGPL'ed code must remain licensed under the LGPL. For \r
224 instance, you can change the code from 7-Zip or write a wrapper for some code\r
225 from 7-Zip and compile it into a DLL; but, the source code of that DLL (including \r
226 your modifications / additions / wrapper) must be licensed under the LGPL or GPL.\r
227 Any other code in your application can be licensed as you wish.\r
228 This scheme allows users and developers to change LGPL'ed code and recompile\r
229 that DLL. That is the idea of free software. Read more here: \r
230 <A href="http://www.gnu.org/">http://www.gnu.org/</A>.\r
231 \r
232 You can also read about the <A href="sdk.html">LZMA SDK</A>, which is available \r
233 under a more liberal license.</P>\r
234 \r
235 \r
236 <HR>\r
237 <P><SMALL>Copyright (C) 2015 Igor Pavlov. The site is hosted at <A href="https://www.digitalocean.com/?refcode=cab893b82fa8">Digital Ocean</A> </SMALL></P>\r
238 </TD></TR></TABLE>\r
239 \r
240 </BODY></HTML>\r