[PATCH] win32: Add rcpath registry value to installer

Steve Borho steve at borho.org
Sat Dec 1 22:54:30 CST 2007


# HG changeset patch
# User Steve Borho <steve at borho.org>
# Date 1196571254 21600
# Node ID 2851949c5264666dab9b56d93337f1dcc62e61f0
# Parent  415a66f248d90b9bcb4e242f8728efa1c06c3ee3
win32: Add rcpath registry value to installer

Since system_rcpath() will still use the module name as a fallback,
this is not strictly required for the default py2exe Windows installer.
I include this mostly for reference.

diff --git a/contrib/win32/mercurial.iss b/contrib/win32/mercurial.iss
--- a/contrib/win32/mercurial.iss
+++ b/contrib/win32/mercurial.iss
@@ -59,6 +59,9 @@ Name: {group}\Mercurial Web Site; Filena
 [Run]
 Filename: "{app}\add_path.exe"; Parameters: "{app}"; Flags: postinstall; Description: "Add the installation path to the search path"
 
+[Registry]
+Root: HKLM; Subkey: Software\Mercurial; Flags: uninsdeletekey; ValueData: {app}\Mercurial.ini; ValueType: string
+
 [UninstallRun]
 Filename: "{app}\add_path.exe"; Parameters: "/del {app}"
 


More information about the Mercurial-devel mailing list