[go: nahoru, domu]

Skip to content

Commit

Permalink
Merge pull request #33 from rrzaripov/rework-urlacl-configuring
Browse files Browse the repository at this point in the history
Rework urlacl configuring
  • Loading branch information
nagappan committed Jun 28, 2016
2 parents d9031c6 + 226c3d1 commit 00e5545
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 34 deletions.
4 changes: 4 additions & 0 deletions CobraWinLDTP.Wix/CobraWinLDTP.Wix.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
<HintPath>$(WixExtDir)\WixNetFxExtension.dll</HintPath>
<Name>WixNetFxExtension</Name>
</WixExtension>
<WixExtension Include="WixHttpExtension">
<HintPath>$(WixExtDir)\WixHttpExtension.dll</HintPath>
<Name>WixHttpExtension</Name>
</WixExtension>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\CobraWinLDTP\CobraWinLDTP.csproj">
Expand Down
49 changes: 15 additions & 34 deletions CobraWinLDTP.Wix/CobraWinLDTP.wxs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?xml version='1.0' encoding='windows-1252'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'
xmlns:http="http://schemas.microsoft.com/wix/HttpExtension">

<!--
CobraWinLDTP 4.0
Expand Down Expand Up @@ -120,6 +122,18 @@ SOFTWARE.
DiskId='1'
Source='..\CobraWinLDTP\bin\Release\CobraWinLDTP.exe'
KeyPath='yes'/>

<http:UrlReservation Url="http://localhost:4118/" HandleExisting="replace">
<http:UrlAce SecurityPrincipal="NT AUTHORITY\NETWORK SERVICE" Rights="all" />
</http:UrlReservation>

<http:UrlReservation Url="http://+:4118/" HandleExisting="replace">
<http:UrlAce SecurityPrincipal="NT AUTHORITY\NETWORK SERVICE" Rights="all" />
</http:UrlReservation>

<http:UrlReservation Url="http://*:4118/" HandleExisting="replace">
<http:UrlAce SecurityPrincipal="NT AUTHORITY\NETWORK SERVICE" Rights="all" />
</http:UrlReservation>
<!--
<Shortcut Id="startmenuWinLDTPService"
Directory="ProgramMenuDir"
Expand Down Expand Up @@ -518,41 +532,8 @@ SOFTWARE.
Return="check">
</CustomAction>

<CustomAction Id="ListenerServiceAddLocalHostReservation"
Execute='deferred'
Impersonate='no'
Directory="INSTALLDIR"
ExeCommand="netsh http add urlacl url=http://localhost:4118/ user=[%USERDOMAIN]\[%USERNAME]"
Return="check" />

<CustomAction Id="ListenerServiceAddLocalIPReservation"
Execute='deferred'
Impersonate='no'
Directory="INSTALLDIR"
ExeCommand="netsh http add urlacl url=http://+:4118/ user=[%USERDOMAIN]\[%USERNAME]"
Return="check" />

<CustomAction Id="ListenerServiceAddAllIPReservation"
Execute='deferred'
Impersonate='no'
Directory="INSTALLDIR"
ExeCommand="netsh http add urlacl url=http://*:4118/ user=[%USERDOMAIN]\[%USERNAME]"
Return="check" />

<InstallExecuteSequence>
<WriteEnvironmentStrings />
<Custom Action="ListenerServiceAddLocalHostReservation"
Before='InstallFinalize'>
<![CDATA[(VersionNT >= 601)]]>
</Custom>
<Custom Action="ListenerServiceAddLocalIPReservation"
Before='InstallFinalize'>
<![CDATA[(VersionNT >= 601)]]>
</Custom>
<Custom Action="ListenerServiceAddAllIPReservation"
Before='InstallFinalize'>
<![CDATA[(VersionNT >= 601)]]>
</Custom>
<Custom Action="LaunchSetEnvironmentVariable"
After="InstallFinalize">NOT Installed</Custom>
</InstallExecuteSequence>
Expand Down

0 comments on commit 00e5545

Please sign in to comment.