[wix-devs] Stable Guid MSBuild task
Edwin Castro
egcastr at gmail.com
Tue Sep 17 11:44:31 PDT 2019
Under what circumstances would I want my UpgradeCode to change build to
build?
What does stable mean? I assume the code changes build to build but in what
ways does it change?
--
Edwin G. Castro
On Tue, Sep 17, 2019 at 8:37 AM Hoover, Jacob via wix-devs <
wix-devs at lists.wixtoolset.org> wrote:
> For wix4, would anyone else find use in having the existing stable guid
> logic also exposed as a MSBuild task? While a random guid works, sometimes
> having something deterministic is desired.
>
> Ex:
> <Target Name="GenerateUpgradeCode">
> <PropertyGroup>
>
> <ProductCodeKey>$(ApplicationBuild)#$(Version)#ProductCode</ProductCodeKey>
>
> <UpgradeCodeKey>$(ApplicationBuild)#$(Version)#UpgradeCode</UpgradeCodeKey>
>
> <Salt>{C1BA69E1-B69D-46B8-A095-CAF6337B71F4}</Salt>
> </PropertyGroup>
>
> <GetStableGUID Key="$(ProductCodeKey)" Salt="$(Salt)">
> <Output TaskParameter="Stable"
> PropertyName="ProductCode" />
> </GetStableGUID>
> <GetStableGUID Key="$(UpgradeCodeKey)" Salt="$(Salt)">
> <Output TaskParameter="Stable"
> PropertyName="UpgradeCode" />
> </GetStableGUID>
> <PropertyGroup>
> <DefineConstants>
> $(DefineConstants);
> ProductCode=$(ProductCode);
> UpgradeCode=$(UpgradeCode);
> </DefineConstants>
> </PropertyGroup>
> </Target>
>
>
> Thanks,
> Jacob
>
> ____________________________________________________________________
> WiX Toolset Developer Mailing List provided by FireGiant
> http://www.firegiant.com/
>
More information about the wix-devs
mailing list