SEBWIN-337: Defined configuration setup resources. Build actions still missing.
This commit is contained in:
parent
6cfa5f06c8
commit
f2c30f7a16
6 changed files with 38 additions and 0 deletions
6
Setup/Components/Configuration.wxs
Normal file
6
Setup/Components/Configuration.wxs
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
||||
<Fragment>
|
||||
<!-- These components will be auto-generated! -->
|
||||
</Fragment>
|
||||
</Wix>
|
17
Setup/Components/Configuration.xslt
Normal file
17
Setup/Components/Configuration.xslt
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wix="http://schemas.microsoft.com/wix/2006/wi">
|
||||
<xsl:output method="xml" indent="yes"/>
|
||||
<xsl:template match="@*|node()">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="@*|node()" />
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
<xsl:template match="wix:File[substring(@Source, string-length(@Source) - string-length('SEBConfigTool.exe') + 1) = 'SEBConfigTool.exe']">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="@*|node()" />
|
||||
<xsl:attribute name="Id">
|
||||
<xsl:text>ConfigurationToolExecutable</xsl:text>
|
||||
</xsl:attribute>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
|
@ -5,6 +5,7 @@
|
|||
<Directory Id="ProgramFilesFolder">
|
||||
<Directory Id="InstallFolder" Name="SafeExamBrowser">
|
||||
<Directory Id="ApplicationDirectory" Name="Application" />
|
||||
<Directory Id="ConfigurationDirectory" Name="Configuration" />
|
||||
<Directory Id="ResetDirectory" Name="Reset" />
|
||||
<Directory Id="ServiceDirectory" Name="Service" />
|
||||
</Directory>
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
<!-- <WixVariable Id="WixUIBannerBmp" Value="Resources\Banner.bmp" /> 493 × 58 -->
|
||||
<Feature Id="ProductFeature" Title="Safe Exam Browser" Level="1">
|
||||
<ComponentGroupRef Id="ApplicationComponents" />
|
||||
<ComponentGroupRef Id="ConfigurationComponents" />
|
||||
<ComponentGroupRef Id="ResetComponents" />
|
||||
<ComponentGroupRef Id="ServiceComponents" />
|
||||
<ComponentRef Id="ShortcutComponent" />
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Components\Application.wxs" />
|
||||
<Compile Include="Components\Configuration.wxs" />
|
||||
<Compile Include="Components\Reset.wxs" />
|
||||
<Compile Include="Components\Service.wxs" />
|
||||
<Compile Include="Directories.wxs" />
|
||||
|
@ -75,9 +76,18 @@
|
|||
<RefProjectOutputGroups>Binaries;Content;Satellites</RefProjectOutputGroups>
|
||||
<RefTargetDir>INSTALLFOLDER</RefTargetDir>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\SebWindowsConfig\SebWindowsConfig.csproj">
|
||||
<Name>SebWindowsConfig</Name>
|
||||
<Project>{bef73897-0d04-4f40-ad89-62e24d260cd0}</Project>
|
||||
<Private>True</Private>
|
||||
<DoNotHarvest>True</DoNotHarvest>
|
||||
<RefProjectOutputGroups>Binaries;Content;Satellites</RefProjectOutputGroups>
|
||||
<RefTargetDir>INSTALLFOLDER</RefTargetDir>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Components\Application.xslt" />
|
||||
<Content Include="Components\Configuration.xslt" />
|
||||
<Content Include="Components\Service.xslt" />
|
||||
<Content Include="Components\Reset.xslt" />
|
||||
<Content Include="Resources\License.rtf" />
|
||||
|
|
|
@ -5,6 +5,9 @@
|
|||
<Shortcut Id="ApplicationShortcut" Name="Safe Exam Browser" Icon="ApplicationIcon" IconIndex="0" Advertise="no" Directory="ProgramMenuFolder"
|
||||
Target="[ApplicationDirectory]\$(var.SafeExamBrowser.Runtime.TargetFileName)" WorkingDirectory="ApplicationDirectory"
|
||||
Description="Starts the main application." />
|
||||
<Shortcut Id="ConfigurationToolShortcut" Name="SEB Configuration Tool" Icon="ApplicationIcon" IconIndex="0" Advertise="no" Directory="StartMenuDirectory"
|
||||
Target="[ConfigurationDirectory]\$(var.SebWindowsConfig.TargetFileName)" WorkingDirectory="ConfigurationDirectory"
|
||||
Description="Provides options to edit configuration files for the main application." />
|
||||
<Shortcut Id="ResetUtilityShortcut" Name="SEB Reset Utility" Icon="ApplicationIcon" IconIndex="0" Advertise="no" Directory="StartMenuDirectory"
|
||||
Target="[ResetDirectory]\$(var.SafeExamBrowser.ResetUtility.TargetFileName)" WorkingDirectory="ResetDirectory"
|
||||
Description="Provides options to reset any changes made by the main application." />
|
||||
|
|
Loading…
Add table
Reference in a new issue