OSDN Git Service

61082802fbfa297bbf7e0884d6f8434c15335f25
[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 \r
25 <TR><TD><HR></TD></TR>\r
26 <TR><TD>\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-----MIIHLwYJKoZIhvcNAQcEoIIHIDCCBxwCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCV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wMjIxMTkwNjIzWjAjBgkqhkiG9w0BCQQxFgQUL3zwPrNya0k6JChZKiBVElErxCUwDQYJKoZIhvcNAQEBBQAEgYA6iMCFHWYSQv+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 </TD></TR>\r
35 <TR><TD><A href="http://sourceforge.net/projects/sevenzip/"><IMG src="http://sourceforge.net/sflogo.php?group_id=14481&type=11" width=120 height=30 border=0 alt="7-Zip at SourceForge.net"></A></TD></TR>\r
36 <TR><TD><HR></TD></TR>\r
37 \r
38 </TABLE>\r
39 \r
40 <P>\r
41 <B>English</B><BR>\r
42 <A href="http://7zip.usb-drivers.org/">Afrikaans</A><BR>\r
43 <A href="http://7zip-ar.com/">Arabic</A><BR>\r
44 <A href="http://7-zip.hit.bg/">Bulgarian</A><BR>\r
45 <A href="http://sparanoid.com/lab/7z/">Chinese Simpl.</A><BR>\r
46 <A href="http://www.developershome.com/7-zip/">Chinese Trad.</A><BR>\r
47 <A href="http://7zip-eo.rnbastos.com/">Esperanto</A><BR>\r
48 <A href="http://www.spiroo.be/7zip/">French</A><BR>\r
49 <A href="http://www.7-zip.de/">German</A><BR>\r
50 <A href="http://7-zip.hu/">Hungarian</A><BR>\r
51 <A href="http://sevenzip.sourceforge.jp/">Japanese</A><BR>\r
52 <A href="http://7-zip.ir/">Persian</A><BR>\r
53 <A href="http://7-zip.org.pl/">Polish</A><BR>\r
54 <A href="http://7zip.rnbastos.com/">Portuguese Brazil</A><BR>\r
55 <A href="http://7-zip.org.ua/ru/">Russian</A><BR>\r
56 <A href="http://7-zip.com.mx">Spanish</A><BR>\r
57 <A href="http://7-zip.org.ua/">Ukrainian</A><BR>\r
58 </P>\r
59 \r
60           \r
61 </TD>\r
62 <TD valign="top">\r
63 \r
64 <H1>Frequently Asked Questions (FAQ)</H1>\r
65 \r
66 <UL>\r
67   <LI><A href="#user_faq">User FAQ</A></LI>\r
68   <LI><A href="#developer_faq">Developer FAQ</A></LI>\r
69 </UL>\r
70 \r
71 <H2><a name="user_faq"></a>User FAQ</H2>\r
72 \r
73 <H4>Can I use 7-Zip in a commercial organization?</H4>\r
74 <P>Yes, 7-Zip is free software. You can use it on any computer. You don't need to \r
75 register or pay for 7-Zip.</P>\r
76 \r
77 <H4>How can I set file associations to 7-Zip in Windows 7 and Windows Vista?</H4>\r
78 <P>You must run 7-Zip File Manager in administrator mode. \r
79 Right-click the icon of 7-Zip File Manager, and then click <B>Run as administrator</B>.\r
80 Then you can change file associations and some other options.</P>\r
81 \r
82 <H4>What version of 7-Zip is more stable?</H4>\r
83 <P>Now there one main version of 7-Zip:</P>\r
84 <UL>\r
85 <LI>7-Zip 9.20 - it's revision 20 of 7-Zip 9 (started in 2009)\r
86 </UL>\r
87 <P>Latest beta versions can fix some bugs of previous versions.\r
88 So they can be more stable in some cases. \r
89 In general it's safe to use latest beta version.</P>\r
90 \r
91 <H4>Why do the add, delete and update operations not work for some existing archives?</H4>\r
92 <P>These operations didn't work only in old versions of 7-Zip. \r
93 Latest 7-Zip supports any operations with "solid" archives.</P>\r
94 \r
95 <H4>Why can't 7-Zip open some ZIP archives?</H4>\r
96 <P>In 99% of these cases it means that the archive contains incorrect headers.\r
97 Other ZIP programs can open some archives with incorrect headers, since these programs \r
98 just ignore errors.</P>\r
99 <P>If you have such archive, please don't call the 7-Zip developers about it.\r
100 Instead try to find the program that was used to create the archive and inform the developers \r
101 of that program that their software is not ZIP-compatible.</P>\r
102 \r
103 <P>There are also some ZIP archives that were encoded with methods unsupported by 7-Zip,\r
104 for example, WAVPack (WinZip).</P>\r
105 \r
106 <H4>Why can't 7-Zip open some RAR archives?</H4>\r
107 <P>7-Zip still doesn't support new RAR 5 format. 7-Zip supports RAR 2/3/4 formats only.</P>\r
108 \r
109 \r
110 <H4>Why does drag-and-drop archive extraction from 7-Zip to Explorer use temp files?</H4>\r
111 <P>7-Zip doesn't know folder path of drop target.\r
112 Only Windows Explorer knows exact drop target.\r
113 And Windows Explorer needs files (drag source) as decompressed files on disk.\r
114 So 7-Zip extracts files from archive to temp folder and then \r
115 7-Zip notifies Windows Explorer about paths of these temp files.\r
116 Then Windows  Explorer copies these files to drop target folder.</P>\r
117 \r
118 <P>To avoid temp file usage, you can use Extract command of 7-Zip or \r
119 drag-and-drop from 7-Zip to 7-Zip.</P>\r
120 \r
121 <H4>Why doesn't the command line version add files without extensions to an archive?</H4>\r
122 <P>You're probably using a *.* wildcard. 7-Zip doesn't use the operating system's wildcard mask parser, \r
123 and consequently treats *.* as any file that has an extension. \r
124 To process all files you must use the * wildcard instead or omit the wildcard altogether.</P>\r
125 \r
126 <H4>Why doesn't -r switch work as expected?</H4>\r
127 <P>In most cases you don't need -r switch.\r
128 7-Zip can compress subfolders even without -r switch.</P>\r
129 <P>Example 1:</P>\r
130 <PRE>  7z.exe a c:\a.7z "C:\Program Files"</PRE>\r
131 <P>compresses "C:\Program Files" completely, including all subfolders.</P>\r
132 <P>Example 2:</P>\r
133 <PRE>  7z.exe a -r c:\a.7z "C:\Program Files"</PRE>\r
134 <P>searches and compresses "Program Files" in all subfolders of C:\ (for example, in "C:\WINDOWS").</P>\r
135 If you need to compress only files with some extension, you can use -r switch:\r
136 <PRE>  7z a -r c:\a.zip c:\dir\*.txt </PRE>\r
137 <P>compresses all *.txt files from folder c:\dir\ and all it's subfolders.</P>\r
138 \r
139 <H4>How can I store full path of file in archive?</H4>\r
140 <P>7-Zip stores only relative paths of files (without drive letter prefix).\r
141 You can change current folder to folder that is common for \r
142 all files that you want to compress and then you can use relative paths:</P>\r
143 <PRE>\r
144   cd /D C:\dir1\\r
145   7z.exe a c:\a.7z file1.txt dir2\file2.txt\r
146 </PRE>\r
147 \r
148 <H4>Why can't 7-Zip use big dictionary in 32-bit Windows?</H4>\r
149 <P>32-bit Windows allocates only 2 GB of virtual space per one application. \r
150 Also that block of 2 GB can be fragmented (for example, by some DLL file), \r
151 so 7-Zip can't allocate one big contiguous block of virtual space.\r
152 There are no such limitations in 64-bit Windows. \r
153 So you can use any dictionary in Windows x64, if you have required amount of physical RAM.</P>\r
154 \r
155 <H4>How can I install 7-Zip in silent mode?</H4>\r
156 \r
157 <P>For exe installer: Use the "/S" parameter to do a silent installation and the "/D=dir" parameter \r
158 to specify the "output directory". These options are case-sensitive. \r
159 7-Zip uses the NSIS installer by Nullsoft.</P>\r
160 \r
161 <P>For msi installer: Use the /q INSTALLDIR="C:\Program Files\7-Zip" parameters.</P>\r
162 \r
163 <H2><a name="developer_faq"></a>Developer FAQ</H2>\r
164 \r
165 <H4>Why are there linking errors when I compile 7-Zip or LZMA SDK with Visual C++ 6.0?</H4>\r
166 \r
167 <P>To compile sources you will need Visual C++ 6.0 or a later version. \r
168 Some files also require a new Platform SDK from microsoft.com:</P>\r
169 <A href="http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm"><B>\r
170 http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm</B></A>\r
171 or\r
172 <A href="http://www.microsoft.com/msdownload/platformsdk/sdkupdate/"><B>\r
173 http://www.microsoft.com/msdownload/platformsdk/sdkupdate/</B></A>\r
174 \r
175 <P>If you are using MSVC, specify the SDK directories at the top of the "Include files" and \r
176 "Library files" directory lists. These can be found under "Tools / Options / Directories".</P>\r
177 <P>The latest Platform SDK is not compatible with MSVC6. So you must use\r
178 Windows Server 2003 PSDK (February 2003) with MSVC6.</P>\r
179 \r
180 <H4>Can I use the EXE or DLL files from 7-Zip in a Commercial Application?</H4>\r
181 \r
182 <P>Yes, but you are required to specify in your documentation (1) that  \r
183 you used parts of the 7-Zip program, (2) that 7-Zip is licensed under the GNU LGPL license and \r
184 (3) you must give a link to www.7-zip.org, where the source code can be found.</P>\r
185 \r
186 <H4>How can I add support for 7z archives to my application?</H4>\r
187 \r
188 <P>One way is to use the 7z.dll or 7za.dll (available from sf.net for download). The 7za.dll \r
189 works via COM interfaces. It, however, doesn't use standard COM interfaces for \r
190 creating objects. You can find a small example in "CPP\7zip\UI\Client7z" folder \r
191 in the source code. A full example is \r
192 7-Zip itself, since 7-Zip works via this dll also. There are other applications \r
193 that use 7za.dll such as WinRAR, PowerArchiver and others.</P>\r
194 \r
195 <P>The other way is to call the command line version: 7za.exe.</P>\r
196 \r
197 <H4>Can I use the source code of 7-Zip in a commercial application?</H4>\r
198 \r
199 <P>Since 7-Zip is licensed under the GNU LGPL you must follow the rules of that license. \r
200 In brief, it means that any LGPL'ed code must remain licensed under the LGPL. For \r
201 instance, you can change the code from 7-Zip or write a wrapper for some code\r
202 from 7-Zip and compile it into a DLL; but, the source code of that DLL (including \r
203 your modifications / additions / wrapper) must be licensed under the LGPL or GPL.\r
204 Any other code in your application can be licensed as you wish.\r
205 This scheme allows users and developers to change LGPL'ed code and recompile\r
206 that DLL. That is the idea of free software. Read more here: \r
207 <A href="http://www.gnu.org/">http://www.gnu.org/</A>.\r
208 \r
209 You can also read about the <A href="sdk.html">LZMA SDK</A>, which is available \r
210 under a more liberal license.</P>\r
211 \r
212 \r
213 <HR>\r
214 <P><SMALL>Copyright (C) 2014 Igor Pavlov.</SMALL></P>\r
215 </TD></TR></TABLE>\r
216 \r
217 </BODY></HTML>\r