Code

win32 installer, do not delete user files, still translation needed
[inkscape.git] / packaging / win32 / md5dll.txt
1 Calculates the md5sum of a file or string.\r
2 Has been tested to work with NSIS 2.0+\r
3 \r
4 \r
5 Derived from the RSA Data Security, Inc. MD5 Message-Digest Algorithm\r
6 \r
7 [Md5Dll]\r
8 Matthew "IGx89" Lieder\r
9   -Original plugin Author\r
10 \r
11 Sunjammer (12th May 2002)\r
12   -Original usage notes and example script \r
13 \r
14 [Md5Dll.0.1]\r
15 KJD (2004)\r
16   -Modified to reduce size and use exdll.h\r
17    (reduced to about 6KB uncompressed, by removing CRTL dependency)\r
18 \r
19 [Md5dll.0.2]\r
20 Davy Durham (2004)\r
21   -MD5.cpp fix (correct for loop used to replace memset, exceeded bounds)\r
22 \r
23 [Md5dll.0.3]\r
24 Shengalts Aleksander aka Instructor (2005)\r
25   -New command: "GetMD5Random"\r
26   -Changed names: "GetFileMD5" -> "GetMD5File", "GetMD5" -> "GetMD5String"\r
27   -Fixed: string length error\r
28 \r
29 [Md5dll.0.4]\r
30 KJD (2005)\r
31   -Added dual name to exports for backwards compatibility\r
32 \r
33 \r
34 --------------------------------\r
35 \r
36 Usage:\r
37 \r
38 Push $1 ;string\r
39 CallInstDll "md5dll" GetMD5String\r
40 Pop $1 ;md5 of string\r
41 \r
42 -or-\r
43 \r
44 Push $1 ;filename\r
45 CallInstDll "md5dll" GetMD5File\r
46 Pop $1 ;md5 of file\r
47 \r
48 --------------------------------\r
49 \r
50 Example usage in recent NSIS versions\r
51 \r
52 OutFile "md5test.exe"\r
53 Section ""\r
54   #generate MD5sum of a string\r
55   md5dll::GetMD5String "md5me"\r
56   Pop $0\r
57   DetailPrint "md5: [$0]"\r
58 \r
59   # generate MD5sum of a file\r
60   md5dll::GetMD5File "${NSISDIR}\makensis.exe"\r
61   Pop $0\r
62   DetailPrint "md5: [$0]"\r
63 \r
64   #generate random MD5sum\r
65   md5dll::GetMD5Random\r
66   Pop $0\r
67   DetailPrint "md5: [$0]"\r
68 SectionEnd\r