##// END OF EJS Templates
Automatically add the path of hg to %PATH% using add_path
Marco Barisione -
r2384:068b32d0 default
parent child Browse files
Show More
@@ -31,51 +31,7 b''
31 href="http://www.selenic.com/mercurial">Mercurial web site</a>.</p>
31 href="http://www.selenic.com/mercurial">Mercurial web site</a>.</p>
32
32
33 <p>By default, Mercurial installs to <tt>C:\Mercurial</tt>. The
33 <p>By default, Mercurial installs to <tt>C:\Mercurial</tt>. The
34 Mercurial command is called <tt>hg.exe</tt>. To run this
34 Mercurial command is called <tt>hg.exe</tt>.</p>
35 command, the install directory must be in your search path.</p>
36
37 <h2>Setting your search path temporarily</h2>
38
39 <p>To set your search path temporarily, type the following into a
40 command prompt window:</p>
41
42 <pre>
43 set PATH=C:\Mercurial;%PATH%
44 </pre>
45
46 <h2>Setting your search path permanently</h2>
47
48 <p>To set your search path permanently, perform the following
49 steps. These instructions are for Windows NT, 2000 and XP.</p>
50
51 <ol>
52 <li>Open the Control Panel. Under Windows XP, select the
53 "Classic View".</li>
54
55 <li>Double-click on the "System" control panel.</li>
56
57 <li>Click on the "Advanced" tab.</li>
58
59 <li>Click on "Environment Variables". You'll find this near the
60 bottom of the window.</li>
61
62 <li>Under "System variables", you will see "Path". Double-click
63 it.</li>
64
65 <li>Edit "Variable value". Each path element is separated by a
66 semicolon (";") character. Append a semicolon to the end of the
67 list, followed by the path where you installed Mercurial
68 (e.g. <tt>C:\Mercurial</tt>).</li>
69
70 <li>Click on the various "OK" buttons until you've completely
71 exited from the System control panel.</li>
72
73 <li>Log out and log back in, or restart your system.</li>
74
75 <li>The next time you run the Windows command prompt, you will be
76 able to run the <tt>hg</tt> command without any special
77 help.</li>
78 </ol>
79
35
80 <h1>Testing Mercurial after you've installed it</h1>
36 <h1>Testing Mercurial after you've installed it</h1>
81
37
@@ -38,6 +38,7 b' Source: dist\\library.zip; DestDir: {app}'
38 Source: dist\mfc71.dll; DestDir: {sys}; Flags: sharedfile uninsnosharedfileprompt
38 Source: dist\mfc71.dll; DestDir: {sys}; Flags: sharedfile uninsnosharedfileprompt
39 Source: dist\msvcr71.dll; DestDir: {sys}; Flags: sharedfile uninsnosharedfileprompt
39 Source: dist\msvcr71.dll; DestDir: {sys}; Flags: sharedfile uninsnosharedfileprompt
40 Source: dist\w9xpopen.exe; DestDir: {app}
40 Source: dist\w9xpopen.exe; DestDir: {app}
41 Source: dist\add_path.exe; DestDir: {app}
41 Source: doc\*.txt; DestDir: {app}\Docs
42 Source: doc\*.txt; DestDir: {app}\Docs
42 Source: templates\*.*; DestDir: {app}\Templates; Flags: recursesubdirs createallsubdirs
43 Source: templates\*.*; DestDir: {app}\Templates; Flags: recursesubdirs createallsubdirs
43 Source: CONTRIBUTORS; DestDir: {app}; DestName: Contributors.txt
44 Source: CONTRIBUTORS; DestDir: {app}; DestName: Contributors.txt
@@ -55,3 +56,9 b' Type: files; Name: {app}\\Mercurial.url'
55 Name: {group}\Uninstall Mercurial; Filename: {uninstallexe}
56 Name: {group}\Uninstall Mercurial; Filename: {uninstallexe}
56 Name: {group}\Mercurial Command Reference; Filename: {app}\Docs\hg.1.txt
57 Name: {group}\Mercurial Command Reference; Filename: {app}\Docs\hg.1.txt
57 Name: {group}\Mercurial Web Site; Filename: {app}\Mercurial.url
58 Name: {group}\Mercurial Web Site; Filename: {app}\Mercurial.url
59
60 [Run]
61 Filename: "{app}\add_path.exe"; Parameters: "{app}"; Flags: postinstall; Description: "Add the installation path to the search path"
62
63 [UninstallRun]
64 Filename: "{app}\add_path.exe"; Parameters: "/del {app}"
@@ -24,6 +24,9 b' It has the following prerequisites, at l'
24 ISTool
24 ISTool
25 http://www.istool.org/default.aspx/
25 http://www.istool.org/default.aspx/
26
26
27 add_path (you need only add_path.exe in the zip file)
28 http://www.barisione.org/apps.html#add_path
29
27 And, of course, Mercurial itself.
30 And, of course, Mercurial itself.
28
31
29 Once you have all this installed and built, clone a copy of the
32 Once you have all this installed and built, clone a copy of the
@@ -34,7 +37,8 b' In a shell, build a standalone copy of t'
34
37
35 python setup.py build -c mingw32 py2exe -b 1
38 python setup.py build -c mingw32 py2exe -b 1
36
39
37 Copy mfc71.dll into the dist directory that just got created.
40 Copy mfc71.dll and add_path.exe into the dist directory that just
41 got created.
38
42
39 Run ISTool, and open the C:\hg\hg-release\contrib\win32\mercurial.iss
43 Run ISTool, and open the C:\hg\hg-release\contrib\win32\mercurial.iss
40 file.
44 file.
General Comments 0
You need to be logged in to leave comments. Login now