exposed properties for configuring data center endpoint ip and port. defaults to localhost/127.0.0.1
implemented the code to configure the app.config file on install. #31
This commit is contained in:
parent
cdbf543562
commit
def593d3a5
@ -25,6 +25,7 @@
|
||||
<ComponentGroup Id="CardReaderServiceComponents" Directory="INSTALLFOLDER">
|
||||
<ComponentRef Id="CardReaderServiceStarter" />
|
||||
<ComponentRef Id="CardReaderEventLog" />
|
||||
<ComponentRef Id="ServiceConfiguration"/>
|
||||
<!-- Start the Smart Card Service which is a dependency of the PCSC library. -->
|
||||
<Component Id="SmartCardServiceConfig" Guid="{73D2E31D-F256-457C-AFD5-EC456CDAD7E8}" KeyPath="yes">
|
||||
<ServiceControl Id="SmartCardServiceStarter"
|
||||
@ -99,5 +100,15 @@
|
||||
Source="$(var.CardReaderService.TargetDir)pcsc-sharp.dll" />
|
||||
</Component>
|
||||
</ComponentGroup>
|
||||
|
||||
<Component Id="ServiceConfiguration" Directory="INSTALLFOLDER" Guid="{E49ABD61-0CCA-45A2-A525-DF85A0493FF7}" KeyPath="yes">
|
||||
<util:XmlFile Id="SetDataCenterEndpoint"
|
||||
Action="setValue"
|
||||
ElementPath="//appSettings/add[\[]@key='DataCenterServiceEndpoint'[\]]/@value"
|
||||
Value="http://[SERVICEIP]:[SERVICEPORT]"
|
||||
File="[#CardReaderService.exe.config]"
|
||||
SelectionLanguage="XPath"
|
||||
Sequence="1" />
|
||||
</Component>
|
||||
</Fragment>
|
||||
</Wix>
|
||||
|
||||
@ -2,5 +2,7 @@
|
||||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
||||
<Fragment>
|
||||
<Property Id="STARTSERVICEONINSTALL" Value="false" />
|
||||
<Property Id="SERVICEIP" Value="127.0.0.1" />
|
||||
<Property Id="SERVICEPORT" Value="8800"/>
|
||||
</Fragment>
|
||||
</Wix>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user