2016-06-16 10 views
0

WCFサービスプロジェクトをビルドしていますが、Wixベースのセットアッププロジェクトをソリューション(VS.NET 2013)に追加したいと考えています。私は初めてWixツールセットを使用しています。私はWixツールセットVer 3.10の最新バージョンを使用しています。WXFツールセットを使用してWCF Webサービスを展開する - 手順

.wxsファイルを埋めるために必要な手順を記述してください。ここで

Solution structure in vs.net 2013

WCF Service Structure

ImportService.wxsからXMLコンテンツである: -

<?xml version="1.0" encoding="UTF-8"?><Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> 
<Product Id="*" Name="$(var.outputName)" Language="1033" Version="1.0.0.0" Manufacturer="Client" UpgradeCode="80d51001-e699-47b8-9221-fc6633fddf15"> 
    <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Platform="x64" /> 
    <MajorUpgrade DowngradeErrorMessage="A newer version of Import Service is already installed." /> 
<Media Id="1" Cabinet="Cab1.cab" EmbedCab="yes"/> 
    <MediaTemplate /> 

    <Feature Id="ProductFeature" Title="$(var.outputName)" Level="1"> 
     <ComponentGroupRef Id="ProductComponents" /> 
    </Feature> 
</Product> 

<Fragment> 
    <Directory Id="TARGETDIR" Name="SourceDir"> 
     <Directory Id="ProgramFiles64Folder"> 
    <Directory Id="Client" Name="Client" > 
      <Directory Id="INSTALLFOLDER" Name="$(var.outputName)" /> 
    </Directory> 
     </Directory> 
    </Directory> 
</Fragment> 

<Fragment> 
    <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"> 
     <!--<Component Id="ProductComponent" Guid="93A6A063-F63D-455A-BD63-A21D32D15CE5" Win64="yes">  

    </Component>--> 
    </ComponentGroup> 
</Fragment> 

にWCF .SVC &他のファイルを追加する方法を提案してください。 wixファイル内のComponentGroup領域。

答えて

0

IISを使用してサービスをパブリッシュできます。

<!-- Use DISM to setup IIS (see also http://support.microsoft.com/kb/2736284) --> 
    <!-- Build path to dism.exe (full path is important, just calling dism.exe without path will fail) --> 
    <CustomAction Id="InstallIISSetProperty" Property="InstallIIS" Execute="immediate" 
            Value="&quot;[System64Folder]dism.exe&quot; /Online /Enable-Feature /All /FeatureName:IIS-WebServerRole /FeatureName:IIS-ASPNET45 /FeatureName:IIS-ManagementConsole /FeatureName:IIS-ISAPIFilter /FeatureName:IIS-NetFxExtensibility45 /FeatureName:NetFx4Extended-ASPNET45" /> 
    <!-- Call dism.exe quietly (without showing command prompt). 
       (see also http://wixtoolset.org/documentation/manual/v3/customactions/qtexec.html) --> 
    <CustomAction Id="InstallIIS" BinaryKey="WixCA" DllEntry="CAQuietExec64" 
        Execute="deferred" HideTarget="no" Return="ignore" Impersonate="no"/> 

...

<InstallExecuteSequence> 

<Custom Action="InstallIISSetProperty" After="CostFinalize"> 
     <![CDATA[NOT Installed]]> 
     </Custom> 
     <Custom Action="InstallIIS" Before="WriteRegistryValues"> 
     <![CDATA[NOT Installed]]> 
     </Custom> 

</InstallExecuteSequence> 
+0

私は高い展開領域に直接IISを使用することはできません。そのため、.MSIファイルをビルドチームに渡す必要があります。 – Karan

関連する問題