[PATCH] Set automatically hg version in win32 installer

Pascal Quantin pascal.quantin at gmail.com
Sun Jan 18 16:51:04 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.

I just posted a new patch adressing your comment. Unfortunately Inno
Setup Preprocessor fails to parse properly the __version__.py file, so
I duplicated this info in a new contrib/win32/version.txt file.

Regards,
Pascal.

>
> --
> Patrick Mézard
>



More information about the Mercurial-devel mailing list