Skip to content

Commit

Permalink
PHX-3734 added NETUITIVE_API_KEY parameter for silent install
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewpaine committed Feb 16, 2016
1 parent cbbd0f7 commit 30c8660
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/installer/CollectdWin.wixproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@
<ItemGroup>
<Compile Include="Product.wxs" />
</ItemGroup>
<ItemGroup>
<WixExtension Include="WixUtilExtension">
<HintPath>$(WixExtDir)\WixUtilExtension.dll</HintPath>
<Name>WixUtilExtension</Name>
</WixExtension>
</ItemGroup>
<Import Project="$(WixTargetsPath)" />
<!--
To modify your build process, add your task inside one of the targets below and uncomment it.
Expand Down
12 changes: 10 additions & 2 deletions src/installer/Product.wxs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<?if $(var.Platform) = x64 ?>
<?define ProductName = "CollectdWinService (64 bit)" ?>
<?define Win64 = "yes" ?>
Expand All @@ -25,6 +24,7 @@
<Media Id="1"
Cabinet="media1.cab"
EmbedCab="yes" />
<Property Id="NETUITIVE_API_KEY" Value="{apikey}"/>
<Directory Id="TARGETDIR"
Name="SourceDir">
<Directory Id="$(var.PlatformProgramFilesFolder)">
Expand Down Expand Up @@ -140,6 +140,14 @@
Vital="yes"
KeyPath="no"
DiskId="1" />
<util:XmlFile Id="WriteNetuitiveUrl"
Action="setValue"
File="[INSTALLDIR]\config\WriteNetuitive.config"
SelectionLanguage="XPath"
Permanent="yes"
ElementPath="/WriteNetuitive"
Name="Url"
Value="https://api.app.netuitive.com/ingest/windows/[NETUITIVE_API_KEY]"/>
</Component>
</Directory>

Expand Down

0 comments on commit 30c8660

Please sign in to comment.