diff options
author | Igor Zinkovsky <igorzi@microsoft.com> | 2011-12-09 16:42:15 -0800 |
---|---|---|
committer | Igor Zinkovsky <igorzi@microsoft.com> | 2011-12-09 17:20:22 -0800 |
commit | 8e2c014e43809c0889b42ed4e567f4b734a82c01 (patch) | |
tree | 18309646d3ec61aea70303f5ecc57ab20e136535 /tools/msvs | |
parent | 429efdd974e9f96208574dc7e0d00232ff9c3957 (diff) | |
download | android-node-v8-8e2c014e43809c0889b42ed4e567f4b734a82c01.tar.gz android-node-v8-8e2c014e43809c0889b42ed4e567f4b734a82c01.tar.bz2 android-node-v8-8e2c014e43809c0889b42ed4e567f4b734a82c01.zip |
Fix MSI generation on VC Express
Diffstat (limited to 'tools/msvs')
-rw-r--r-- | tools/msvs/msi/nodemsi.wixproj | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/tools/msvs/msi/nodemsi.wixproj b/tools/msvs/msi/nodemsi.wixproj index 96813d3b8e..d7a3b62dd5 100644 --- a/tools/msvs/msi/nodemsi.wixproj +++ b/tools/msvs/msi/nodemsi.wixproj @@ -16,12 +16,12 @@ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> <OutputPath>..\..\..\$(Configuration)\</OutputPath> <IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath> - <DefineConstants>Debug;ProductVersion=$(NodeVersion);ProductId=$(NodeProductId);NPMSourceDir=..\..\..\deps\npm\</DefineConstants> + <DefineConstants>Debug;ProductVersion=$(NodeVersion);NPMSourceDir=..\..\..\deps\npm\</DefineConstants> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> <OutputPath>..\..\..\$(Configuration)\</OutputPath> <IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath> - <DefineConstants>Debug;ProductVersion=$(NodeVersion);ProductId=$(NodeProductId);NPMSourceDir=..\..\..\deps\npm\</DefineConstants> + <DefineConstants>Debug;ProductVersion=$(NodeVersion);NPMSourceDir=..\..\..\deps\npm\</DefineConstants> </PropertyGroup> <ItemGroup> <Compile Include="product.wxs" /> @@ -33,13 +33,25 @@ <Name>WixUIExtension</Name> </WixExtension> </ItemGroup> + <UsingTask TaskName="GenerateProductId" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll"> + <ParameterGroup> + <ProductId ParameterType="System.String" Output="true" /> + </ParameterGroup> + <Task> + <Code Type="Fragment" Language="cs"> + <![CDATA[ + this.ProductId = System.Guid.NewGuid().ToString().ToUpper(); + ]]> + </Code> + </Task> + </UsingTask> <Import Project="$(WixTargetsPath)" /> - <!-- - To modify your build process, add your task inside one of the targets below and uncomment it. - Other similar extension points exist, see Wix.targets. - <Target Name="BeforeBuild"> - </Target> - <Target Name="AfterBuild"> - </Target> - --> + <Target Name="BeforeBuild"> + <GenerateProductId> + <Output PropertyName="NodeProductId" TaskParameter="ProductId"/> + </GenerateProductId> + <CreateProperty Value="$(DefineConstants);ProductId=$(NodeProductId)"> + <Output TaskParameter="Value" PropertyName="DefineConstants" /> + </CreateProperty> + </Target> </Project> |