# HG changeset patch
# User Marco Barisione
# Date 1148299961 -7200
# Node ID 068b32d0687384c4e82d486e2b0c22edc61dd440
# Parent dec7aa404dcfe69194d0ac40af899a407b4fbee5
Automatically add the path of hg to %PATH% using add_path
diff -r dec7aa404dcf -r 068b32d06873 contrib/win32/ReadMe.html
--- a/contrib/win32/ReadMe.html Mon May 22 14:06:12 2006 +0200
+++ b/contrib/win32/ReadMe.html Mon May 22 14:12:41 2006 +0200
@@ -31,51 +31,7 @@
href="http://www.selenic.com/mercurial">Mercurial web site.
By default, Mercurial installs to C:\Mercurial. The
- Mercurial command is called hg.exe. To run this
- command, the install directory must be in your search path.
-
- Setting your search path temporarily
-
- To set your search path temporarily, type the following into a
- command prompt window:
-
-
-set PATH=C:\Mercurial;%PATH%
-
-
- Setting your search path permanently
-
- To set your search path permanently, perform the following
- steps. These instructions are for Windows NT, 2000 and XP.
-
-
- - Open the Control Panel. Under Windows XP, select the
- "Classic View".
-
- - Double-click on the "System" control panel.
-
- - Click on the "Advanced" tab.
-
- - Click on "Environment Variables". You'll find this near the
- bottom of the window.
-
- - Under "System variables", you will see "Path". Double-click
- it.
-
- - Edit "Variable value". Each path element is separated by a
- semicolon (";") character. Append a semicolon to the end of the
- list, followed by the path where you installed Mercurial
- (e.g. C:\Mercurial).
-
- - Click on the various "OK" buttons until you've completely
- exited from the System control panel.
-
- - Log out and log back in, or restart your system.
-
- - The next time you run the Windows command prompt, you will be
- able to run the hg command without any special
- help.
-
+ Mercurial command is called hg.exe.
Testing Mercurial after you've installed it
diff -r dec7aa404dcf -r 068b32d06873 contrib/win32/mercurial.iss
--- a/contrib/win32/mercurial.iss Mon May 22 14:06:12 2006 +0200
+++ b/contrib/win32/mercurial.iss Mon May 22 14:12:41 2006 +0200
@@ -38,6 +38,7 @@
Source: dist\mfc71.dll; DestDir: {sys}; Flags: sharedfile uninsnosharedfileprompt
Source: dist\msvcr71.dll; DestDir: {sys}; Flags: sharedfile uninsnosharedfileprompt
Source: dist\w9xpopen.exe; DestDir: {app}
+Source: dist\add_path.exe; DestDir: {app}
Source: doc\*.txt; DestDir: {app}\Docs
Source: templates\*.*; DestDir: {app}\Templates; Flags: recursesubdirs createallsubdirs
Source: CONTRIBUTORS; DestDir: {app}; DestName: Contributors.txt
@@ -55,3 +56,9 @@
Name: {group}\Uninstall Mercurial; Filename: {uninstallexe}
Name: {group}\Mercurial Command Reference; Filename: {app}\Docs\hg.1.txt
Name: {group}\Mercurial Web Site; Filename: {app}\Mercurial.url
+
+[Run]
+Filename: "{app}\add_path.exe"; Parameters: "{app}"; Flags: postinstall; Description: "Add the installation path to the search path"
+
+[UninstallRun]
+Filename: "{app}\add_path.exe"; Parameters: "/del {app}"
diff -r dec7aa404dcf -r 068b32d06873 contrib/win32/win32-build.txt
--- a/contrib/win32/win32-build.txt Mon May 22 14:06:12 2006 +0200
+++ b/contrib/win32/win32-build.txt Mon May 22 14:12:41 2006 +0200
@@ -24,6 +24,9 @@
ISTool
http://www.istool.org/default.aspx/
+ add_path (you need only add_path.exe in the zip file)
+ http://www.barisione.org/apps.html#add_path
+
And, of course, Mercurial itself.
Once you have all this installed and built, clone a copy of the
@@ -34,7 +37,8 @@
python setup.py build -c mingw32 py2exe -b 1
-Copy mfc71.dll into the dist directory that just got created.
+Copy mfc71.dll and add_path.exe into the dist directory that just
+got created.
Run ISTool, and open the C:\hg\hg-release\contrib\win32\mercurial.iss
file.