[PATCH] Set automatically hg version in win32 installer

Pascal Quantin pascal.quantin at gmail.com
Sun Jan 18 13:46:30 CST 2009


2009/1/18 Patrick Mézard <pmezard at gmail.com>:
> Pascal Quantin a écrit :
>> Hi Patrick,
>>
>> 2009/1/18 Patrick Mézard <pmezard at gmail.com>:
>>> Pascal Quantin a écrit :
>>>> # HG changeset patch
>>>> # User Pascal Quantin < pascal.quantin at gmail.com>
>>>> # Date 1232239553 -3600
>>>> # Node ID d0c1165cc6d78e3bc562ad65f6bc6d6b6ff401f4
>>>> # Parent  e9e5f6ea166494fe372defb6280e0d29727c9a42
>>>> Set automatically hg version in win32 installer
>>>>
>>>> Retrieve hg version from __version__.py file and set it as application version in win32 installer
>>>>
>>>> diff --git a/contrib/win32/mercurial.iss b/contrib/win32/mercurial.iss
>>>> --- a/contrib/win32/mercurial.iss
>>>> +++ b/contrib/win32/mercurial.iss
>>>> @@ -3,7 +3,7 @@
>>>>  [Setup]
>>>>  AppCopyright=Copyright 2005-2009 Matt Mackall and others
>>>>  AppName=Mercurial
>>>> -AppVerName=Mercurial snapshot
>>>> +AppVerName=Mercurial {code:ExtractVersion|''}
>>> Where does it appear ? I cannot see anything in the installer properties (in explorer).
>>
>> No I did not change the installer properties as it cannot display a
>> changeset identity. But it will appread in the installer wizard and in
>> windows uninstall panel.
>
> While we are doing this, do you think we can embed it somewhere so it can be displayed in the Explorer properties? I think this could be useful.

If we agree to have a dependency with Inno Setup Pre Processor
(additional package part of the Inno Setup QuickStart Pack), then it
should be feasible. I could probably simplify the code of my previous
patch, include the hg version in the Explorer properties and in the
installer name (for example Mercurial-1.1.2+20080118.exe or
Mercurial-7f4b1b698d31.exe). With the default Inno Setup, you cannot
have compilation-time variable, just runtime ones.

Pascal.

>
> --
> Patrick Mézard
>



More information about the Mercurial-devel mailing list