OSDN Git Service

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